Ensure glance-api is listening the expected tcp port

This change introduces an assertion to ensure the glance-api is
listening the correct tcp port (9292). Similar assertions are already
implemented in the other modules.

Change-Id: I9fe22af47e9e12905d731f6b0e4ead2c6864ce40
This commit is contained in:
Takashi Kajinami 2022-09-07 01:17:35 +09:00
parent b192dd5253
commit 2332b90de2
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ describe 'glance class' do
apply_manifest(pp, :catch_changes => true)
end
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'