diff options
| author | Yoggzo <yogg@epsina.com> | 2016-04-19 17:17:14 +0200 |
|---|---|---|
| committer | Yoggzo <yogg@epsina.com> | 2016-04-19 17:17:14 +0200 |
| commit | 2d260aa6f591030f869063ccdb1f6997d12c1294 (patch) | |
| tree | caa312ebf69be823e43a19504fb0754fd0c4315d /server/Test/automatingTests.php | |
| parent | 71794b98c560fa7904a4b3550a21b64ec6cd9339 (diff) | |
correct syntaxt on Network, add tests for automating
Diffstat (limited to 'server/Test/automatingTests.php')
| -rw-r--r-- | server/Test/automatingTests.php | 24 |
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 |
