Skip to content

Commit

Permalink
Making topics test specific to avoid conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-munro committed Mar 30, 2022
1 parent f790f1d commit 9022a7c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -40,7 +40,7 @@ public class CreateBucketPubSubNotificationTest extends TestBase {
Notification.PayloadFormat.JSON_API_V1.JSON_API_V1;
private static final Map<String, String> CUSTOM_ATTRIBUTES = ImmutableMap.of("label1", "value1");
private static final String PROJECT = System.getenv("GOOGLE_CLOUD_PROJECT");
private static final String TOPIC = String.format("projects/%s/topics/new-topic", PROJECT);
private static final String TOPIC = String.format("projects/%s/topics/new-topic-create", PROJECT);
private static final String ETAG = "0xFF00";
private static final String SELF_LINK = "http://storage/b/n";
private static final String OBJECT_NAME_PREFIX = "index.html";
Expand Down
Expand Up @@ -39,7 +39,7 @@ public class DeleteBucketPubSubNotificationTest extends TestBase {
Notification.PayloadFormat.JSON_API_V1.JSON_API_V1;
private static final Map<String, String> CUSTOM_ATTRIBUTES = ImmutableMap.of("label1", "value1");
private static final String PROJECT = System.getenv("GOOGLE_CLOUD_PROJECT");
private static final String TOPIC = String.format("projects/%s/topics/new-topic", PROJECT);
private static final String TOPIC = String.format("projects/%s/topics/new-topic-delete", PROJECT);
private static TopicAdminClient topicAdminClient;
private static final NotificationInfo notificationInfo = NotificationInfo.newBuilder(TOPIC)
.setCustomAttributes(CUSTOM_ATTRIBUTES)
Expand Down
Expand Up @@ -39,7 +39,7 @@ public class ListPubSubNotificationsTest extends TestBase {
Notification.PayloadFormat.JSON_API_V1.JSON_API_V1;
private static final Map<String, String> CUSTOM_ATTRIBUTES = ImmutableMap.of("label1", "value1");
private static final String PROJECT = System.getenv("GOOGLE_CLOUD_PROJECT");
private static final String TOPIC = String.format("projects/%s/topics/new-topic", PROJECT);
private static final String TOPIC = String.format("projects/%s/topics/new-topic-list", PROJECT);
private static TopicAdminClient topicAdminClient;

@BeforeClass
Expand Down
Expand Up @@ -39,7 +39,7 @@ public class PrintPubSubNotificationTest extends TestBase {
Notification.PayloadFormat.JSON_API_V1.JSON_API_V1;
private static final Map<String, String> CUSTOM_ATTRIBUTES = ImmutableMap.of("label1", "value1");
private static final String PROJECT = System.getenv("GOOGLE_CLOUD_PROJECT");
private static final String TOPIC = String.format("projects/%s/topics/new-topic", PROJECT);
private static final String TOPIC = String.format("projects/%s/topics/new-topic-print", PROJECT);
private static TopicAdminClient topicAdminClient;

@BeforeClass
Expand Down

0 comments on commit 9022a7c

Please sign in to comment.