mirror of
https://github.com/minio/minio.git
synced 2025-11-21 02:09:08 -05:00
tests: Add tests for bucket-notification-utils (#2723)
Part fix - 1 for #2711
This commit is contained in:
@@ -324,6 +324,11 @@ func TestListenBucketNotification(t *testing.T) {
|
||||
t.Fatal("Unexpected error:", err)
|
||||
}
|
||||
|
||||
// Validate if minio SNS is configured for an empty topic configs.
|
||||
if isMinioSNSConfigured(listenARN, nil) {
|
||||
t.Fatal("SNS listen shouldn't be configured.")
|
||||
}
|
||||
|
||||
// Check if the config is loaded
|
||||
notificationCfg := globalEventNotifier.GetBucketNotificationConfig(bucketName)
|
||||
if notificationCfg == nil {
|
||||
|
||||
Reference in New Issue
Block a user