Skip to content

Commit c948870

Browse files
committed
Made changes as per the comments
1 parent 64ce8bb commit c948870

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

test/e2e/configuration_anomaly_detection_test.go

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -682,20 +682,7 @@ var _ = Describe("Configuration Anomaly Detection", Ordered, func() {
682682
lsReasonsBefore = 0
683683
} else {
684684
lsReasonsBefore = lsResponseBefore.Items().Len()
685-
ginkgo.GinkgoWriter.Printf("Limited support reasons before pull secret corruption/user banned check: %d\n", lsReasonsBefore)
686-
}
687-
688-
// Check if user is banned (part of the investigation logic)
689-
ginkgo.GinkgoWriter.Printf("Checking if cluster owner is banned...\n")
690-
userBannedStatus, userBannedNotes, err := utils.IsUserBanned(ocme2eCli, cluster)
691-
Expect(err).NotTo(HaveOccurred(), "Failed to check if user is banned")
692-
693-
if userBannedStatus {
694-
ginkgo.GinkgoWriter.Printf("User is banned: %s\n", userBannedNotes)
695-
_, err = testPdClient.TriggerIncident("UpgradeConfigSyncFailureOver4HrSRE", clusterID)
696-
Expect(err).NotTo(HaveOccurred(), "Failed to trigger UpgradeConfigSyncFailureOver4Hr PagerDuty alert")
697-
} else {
698-
ginkgo.GinkgoWriter.Printf("User is not banned - proceeding with investigation\n")
685+
ginkgo.GinkgoWriter.Printf("Limited support reasons before pull secret corruption %d\n", lsReasonsBefore)
699686
}
700687

701688
// Get the original pull secret for backup

0 commit comments

Comments
 (0)