istic-openstack/server/Test/automatingTests.php

24 lines
No EOL
542 B
PHP

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