From 2332b90de2fc3db2e718735f429a04928d3f0eb0 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 7 Sep 2022 01:17:35 +0900 Subject: [PATCH] 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 --- spec/acceptance/10_basic_glance_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/acceptance/10_basic_glance_spec.rb b/spec/acceptance/10_basic_glance_spec.rb index eb836687..cb73c7d8 100644 --- a/spec/acceptance/10_basic_glance_spec.rb +++ b/spec/acceptance/10_basic_glance_spec.rb @@ -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'