e516f0f27dae8acb2da0a2ba1c92fb6ce7ce7f6c
[oom/offline-installer.git] / ansible / roles / application / molecule / default / molecule.yml
1 ---
2 dependency:
3   name: galaxy
4 driver:
5   name: docker
6 lint: |
7   set -e
8   yamllint .
9   ansible-lint .
10   flake8
11 platforms:
12   - name: instance
13     image: centos:7
14 provisioner:
15   name: ansible
16   env:
17     ANSIBLE_ROLES_PATH: ../../../../test/roles
18   inventory:
19     group_vars:
20       all:
21         app_name: moleculetestapp
22         app_data_path: "/opt/{{ app_name }}"
23         app_helm_release_name: "{{ app_name }}"
24         app_kubernetes_namespace: "{{ app_name }}"
25         app_helm_charts_install_directory: application/helm_charts
26         app_helm_plugins_directory: "{{ app_helm_charts_install_directory}}/helm/plugins/"
27         app_helm_charts_infra_directory: "{{ app_data_path }}/helm_charts"
28         helm_bin_dir: /usr/local/bin
29         app_helm_build_targets:
30           - all
31           - onap
32         app_helm_chart_name: "{{ app_name }}"
33         helm_version: v2
34 scenario:
35   name: default
36   test_sequence:
37     - lint
38     - cleanup
39     - destroy
40     - dependency
41     - syntax
42     - create
43     - prepare
44     - converge
45     # - idempotence
46     # --> Action: 'idempotence'
47     # ERROR: Idempotence test failed because of the following tasks:
48     # * [instance] => application : Get helm dir
49     # * [instance] => application : Helm init and upgrade
50     # * [instance] => application : Helm Serve
51     # * [instance] => application : Helm Add Repo
52     # * [instance] => application : Helm Install application moleculetestapp
53     - side_effect
54     - verify
55     - cleanup
56     - destroy
57 verifier:
58   name: testinfra