Skip to content

Commit

Permalink
e2e-tests: auto generate advanced molecule ansible tests with samples… (
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
camilamacedo86 authored Dec 18, 2020
1 parent 3137612 commit 50fcdb8
Show file tree
Hide file tree
Showing 79 changed files with 553 additions and 1,499 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ website/tech-doc-hugo

# Ignore molecule samples testdata if it be generated in the testdata/ diretory
testdata/ansible/memcached-molecule-operator
testdata/ansible/advanced-molecule-operator

# Trash files
*\.DS_Store
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ test-e2e-ansible:: image/ansible-operator ## Run Ansible e2e tests
go test -count=1 ./internal/ansible/proxy/...
go test ./test/e2e-ansible -v -ginkgo.v
test-e2e-ansible-molecule:: image/ansible-operator ## Run molecule-based Ansible e2e tests
go run ./hack/generate/samples/molecule/generate.go
./hack/tests/e2e-ansible-molecule.sh
test-e2e-helm:: image/helm-operator ## Run Helm e2e tests
go test ./test/e2e-helm -v -ginkgo.v
Expand Down
Loading

0 comments on commit 50fcdb8

Please sign in to comment.