Skip to content

Commit 50fcdb8

Browse files
e2e-tests: auto generate advanced molecule ansible tests with samples… (operator-framework#4312)
**Description** Replace static mock test/ansible by auto-generated mock via samples stack **Motivation for the change:** Ensure that e2e molecule tests are done with the PR changes by automating its generation. Otherwise, we cannot check if a change in the scaffold files could break it. Closes: operator-framework#4025 **Note**: To check the scenario locally run ` go run ./hack/generate/samples/molecule/generate.go` the advanced-molecule-operator will be generate in the testdata. Then, it can be checked for development purposes.
1 parent 3137612 commit 50fcdb8

File tree

79 files changed

+553
-1499
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+553
-1499
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ website/tech-doc-hugo
2020

2121
# Ignore molecule samples testdata if it be generated in the testdata/ diretory
2222
testdata/ansible/memcached-molecule-operator
23+
testdata/ansible/advanced-molecule-operator
2324

2425
# Trash files
2526
*\.DS_Store

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ test-e2e-ansible:: image/ansible-operator ## Run Ansible e2e tests
165165
go test -count=1 ./internal/ansible/proxy/...
166166
go test ./test/e2e-ansible -v -ginkgo.v
167167
test-e2e-ansible-molecule:: image/ansible-operator ## Run molecule-based Ansible e2e tests
168+
go run ./hack/generate/samples/molecule/generate.go
168169
./hack/tests/e2e-ansible-molecule.sh
169170
test-e2e-helm:: image/helm-operator ## Run Helm e2e tests
170171
go test ./test/e2e-helm -v -ginkgo.v

0 commit comments

Comments
 (0)