correct syntaxt on Network, add tests for automating
This commit is contained in:
parent
71794b98c5
commit
2d260aa6f5
3 changed files with 58 additions and 9 deletions
24
server/Test/automatingTests.php
Normal file
24
server/Test/automatingTests.php
Normal 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>";
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue