[MOLECULE] Drop custom test scenario for helm v3
[oom/offline-installer.git] / ansible / roles / application / molecule / ubuntu / 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: ubuntu:18.04
14     dockerfile: ../default/Dockerfile.j2
15 provisioner:
16   name: ansible
17   env:
18     ANSIBLE_ROLES_PATH: ../../../../test/roles
19   inventory:
20     group_vars:
21       all:
22         app_name: moleculetestapp
23         app_data_path: "/opt/{{ app_name }}"
24         app_helm_release_name: "{{ app_name }}"
25         app_kubernetes_namespace: "{{ app_name }}"
26         app_helm_charts_install_directory: application/helm_charts
27         app_helm_plugins_directory: "{{ app_helm_charts_install_directory}}/helm/plugins/"
28         app_helm_charts_infra_directory: "{{ app_data_path }}/helm_charts"
29         helm_bin_dir: /usr/local/bin
30         app_helm_build_targets:
31           - all
32           - onap
33         app_helm_chart_name: "{{ app_name }}"
34         helm_version: v2
35   playbooks:
36     prepare: ../default/prepare.yml
37     converge: ../default/converge.yml
38     cleanup: ../default/cleanup.yml
39 scenario:
40   test_sequence:
41     - lint
42     - cleanup
43     - destroy
44     - dependency
45     - syntax
46     - create
47     - prepare
48     - converge
49     # - idempotence
50     # --> Action: 'idempotence'
51     # ERROR: Idempotence test failed because of the following tasks:
52     # * [instance] => application : Get helm dir
53     # * [instance] => application : Helm init and upgrade
54     # * [instance] => application : Helm Serve
55     # * [instance] => application : Helm Add Repo
56     # * [instance] => application : Helm Install application moleculetestapp
57     - side_effect
58     - verify
59     - cleanup
60     - destroy
61 verifier:
62   name: testinfra
63   directory: ../default/tests/