openstack-chef/.kitchen.multi.yml
Lance Albertson 5280706daa Refactor and update test-kitchen suites
This provides a large collection of updates and refactoring to improve
the development environment for the cookbooks using test-kitchen.

The primary change this provides is the addition of the 'minimal' suite
which replicates what the integration test jobs run in Zuul. This is
useful for testing and debugging issues that might be found during CI
jobs.

- Switch run_list to using roles to better match how the zuul jobs work
- Update to using Ubuntu 18.04 instead of 16.04
- Move all attributes from .kitchen.yml files to environments
- Update multi-node and dokken test-kitchen
- Use MariaDB 10.1 by default as 10.0 has been deprecated upstream for
  ubuntu 18.04. Also use OSUOSL mirror as it's more stable than
  upstream
- Don't disable EPEL on RHEL systems
- Synchronize attributes (within reason) between test-kitchen files
- Update roles run_list
- Create openstack_test cookbook and update /etc/apt/sources.list to
  OSUOSL mirrors to improve stability on Ubuntu

Change-Id: Ie6d7b56a78f7fadbd28e6d27a46446a46c3c5ebd
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-08-06 10:52:40 +00:00

86 lines
2.0 KiB
YAML

---
driver:
name: vagrant
client_rb:
treat_deprecation_warnings_as_errors: true
resource_cloning: false
provisioner:
name: chef_zero
# You may wish to disable always updating cookbooks in CI or other testing
# environments.
# For example:
# always_update_cookbooks: <%= !ENV['CI'] %>
always_update_cookbooks: true
product_name: chef
product_version: 14
# Copy secret to /tmp/kitchen on test VM. Kitchen tries to gather secrets
# before any recipes had a chance to run -> we cannot use a recipe to put the
# secrets file in place.
encrypted_data_bag_secret_key_path: .chef/encrypted_data_bag_secret
roles_path: roles
environments_path: environments
attributes:
openstack:
secret:
key_path: /tmp/kitchen/encrypted_data_bag_secret
verifier:
name: inspec
platforms:
- name: ubuntu-18.04
driver:
box: bento/ubuntu-18.04
- name: centos-7
driver:
box: bento/centos-7
suites:
- name: compute1
customize:
cpus: 2
memory: 2048
driver:
network:
- ["private_network", {ip: "192.168.100.61"}]
- ["private_network", {ip: "192.168.101.61"}]
provisioner:
client_rb:
environment: multinode
run_list:
- recipe[openstack_test]
- role[multinode-compute]
- name: compute2
customize:
cpus: 2
memory: 2048
driver:
network:
- ["private_network", {ip: "192.168.100.62"}]
- ["private_network", {ip: "192.168.101.62"}]
provisioner:
client_rb:
environment: multinode
run_list:
- recipe[openstack_test]
- role[multinode-compute]
- name: controller
customize:
cpus: 4
memory: 8192
driver:
network:
- ["private_network", {ip: "192.168.100.60"}]
- ["private_network", {ip: "192.168.101.60"}]
provisioner:
client_rb:
environment: multinode
run_list:
- recipe[openstack_test]
- role[multinode-controller]
verifier:
inspec_tests:
- test/tempest/default