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