diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-12-14 14:24:30 +0100 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-12-14 14:42:47 +0100 |
commit | a3d76ebe1036cf779c0befbc37d046192a3dbc02 (patch) | |
tree | e3a21e101bec7a52130d0bd153beff2c37ff81bf /ansible/roles/application/molecule/default | |
parent | cbd871dca1ec4992dfd521d321c97213f6ba3c99 (diff) |
[ANSIBLE] Fix 'application' role idempotency checks
Change-Id: I9ae95664d30afabc7fd3ba1ea11e466c004f5089
Issue-ID: OOM-2238
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/roles/application/molecule/default')
-rw-r--r-- | ansible/roles/application/molecule/default/molecule.yml | 22 | ||||
-rw-r--r-- | ansible/roles/application/molecule/default/tests/test_default.py | 7 |
2 files changed, 7 insertions, 22 deletions
diff --git a/ansible/roles/application/molecule/default/molecule.yml b/ansible/roles/application/molecule/default/molecule.yml index 8b2817b4..fab92fcc 100644 --- a/ansible/roles/application/molecule/default/molecule.yml +++ b/ansible/roles/application/molecule/default/molecule.yml @@ -31,27 +31,5 @@ provisioner: - onap app_helm_chart_name: "{{ app_name }}" helm_version: v3 -scenario: - test_sequence: - - lint - - cleanup - - destroy - - dependency - - syntax - - create - - prepare - - converge - # - idempotence - # --> Action: 'idempotence' - # ERROR: Idempotence test failed because of the following tasks: - # * [instance] => application : Get helm dir - # * [instance] => application : Helm init and upgrade - # * [instance] => application : Helm Serve - # * [instance] => application : Helm Add Repo - # * [instance] => application : Helm Install application moleculetestapp - - side_effect - - verify - - cleanup - - destroy verifier: name: testinfra diff --git a/ansible/roles/application/molecule/default/tests/test_default.py b/ansible/roles/application/molecule/default/tests/test_default.py index 18dc0318..ccef6e09 100644 --- a/ansible/roles/application/molecule/default/tests/test_default.py +++ b/ansible/roles/application/molecule/default/tests/test_default.py @@ -14,6 +14,13 @@ repo add local http://127.0.0.1:8879 deploy moleculetestapp local/moleculetestapp --namespace \ moleculetestapp -f /opt/moleculetestapp/helm_charts/onap/resources/\ overrides/onap-all.yaml -f /opt/moleculetestapp/override.yaml \ +--timeout 1800s +env +repo list +repo add local http://127.0.0.1:8879 +deploy moleculetestapp local/moleculetestapp --namespace \ +moleculetestapp -f /opt/moleculetestapp/helm_charts/onap/resources/\ +overrides/onap-all.yaml -f /opt/moleculetestapp/override.yaml \ --timeout 1800s""" expected_plugin_path = '/root/.local/share/helm/plugins/deploy/' +\ 'deploy.sh' |