tests: Add tests for bucket-notification-utils (#2723)

Part fix - 1 for #2711
This commit is contained in:
Harshavardhana
2016-09-16 17:26:27 -07:00
committed by GitHub
parent 797d749322
commit 490056eee3
3 changed files with 163 additions and 11 deletions

View File

@@ -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 {