Skip to content

Commit

Permalink
[backport/2.2] Move integration test suite from molecule to ansible-t…
Browse files Browse the repository at this point in the history
…est (#392) (#457)

[backport/2.2] Move integration test suite from molecule to ansible-test (#392)

Move integration test suite from molecule to ansible-test
SUMMARY
molecule has been replaced with ansible-test
some test cases have been updated
k8s_apply : remove duplicated tasks increasing the running time of the test
helm: use different namespaces for different test cases in order to wait for the namespace deletion before moving to the next test.
all: remove wait: yes at the end of each test when deleting namespace, the role used to create namespace will ensure that it is deleted before if existing.
ISSUE TYPE
Feature Pull Request
COMPONENT NAME
integration testing
Reviewed-by: Mike Graves [email protected]
Reviewed-by: Gonéri Le Bouder [email protected]
Reviewed-by: None 
(cherry picked from commit fd61f8b)
SUMMARY


ISSUE TYPE


Bugfix Pull Request
Docs Pull Request
Feature Pull Request
New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION
  • Loading branch information
gravesm authored May 11, 2022
1 parent 0d9c4d3 commit 11c800d
Show file tree
Hide file tree
Showing 190 changed files with 1,261 additions and 1,768 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ tests/integration/cloud-config-*
.cache

# Helm charts
molecule/default/*-chart-*.tgz
tests/integration/*-chart-*.tgz

# ansible-test generated file
tests/integration/inventory
tests/integration/*-*.yml
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ test-sanity:
ansible-test sanity --docker -v --color --python $(PYTHON_VERSION) $(?TEST_ARGS)

test-integration:
ansible-test integration --docker -v --color --retry-on-error --python $(PYTHON_VERSION) --continue-on-error --diff --coverage $(?TEST_ARGS)

test-molecule:
molecule test
ansible-test integration --diff --no-temp-workdir --color --skip-tags False --retry-on-error --continue-on-error --python $(PYTHON_VERSION) -v --coverage $(?TEST_ARGS)

test-unit:
ansible-test units --docker -v --color --python $(PYTHON_VERSION) $(?TEST_ARGS)
3 changes: 3 additions & 0 deletions changelogs/fragments/exception.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- import exception from ``kubernetes.client.rest``.
292 changes: 0 additions & 292 deletions molecule/default/converge.yml

This file was deleted.

35 changes: 0 additions & 35 deletions molecule/default/molecule.yml

This file was deleted.

12 changes: 0 additions & 12 deletions molecule/default/prepare.yml

This file was deleted.

Loading

0 comments on commit 11c800d

Please sign in to comment.