Set Tempest's service_availability setting for Barbican

Tempest's service_available config option includes all the service
availability which is further used by tests to take decision of skip
or run the test.

For example, [service_available].barbican is true then, barbican test will run
or if [service_available].barbican is false then, all barbican related tests either
in barbican tempest plugin or any other plugins[1] will be skipped.

So it is important that when barbican is installed via devstack plugin then,
it set the service_available.barbican value to True in tempest conf.

This commit add the setting of barbican service[2] on barbican devstack plugin.

Related-Bug: #1743688
Related-Bug: #1817154

[1] 0a0f9b342a/octavia_tempest_plugin/tests/barbican_scenario/v2/test_tls_barbican.py (L53)
[2] 123dd7d416/barbican_tempest_plugin/config.py (L18)

Change-Id: I7fd60d48802cc5e9071c39eaeb83351bec36cc41
This commit is contained in:
ghanshyam 2019-02-25 16:40:28 +00:00 committed by Ghanshyam Mann
parent 34faa76587
commit b4fe45496c
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@ function configure_barbican_tempest() {
roles="$roles,creator"
fi
iniset $TEMPEST_CONFIG auth tempest_roles $roles
iniset $TEMPEST_CONFIG service_available barbican True
}
# check for service enabled