correct syntaxt on Network, add tests for automating

This commit is contained in:
Yoggzo 2016-04-19 17:17:14 +02:00
parent 71794b98c5
commit 2d260aa6f5
3 changed files with 58 additions and 9 deletions

View file

@ -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>";
}
?>