@@ -28,7 +28,7 @@ var _ = Describe("Observability:", Ordered, func() {
28
28
It ("RHACM4K-1406 - Observability - RBAC - only authorized user could query managed cluster metrics data [Observability][Integration]@ocpInterop @non-ui-post-restore @non-ui-post-release @non-ui-pre-upgrade @non-ui-post-upgrade @post-upgrade @post-restore @e2e @post-release (requires-ocp/g0) (obs_rbac/g0)" , func () {
29
29
By ("Logging in as admin and querying managed cluster metrics data" , func () {
30
30
Eventually (func () error {
31
- err = utils .LoginOCUser (testOptions , "e2eadmin " , "e2eadmin " )
31
+ err = utils .LoginOCUser (testOptions , "admin " , "admin " )
32
32
if err != nil {
33
33
klog .Errorf ("Failed to login as admin: %v" , err )
34
34
return err
@@ -83,7 +83,7 @@ var _ = Describe("Observability:", Ordered, func() {
83
83
})
84
84
85
85
It ("RHACM4K-1439 - Observability - RBAC - Verify only cluster-manager-admin role can deploy MCO CR [Observability][Integration]@ocpInterop @non-ui-post-restore @non-ui-post-release @non-ui-pre-upgrade @non-ui-post-upgrade @post-upgrade @post-restore @e2e @post-release (requires-ocp/g0) (obs_rbac/g0)" , func () {
86
- By ("Logging as kube:admin checking if MCO can be deleted by user1 and e2eadmin " , func () {
86
+ By ("Logging as kube:admin checking if MCO can be deleted by user1 and admin " , func () {
87
87
Eventually (func () error {
88
88
_ , err = exec .Command ("oc" , "config" , "use-context" , testOptions .HubCluster .KubeContext ).CombinedOutput ()
89
89
if err != nil {
@@ -100,8 +100,8 @@ var _ = Describe("Observability:", Ordered, func() {
100
100
if bytes .Contains (out .Bytes (), []byte ("user1" )) {
101
101
return fmt .Errorf ("user1 can delete multiclusterobservabilities.observability.open-cluster-management.io CR" )
102
102
}
103
- if ! bytes .Contains (out .Bytes (), []byte ("e2eadmin " )) {
104
- return fmt .Errorf ("e2eadmin can't delete multiclusterobservabilities.observability.open-cluster-management.io CR" )
103
+ if ! bytes .Contains (out .Bytes (), []byte ("admin " )) {
104
+ return fmt .Errorf ("admin can't delete multiclusterobservabilities.observability.open-cluster-management.io CR" )
105
105
}
106
106
return nil
107
107
}, EventuallyTimeoutMinute * 1 , EventuallyIntervalSecond * 5 ).Should (Succeed ())
@@ -110,7 +110,6 @@ var _ = Describe("Observability:", Ordered, func() {
110
110
111
111
AfterEach (func () {
112
112
os .Unsetenv ("USER_TOKEN" )
113
- _ , _ = exec .Command ("oc" , "config" , "use-context" , testOptions .HubCluster .KubeContext ).CombinedOutput ()
114
113
if CurrentSpecReport ().Failed () {
115
114
utils .LogFailingTestStandardDebugInfo (testOptions )
116
115
}
0 commit comments