Skip to content

Commit

Permalink
Run integration tests against an empty cluster
Browse files Browse the repository at this point in the history
Do not run the integration tests against a cluster with the operator installed.
We need to go back and fix how we run the tests so that the test controller and the
installed operator don't both react to the same events

Signed-off-by: Carolyn Van Slyck <[email protected]>
  • Loading branch information
carolynvs committed Mar 4, 2022
1 parent 6115a28 commit e60c9ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,14 @@ func UpdateTestfiles() {
func TestIntegration() {
mg.Deps(UseTestEnvironment, CleanTestdata, EnsureGinkgo, EnsureDeployed)

// TODO: we need to run these tests either isolated against EnvTest, or
// against a cluster that doesn't have the operator deployed. Otherwise
// both the controller running in the test, and the controller on the cluster
// are responding to the same events.
// For now, it's up to the caller to use a fresh cluster with CRDs installed until we can fix it.

kubectl("delete", "deployment", "porter-operator-controller-manager", "-n=porter-operator-system").RunV()

v := ""
if mg.Verbose() {
v = "-v"
Expand Down

0 comments on commit e60c9ff

Please sign in to comment.