test foireux
This commit is contained in:
parent
c31c3bb281
commit
6db5da757b
1 changed files with 7 additions and 10 deletions
|
@ -1,9 +1,8 @@
|
|||
<?php
|
||||
ini_set('display_errors', 1);
|
||||
date_default_timezone_set("Europe/Paris");
|
||||
require 'vendor/autoload.php';
|
||||
include("core/Image.php");
|
||||
|
||||
require '../vendor/autoload.php';
|
||||
include('../index.php');
|
||||
|
||||
/*
|
||||
$options = Array();
|
||||
$options["user"] = Array("name"=>"admin", "password"=>"ae5or6cn", "domain"=>["id"=>"Default"]);
|
||||
$options["scope"] = Array("project"=>Array("name"=>"admin", "domain"=>["id"=>"Default"]));
|
||||
|
@ -30,11 +29,8 @@ $openstack = new OpenStack\OpenStack($options);
|
|||
//$image= $openstack->imagesV2(["region" => "RegionOne"]);
|
||||
//var_dump($compute->client);
|
||||
//$servers = $compute->listServers(true);
|
||||
echo 'toto';
|
||||
|
||||
// Initialisation Image()
|
||||
$optImage = Array();
|
||||
$optImage["region"] = "RegionOne";
|
||||
$image = new Image($openstack, $optImage);
|
||||
|
||||
$opt = Array();
|
||||
$opt['name'] = "Test";
|
||||
|
@ -48,8 +44,9 @@ $opt['minRam'] = 10;
|
|||
|
||||
//$new_image = $image->create_image($opt);
|
||||
|
||||
|
||||
//Liste des images
|
||||
$images = $image->list_images();
|
||||
$images = $imageObject->list_images();
|
||||
|
||||
echo "Images présentes :";
|
||||
echo "</br>";
|
||||
|
|
Loading…
Add table
Reference in a new issue