Add Molecule tests (#7)

* Initial port to molecule

* Get molecule tests to run

* Draw the rest of the owl

* use local dir for storing collection during CI run

* Add dockerfile, install community.kubernetes collection before sanity check

* Add clean step to Makefile

* Get sanity tests working

* Update sanity test to use makefile

* Add ignores for 2.11 so devel passes

* Update description

* Code review

* Add OWNERS file for prow
This commit is contained in:
Fabian von Feilitzsch
2020-08-17 15:41:37 -04:00
committed by GitHub
parent 3db69dea2b
commit ee21083985
33 changed files with 603 additions and 369 deletions

18
Makefile Normal file
View File

@@ -0,0 +1,18 @@
# Also needs to be updated in galaxy.yml
VERSION = 0.1.0
clean:
rm -f community-okd-${VERSION}.tar.gz
rm -rf ansible_collections
build: clean
ansible-galaxy collection build
install: build
ansible-galaxy collection install -p ansible_collections community-okd-${VERSION}.tar.gz
test-sanity: install
cd ansible_collections/community/okd && ansible-test sanity -v --docker --color $(TEST_ARGS)
test-integration: install
molecule test