From fafd4c8c573201da13ca9ffe3ab5a5a0389db527 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 7 Sep 2022 01:20:00 +0900 Subject: [PATCH] Stop testing image creation by openstack CLI The current test case is validating behavior of the openstack CLI rather than the deployment. Because we already test image creation by the glance_image resource type, we can remove that redundant and out-of-scope test. Change-Id: I30ba37e5c72c6a918f0ee1f5d8ad275322f007f9 --- spec/acceptance/10_basic_glance_spec.rb | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/spec/acceptance/10_basic_glance_spec.rb b/spec/acceptance/10_basic_glance_spec.rb index cb73c7d8..8dc64786 100644 --- a/spec/acceptance/10_basic_glance_spec.rb +++ b/spec/acceptance/10_basic_glance_spec.rb @@ -33,22 +33,5 @@ describe 'glance class' do describe port(9292) do it { is_expected.to be_listening } end - - describe 'glance images' do - it 'should create a glance image with proper attributes' do - glance_env_opts = '--os-identity-api-version 3 --os-username glance --os-password a_big_secret --os-project-name services --os-user-domain-name Default --os-project-domain-name Default --os-auth-url http://127.0.0.1:5000/v3' - command("openstack #{glance_env_opts} image list") do |r| - expect(r.stdout).to match(/test_image/) - end - command("openstack #{glance_env_opts} image show test_image --format shell") do |r| - expect(r.stdout).to match(/visibility="public"/) - expect(r.stdout).to match(/container_format="bare"/) - expect(r.stdout).to match(/disk_format="qcow2"/) - expect(r.stdout).to match(/properties=.*icanhaz.*cheezburger/) - expect(r.stdout).to match(/min_ram="64"/) - expect(r.stdout).to match(/min_disk="1024"/) - end - end - end end end