Selectively install tempest plugin distro packages

To ensure that the distro installs work and get tested
properly, we add the installation of the plugin packages
selectively using the same key enable/disable variables
that are used to enable/disable the sections of the conf
file.

Change-Id: I11859546f95ae43fb18e8b226e810124c70e8db6
This commit is contained in:
Jesse Pretorius 2018-11-06 13:29:06 +00:00
parent 2dbd375b44
commit 17cdeba8d4
4 changed files with 33 additions and 2 deletions

View File

@ -18,4 +18,11 @@
# whether the host is in the host group and the service is # whether the host is in the host group and the service is
# enabled. # enabled.
# #
tempest_package_list: "{{ tempest_distro_packages + tempest_service_distro_packages }}" # Note (odyssey4me):
# The yum module does not accept an empty item
# in the list, so we need to ensure that empty
# items are not included in the list.
tempest_package_list: >-
{{ tempest_distro_packages
+ tempest_service_distro_packages
+ (tempest_plugin_distro_packages | reject('equalto', '')) | list }}

View File

@ -18,6 +18,17 @@ tempest_distro_packages:
- git - git
tempest_service_distro_packages: tempest_service_distro_packages:
- openstack-tempest-all - openstack-tempest
- python-subunit - python-subunit
- subunit-filters - subunit-filters
tempest_plugin_distro_packages:
- "{{ (tempest_service_available_cinder | bool) | ternary('python-cinder-tests-tempest', '') }}"
- "{{ (tempest_service_available_heat | bool) | ternary('python-heat-tests-tempest', '') }}"
- "{{ tempest_service_available_horizon | bool | ternary('python-horizon-tests-tempest', '') }}"
- "{{ (tempest_service_available_ironic | bool) | ternary('python-ironic-tests-tempest', '') }}"
- python-keystone-tests-tempest
- "{{ (tempest_service_available_neutron | bool) | ternary('python-neutron-tests-tempest', '') }}"
- "{{ (tempest_service_available_sahara | bool) | ternary('python-sahara-tests-tempest', '') }}"
- "{{ (tempest_service_available_zaqar | bool) | ternary('python-zaqar-tests-tempest', '') }}"

View File

@ -22,3 +22,10 @@ tempest_service_distro_packages:
- "{{ (ansible_distribution_version is version ('42', '>=')) | ternary('python-python-subunit', 'python2-python-subunit') }}" - "{{ (ansible_distribution_version is version ('42', '>=')) | ternary('python-python-subunit', 'python2-python-subunit') }}"
- "{{ (ansible_distribution_version is version ('42', '>=')) | ternary('python-os-testr', 'python2-os-testr') }}" - "{{ (ansible_distribution_version is version ('42', '>=')) | ternary('python-os-testr', 'python2-os-testr') }}"
- python-junitxml - python-junitxml
tempest_plugin_distro_packages:
- "{{ (tempest_service_available_cinder | bool) | ternary('python-cinder-tempest-plugin', '') }}"
- "{{ (tempest_service_available_heat | bool) | ternary('python-heat-tempest-plugin', '') }}"
- "{{ (tempest_service_available_ironic | bool) | ternary('python-ironic-tempest-plugin', '') }}"
- python-keystone-tempest-plugin
- "{{ (tempest_service_available_neutron | bool) | ternary('python-neutron-tempest-plugin', '') }}"

View File

@ -24,3 +24,9 @@ tempest_distro_packages:
tempest_service_distro_packages: tempest_service_distro_packages:
- tempest - tempest
- python-subunit - python-subunit
# Note(odyssey4me):
# Ubuntu does not publish tempest plugin packages. They do
# all their testing using the source-based installation of
# tempest.
tempest_plugin_distro_packages: []