summaryrefslogtreecommitdiff
path: root/server/Test/automatingTests.php
blob: 5cdee26bd9cc857a327d8a8633d177c0ba44aeb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>";
}

?>