blob: 50c862b766f9fde7988b13e1fb560e21d2e361bd [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:-""}
14 env:
15 container: docker
16 groups:
17 - infrastructure
18
19 - name: kubernetes-node-1
20 image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
21 pre_build_image: true
22 privileged: true
23 command: ${MOLECULE_DOCKER_COMMAND:-""}
24 env:
25 container: docker
26 groups:
27 - kubernetes
28provisioner:
29 name: ansible
30 log: true
31 lint:
32 name: ansible-lint
33 env:
34 ANSIBLE_ROLES_PATH: ../../../../test/roles
35 ANSIBLE_LIBRARY: ../../../../library
36 inventory:
37 links:
38 group_vars: ../../../../group_vars/
39scenario:
40 name: default
41 test_sequence:
42 - lint
43 - cleanup
44 - destroy
45 - dependency
46 - syntax
47 - create
48 - prepare
49 - converge
50 # - idempotence
51 # --> Action: 'idempotence'
52 # ERROR: Idempotence test failed because of the following tasks:
53 # * [infrastructure-server -> localhost] => certificates : Generate an OpenSSL CSR.
54 # * [infrastructure-server -> localhost] => certificates : Generate root CA certificate
55 # * [infrastructure-server] => certificates : Upload certificates to infrastructure server
56 # * [infrastructure-server] => certificates : Copy root certificate
57 # * [infrastructure-server] => certificates : Extract root certificate
58 # * [infrastructure-server] => docker : Setup docker dns settings
59 # * [kubernetes-node-1] => certificates : Copy root certificate
60 # * [kubernetes-node-1] => certificates : Extract root certificate
61 # * [kubernetes-node-1] => certificates : Extract root certificate
62 - side_effect
63 - verify
64 - cleanup
65 - destroy
66verifier:
67 name: testinfra
68 options:
69 verbose: true
70 lint:
71 name: flake8