Skip to content

Commit

Permalink
Update opendatahub label
Browse files Browse the repository at this point in the history
(cherry picked from commit 3e975f9)
  • Loading branch information
VaishnaviHire committed Oct 25, 2023
1 parent c905427 commit 9f8b649
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions tests/e2e/dsc_creation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,7 @@ func (tc *testContext) testAllApplicationCreation(t *testing.T) error {
if tc.testDsc.Spec.Components.CodeFlare.ManagementState == operatorv1.Managed {
if err != nil {
// dependent operator error, as expected
if strings.Contains(err.Error(), "Please install the operator before enabling component") {
t.Logf("expected error: %v", err.Error())
} else {
{
require.NoError(t, err, "error validating application %v when enabled", tc.testDsc.Spec.Components.CodeFlare.GetComponentName())
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/dsc_deletion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (tc *testContext) testApplicationDeletion(component components.ComponentInt

if err := wait.PollUntilContextTimeout(tc.ctx, tc.resourceRetryInterval, tc.resourceCreationTimeout, false, func(ctx context.Context) (done bool, err error) {
appList, err := tc.kubeClient.AppsV1().Deployments(tc.applicationsNamespace).List(ctx, metav1.ListOptions{
LabelSelector: "app.kubernetes.io/part-of=" + component.GetComponentName(),
LabelSelector: "app.opendatahub.io/" + component.GetComponentName(),
})
if err != nil {
log.Printf("error listing component deployments :%v. Trying again...", err)
Expand Down

0 comments on commit 9f8b649

Please sign in to comment.