Ensure storage servers are listening

This adds a few more assertions in acceptance tests to ensure storage
servers(account-server, container-server and object-server) are
listening on their tcp ports as expected.

Change-Id: Idbcb3d6df962d99402a06f895369fe5f812d49ab
This commit is contained in:
Takashi Kajinami 2023-03-22 17:24:02 +09:00
parent 9b05f2ecd7
commit 4d23e9e9b7

View File

@ -59,7 +59,7 @@ describe 'basic swift' do
}
# sets up storage nodes which is composed of a single
# device that contains an endpoint for an object, account, and container
swift::storage::node { '2':
swift::storage::node { '0':
mnt_base_dir => '/srv/node',
weight => 1,
zone => '2',
@ -151,7 +151,15 @@ describe 'basic swift' do
describe port(8080) do
it { is_expected.to be_listening.with('tcp') }
end
describe port(6000) do
it { is_expected.to be_listening.with('tcp') }
end
describe port(6001) do
it { is_expected.to be_listening.with('tcp') }
end
describe port(6002) do
it { is_expected.to be_listening.with('tcp') }
end
end
context 'Using swiftinit service provider' do
@ -211,7 +219,7 @@ describe 'basic swift' do
}
# sets up storage nodes which is composed of a single
# device that contains an endpoint for an object, account, and container
swift::storage::node { '2':
swift::storage::node { '0':
mnt_base_dir => '/srv/node',
weight => 1,
zone => '2',
@ -318,5 +326,14 @@ describe 'basic swift' do
describe port(8080) do
it { is_expected.to be_listening.with('tcp') }
end
describe port(6000) do
it { is_expected.to be_listening.with('tcp') }
end
describe port(6001) do
it { is_expected.to be_listening.with('tcp') }
end
describe port(6002) do
it { is_expected.to be_listening.with('tcp') }
end
end
end