Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add install for Authroino operator #1519

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tests/e2e/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ const (
servicemeshNamespace = "openshift-operators"
servicemeshOpName = "servicemeshoperator"
serverlessOpName = "serverless-operator"
authorinoOpName = "authorino-operator"
ownedNamespaceNumber = 1 // set to 4 for RHOAI
deleteConfigMap = "delete-configmap-name"
operatorReadyTimeout = 2 * time.Minute
componentReadyTimeout = 7 * time.Minute // in component code is to set 2-3 mins, keep it 7 mins just the same value we used after introduce "Ready" check
componentDeletionTimeout = 1 * time.Minute
crdReadyTimeout = 1 * time.Minute
csvWaitTimeout = 1 * time.Minute
csvWaitTimeout = 90 * time.Second // time required when check dependent operators are installed.
dsciCreationTimeout = 20 * time.Second // time required to get a DSCI is created.
dscCreationTimeout = 20 * time.Second // time required to wait till DSC is created.
generalRetryInterval = 10 * time.Second
Expand Down Expand Up @@ -433,10 +434,11 @@ func ensureOperator(tc *testContext, name string, ns string) error {
return waitCSV(tc, name, ns)
}

func ensureServicemeshOperators(t *testing.T, tc *testContext) error { //nolint: thelper
func ensureDependencyOperators(t *testing.T, tc *testContext) error { //nolint: thelper
ops := []string{
serverlessOpName,
servicemeshOpName,
authorinoOpName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created that time bomb, but probably makes sense to rename ensureServicemeshOperators to ensureDependencyOperators or something (did @VaishnaviHire already do it somewhere?)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated the fuction name to ensureDependencyOperators

}
var errors *multierror.Error
c := make(chan error)
Expand All @@ -458,5 +460,5 @@ func ensureServicemeshOperators(t *testing.T, tc *testContext) error { //nolint:
}

func (tc *testContext) setUp(t *testing.T) error { //nolint: thelper
return ensureServicemeshOperators(t, tc)
return ensureDependencyOperators(t, tc)
}
Loading