blob: c4b7901aa8a72c4f7f46a8fccaefb1f0394fd5e4 [file] [log] [blame]
Samuli Silvius2353ca72019-04-21 19:24:18 +03001---
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 override_command: false
14 restart_policy: unless-stopped
15 volumes:
16 - /var/lib/docker
17 - /opt/onap
18 groups:
19 - infrastructure
20 networks:
21 - name: infrastructure-net
22 purge_networks: true
23
24 - name: kubernetes-node-1
25 image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6}
26 pre_build_image: true
27 privileged: true
28 override_command: false
29 restart_policy: unless-stopped
Samuli Silvius2353ca72019-04-21 19:24:18 +030030 volumes:
31 - /var/lib/docker
32 groups:
33 - kubernetes
34 networks:
35 - name: infrastructure-net
36 purge_networks: true
37
38provisioner:
39 name: ansible
40 env:
41 ANSIBLE_ROLES_PATH: ../../../roles:../../../../roles/
42 ANSIBLE_LIBRARY: ../../../../library
43 inventory:
44 links:
45 group_vars: ../../../../group_vars
46 lint:
47 name: ansible-lint
48scenario:
49 name: default
50 test_sequence:
51 - lint
52 - cleanup
53 - destroy
54 - dependency
55 - syntax
56 - create
57 - prepare
58 - converge
59 # - idempotence
60 # --> Action: 'idempotence'
61 # ERROR: Idempotence test failed because of the following tasks:
62 # * [infrastructure-server -> 10.0.2.15] => certificates : Generate an OpenSSL CSR.
63 # * [infrastructure-server -> 10.0.2.15] => certificates : Generate root CA certificate
64 - side_effect
65 - verify
66 - cleanup
67 - destroy
68verifier:
69 name: testinfra
70 lint:
71 name: flake8