53c5b154cc95ae41aa11835cd9978684f9a9edf7
[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   test_sequence:
36     - lint
37     - cleanup
38     - destroy
39     - dependency
40     - syntax
41     - create
42     - prepare
43     - converge
44     # - idempotence
45     # --> Action: 'idempotence'
46     # ERROR: Idempotence test failed because of the following tasks:
47     # * [instance] => application : Get helm dir
48     # * [instance] => application : Helm init and upgrade
49     # * [instance] => application : Helm Serve
50     # * [instance] => application : Helm Add Repo
51     # * [instance] => application : Helm Install application moleculetestapp
52     - side_effect
53     - verify
54     - cleanup
55     - destroy
56 verifier:
57   name: testinfra