Add voting k2k tests
With the addition of K2K-specific tests in the tempest plugin and a config toggle in the plugin to disable use of the external IdP, we can safely add a voting federation job. This also fixes the devstack plugin to install the xmlsec1 tool which is needed for K2K. Change-Id: I9dc634e073657ff337751ec67363a57bd10e20d4 Depends-on: https://review.opendev.org/689222
This commit is contained in:
parent
f9a086e165
commit
fb0be8e599
11
.zuul.yaml
11
.zuul.yaml
|
@ -57,6 +57,13 @@
|
||||||
zuul_copy_output:
|
zuul_copy_output:
|
||||||
/etc/shibboleth: logs
|
/etc/shibboleth: logs
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: keystone-dsvm-py3-functional-federation-opensuse15-k2k
|
||||||
|
parent: keystone-dsvm-py3-functional-federation-opensuse15
|
||||||
|
vars:
|
||||||
|
devstack_localrc:
|
||||||
|
IDP_ID: k2k
|
||||||
|
|
||||||
# This job will execute 'tox -e upgrade' from the OSA
|
# This job will execute 'tox -e upgrade' from the OSA
|
||||||
# repo specified in 'osa_test_repo'.
|
# repo specified in 'osa_test_repo'.
|
||||||
- job:
|
- job:
|
||||||
|
@ -196,6 +203,8 @@
|
||||||
- keystone-dsvm-py3-functional-federation-opensuse15:
|
- keystone-dsvm-py3-functional-federation-opensuse15:
|
||||||
voting: false
|
voting: false
|
||||||
irrelevant-files: *irrelevant-files
|
irrelevant-files: *irrelevant-files
|
||||||
|
- keystone-dsvm-py3-functional-federation-opensuse15-k2k:
|
||||||
|
irrelevant-files: *irrelevant-files
|
||||||
- keystoneclient-devstack-functional:
|
- keystoneclient-devstack-functional:
|
||||||
voting: false
|
voting: false
|
||||||
irrelevant-files: *irrelevant-files
|
irrelevant-files: *irrelevant-files
|
||||||
|
@ -227,6 +236,8 @@
|
||||||
irrelevant-files: *irrelevant-files
|
irrelevant-files: *irrelevant-files
|
||||||
- keystone-dsvm-py3-functional:
|
- keystone-dsvm-py3-functional:
|
||||||
irrelevant-files: *irrelevant-files
|
irrelevant-files: *irrelevant-files
|
||||||
|
- keystone-dsvm-py3-functional-federation-opensuse15-k2k:
|
||||||
|
irrelevant-files: *irrelevant-files
|
||||||
- tempest-full:
|
- tempest-full:
|
||||||
irrelevant-files: *tempest-irrelevant-files
|
irrelevant-files: *tempest-irrelevant-files
|
||||||
- tempest-full-py3:
|
- tempest-full-py3:
|
||||||
|
|
|
@ -102,6 +102,8 @@ function install_federation {
|
||||||
elif is_suse; then
|
elif is_suse; then
|
||||||
# Install Shibboleth
|
# Install Shibboleth
|
||||||
install_package shibboleth-sp
|
install_package shibboleth-sp
|
||||||
|
# Install xmlsec dependency needed only for opensuse
|
||||||
|
install_package libxmlsec1-openssl1
|
||||||
|
|
||||||
# Create a new keypair for Shibboleth
|
# Create a new keypair for Shibboleth
|
||||||
sudo /etc/shibboleth/keygen.sh -f -o /etc/shibboleth
|
sudo /etc/shibboleth/keygen.sh -f -o /etc/shibboleth
|
||||||
|
@ -113,6 +115,9 @@ function install_federation {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pip_install pysaml2
|
pip_install pysaml2
|
||||||
|
|
||||||
|
# xmlsec1 needed for k2k
|
||||||
|
install_package xmlsec1
|
||||||
}
|
}
|
||||||
|
|
||||||
function upload_sp_metadata_to_samltest {
|
function upload_sp_metadata_to_samltest {
|
||||||
|
@ -182,6 +187,10 @@ function configure_tests_settings {
|
||||||
|
|
||||||
# Here we set any settings that might be need by the fed_scenario set of tests
|
# Here we set any settings that might be need by the fed_scenario set of tests
|
||||||
iniset $TEMPEST_CONFIG identity-feature-enabled federation True
|
iniset $TEMPEST_CONFIG identity-feature-enabled federation True
|
||||||
|
# If not using samltest as an external IdP, tell tempest not to test that scenario
|
||||||
|
if [[ "$IDP_ID" != "samltest" ]] ; then
|
||||||
|
iniset $TEMPEST_CONFIG identity-feature-enabled external_idp false
|
||||||
|
fi
|
||||||
|
|
||||||
# Identity provider settings
|
# Identity provider settings
|
||||||
iniset $TEMPEST_CONFIG fed_scenario idp_id $IDP_ID
|
iniset $TEMPEST_CONFIG fed_scenario idp_id $IDP_ID
|
||||||
|
|
Loading…
Reference in New Issue