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
This commit is contained in:
parent
2332b90de2
commit
fafd4c8c57
@ -33,22 +33,5 @@ describe 'glance class' do
|
|||||||
describe port(9292) do
|
describe port(9292) do
|
||||||
it { is_expected.to be_listening }
|
it { is_expected.to be_listening }
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user