From: marios <[email protected]>
Signed-off-by: marios <[email protected]> --- tests/cimi/part4_test.rb | 13 +++++++++++++ tests/config.yaml | 1 - 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/cimi/part4_test.rb b/tests/cimi/part4_test.rb index a58d5de..7da6191 100644 --- a/tests/cimi/part4_test.rb +++ b/tests/cimi/part4_test.rb @@ -71,6 +71,19 @@ class AddVolumeToMachine < CIMI::Test::Spec rescue RuntimeError =>e end + + #need to create a new VolumeConfiguration before creating the Volume: + cep_json = cep(:accept => :json) + volume_config_add_uri = discover_uri_for("add", "volumeConfigs") + volume_config_resp = post(volume_config_add_uri, + "<VolumeConfigurationCreate xmlns=\"#{CIMI::Test::CIMI_NAMESPACE}\">" + + "<name>marios_volume_config</name>" + + "<description>a volume configuration</description>"+ + "<format>ext3</format>"+ + " <capacity>1</capacity>" + + "</VolumeConfigurationCreate>", {:accept => :json, :content_type => :xml}) + log.info("just created volume_configuration " + volume_config_resp.json["id"]) + # 4.3: Create a new Volume model :volume, :cache => true do |fmt| volume_add_uri = discover_uri_for("add", "volumes") diff --git a/tests/config.yaml b/tests/config.yaml index 8c90dc6..2f18caa 100644 --- a/tests/config.yaml +++ b/tests/config.yaml @@ -7,7 +7,6 @@ mock: preferred: machineImage: "img2" machineConfig: "m1-small" - volumeConfig: "2" #OPENSTACK DRIVER CONFIG openstack: user: -- 1.7.11.7
