summaryrefslogtreecommitdiff
path: root/server/Test/imageTests.php
diff options
context:
space:
mode:
Diffstat (limited to 'server/Test/imageTests.php')
-rw-r--r--server/Test/imageTests.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/Test/imageTests.php b/server/Test/imageTests.php
index c3089e3..94ff7b6 100644
--- a/server/Test/imageTests.php
+++ b/server/Test/imageTests.php
@@ -1,6 +1,6 @@
<?php
require '../vendor/autoload.php';
-include('../index.php');
+include('/istic-openstack/server/init.php');
/*
$options = Array();
@@ -31,6 +31,7 @@ $openstack = new OpenStack\OpenStack($options);
//$servers = $compute->listServers(true);
echo 'toto';
+$image = new Image($App);
$opt = Array();
$opt['name'] = "Test";
@@ -46,7 +47,7 @@ $opt['minRam'] = 10;
//Liste des images
-$images = $imageObject->list_images();
+$images = $image->list_images();
echo "Images présentes :";
echo "</br>";