Skip to content

Commit

Permalink
chore(e2e): Refactor resources number const
Browse files Browse the repository at this point in the history
  • Loading branch information
gansheer authored and squakez committed Nov 30, 2023
1 parent 62b5f1f commit e73adbe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
21 changes: 0 additions & 21 deletions e2e/install/kustomize/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,6 @@ import (
. "github.com/onsi/gomega"
)

const (

// camel-k-operator, camel-k-operator-events,
// camel-k-operator-knative, camel-k-operator-leases,
// camel-k-operator-podmonitors, camel-k-operator-strimzi,
// camel-k-operator-keda
ExpectedKubePromoteRoles = 7

// camel-k-edit
// camel-k-operator-custom-resource-definitions
// camel-k-operator-bind-addressable-resolver
// camel-k-operator-local-registry
ExpectedKubeClusterRoles = 4

// camel-k-operator-openshift
ExpectedOSPromoteRoles = 1

// camel-k-operator-console-openshift
ExpectedOSClusterRoles = 1
)

func TestSetupKustomizeBasic(t *testing.T) {
RegisterTestingT(t)
makeDir := testutil.MakeTempCopyDir(t, "../../../install")
Expand Down
18 changes: 18 additions & 0 deletions e2e/support/test_support.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,24 @@ const ciPID = "/tmp/ci-k8s-pid"
// v1alpha1.Kamelet, v1alpha1.KameletBinding
const ExpectedCRDs = 8

// camel-k-operator, camel-k-operator-events,
// camel-k-operator-knative, camel-k-operator-leases,
// camel-k-operator-podmonitors, camel-k-operator-strimzi,
// camel-k-operator-keda
const ExpectedKubePromoteRoles = 7

// camel-k-edit
// camel-k-operator-custom-resource-definitions
// camel-k-operator-bind-addressable-resolver
// camel-k-operator-local-registry
const ExpectedKubeClusterRoles = 4

// camel-k-operator-openshift
const ExpectedOSPromoteRoles = 1

// camel-k-operator-console-openshift
const ExpectedOSClusterRoles = 1

var TestTimeoutShort = 1 * time.Minute
var TestTimeoutMedium = 5 * time.Minute
var TestTimeoutLong = 15 * time.Minute
Expand Down

0 comments on commit e73adbe

Please sign in to comment.