Merge "Use service anchor to ensure API is up"

This commit is contained in:
Zuul
2021-11-05 18:12:09 +00:00
committed by Gerrit Code Review
2 changed files with 3 additions and 3 deletions

View File

@@ -366,6 +366,6 @@ as a standalone service, or httpd for being run by a httpd server")
}
}
$validation_options_hash = merge ($defaults, $validation_options)
create_resources('openstacklib::service_validation', $validation_options_hash, {'subscribe' => 'Service[nova-api]'})
create_resources('openstacklib::service_validation', $validation_options_hash, {'subscribe' => 'Anchor[nova::service::end]'})
}
}

View File

@@ -143,7 +143,7 @@ describe 'nova::api' do
end
it { is_expected.to contain_openstacklib__service_validation('nova-api').with(
:command => 'nova --os-auth-url http://127.0.0.1:5000/ --os-project-name services --os-username novae --os-password passw0rd flavor-list',
:subscribe => 'Service[nova-api]',
:subscribe => 'Anchor[nova::service::end]',
)}
end
@@ -157,7 +157,7 @@ describe 'nova::api' do
end
it { is_expected.to contain_openstacklib__service_validation('nova-api').with(
:command => 'my-script',
:subscribe => 'Service[nova-api]',
:subscribe => 'Anchor[nova::service::end]',
)}
end