summaryrefslogtreecommitdiff
path: root/server/Test
diff options
context:
space:
mode:
Diffstat (limited to 'server/Test')
-rw-r--r--server/Test/automatingTests.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/server/Test/automatingTests.php b/server/Test/automatingTests.php
new file mode 100644
index 0000000..5cdee26
--- /dev/null
+++ b/server/Test/automatingTests.php
@@ -0,0 +1,24 @@
+<?php
+include('InitTest.php');
+include_once("../core/Image.php");
+include_once("../core/Compute.php");
+include_once("../core/Network.php");
+include_once("../core/FloatingIp.php");
+include_once("../core/Automating.php");
+
+$image = new Image($App);
+$compute = new Compute($App);
+$network = new Network($App);
+$floatingIp = new FloatingIp($App);
+$automating = new Automating($App);
+
+
+$compute->listServers();
+
+$servers = json_decode($App->show(), true)["Servers"];
+
+foreach($servers as $server){
+ echo $server->name." ".$server->id."<br>";
+}
+
+?> \ No newline at end of file