blob: a9e87cb5756259f272c549795697baa6d1396c27 [file] [log] [blame]
Samuli Silvius379df9c2019-03-26 10:24:39 +02001---
2dependency:
3 name: galaxy
4driver:
5 name: docker
6lint:
7 name: yamllint
8platforms:
9 - name: infrastructure-server
10 image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
11 pre_build_image: true
12 privileged: true
13 command: ${MOLECULE_DOCKER_COMMAND:-""}
Samuli Silvius379df9c2019-03-26 10:24:39 +020014 groups:
15 - infrastructure
16
17 - name: kubernetes-node-1
18 image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
19 pre_build_image: true
20 privileged: true
21 command: ${MOLECULE_DOCKER_COMMAND:-""}
Samuli Silvius379df9c2019-03-26 10:24:39 +020022 groups:
23 - kubernetes
24provisioner:
25 name: ansible
26 log: true
27 lint:
28 name: ansible-lint
29 env:
30 ANSIBLE_ROLES_PATH: ../../../../test/roles
31 ANSIBLE_LIBRARY: ../../../../library
32 inventory:
33 links:
34 group_vars: ../../../../group_vars/
35scenario:
36 name: default
37 test_sequence:
38 - lint
39 - cleanup
40 - destroy
41 - dependency
42 - syntax
43 - create
44 - prepare
45 - converge
46 # - idempotence
47 # --> Action: 'idempotence'
48 # ERROR: Idempotence test failed because of the following tasks:
49 # * [infrastructure-server -> localhost] => certificates : Generate an OpenSSL CSR.
50 # * [infrastructure-server -> localhost] => certificates : Generate root CA certificate
51 # * [infrastructure-server] => certificates : Upload certificates to infrastructure server
52 # * [infrastructure-server] => certificates : Copy root certificate
53 # * [infrastructure-server] => certificates : Extract root certificate
54 # * [infrastructure-server] => docker : Setup docker dns settings
55 # * [kubernetes-node-1] => certificates : Copy root certificate
56 # * [kubernetes-node-1] => certificates : Extract root certificate
57 # * [kubernetes-node-1] => certificates : Extract root certificate
58 - side_effect
59 - verify
60 - cleanup
61 - destroy
62verifier:
63 name: testinfra
64 options:
65 verbose: true
66 lint:
67 name: flake8