Skip to content

Commit

Permalink
It (#1926)
Browse files Browse the repository at this point in the history
* testing the flaky it

* corrected the notification prefix

* corrected the notification prefix
  • Loading branch information
aksharauke authored Oct 11, 2024
1 parent 8c035b9 commit 9d95494
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void setUp() throws IOException, InterruptedException {
createPubsubResources(
getClass().getSimpleName(),
pubsubResourceManager,
getGcsPath("dlq", gcsResourceManager));
getGcsPath("dlq", gcsResourceManager).replace("gs://" + artifactBucketName, ""));
jobInfo =
launchDataflowJob(
gcsResourceManager,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void setUp() throws IOException {
createPubsubResources(
getClass().getSimpleName(),
pubsubResourceManager,
getGcsPath("dlq", gcsResourceManager));
getGcsPath("dlq", gcsResourceManager).replace("gs://" + artifactBucketName, ""));
jobInfo =
launchDataflowJob(
gcsResourceManager,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void setUp() throws IOException {
createPubsubResources(
getClass().getSimpleName(),
pubsubResourceManager,
getGcsPath("dlq", gcsResourceManager));
getGcsPath("dlq", gcsResourceManager).replace("gs://" + artifactBucketName, ""));
jobInfo =
launchDataflowJob(
gcsResourceManager,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public SubscriptionName createPubsubResources(
if (prefix.startsWith("/")) {
prefix = prefix.substring(1);
}
prefix += "/retry";
prefix += "/retry/";
gcsClient.createNotification(topic.toString(), prefix);
return subscription;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void setUp() throws IOException {
createPubsubResources(
getClass().getSimpleName(),
pubsubResourceManager,
getGcsPath("dlq", gcsResourceManager));
getGcsPath("dlq", gcsResourceManager).replace("gs://" + artifactBucketName, ""));

jobInfo =
launchDataflowJob(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ public void setupResourceManagers(
createPubsubResources(
getClass().getSimpleName(),
pubsubResourceManager,
getGcsPath(artifactBucket, "dlq", gcsResourceManager));
getGcsPath(artifactBucket, "dlq", gcsResourceManager)
.replace("gs://" + artifactBucket, ""));
}

public void setupMySQLResourceManager(int numShards) throws IOException {
Expand Down Expand Up @@ -117,7 +118,7 @@ public SubscriptionName createPubsubResources(
if (prefix.startsWith("/")) {
prefix = prefix.substring(1);
}
prefix += "/retry";
prefix += "/retry/";
gcsResourceManager.createNotification(topic.toString(), prefix);
return subscription;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void setUp() throws IOException {
createPubsubResources(
getClass().getSimpleName(),
pubsubResourceManager,
getGcsPath("dlq", gcsResourceManager));
getGcsPath("dlq", gcsResourceManager).replace("gs://" + artifactBucketName, ""));
jobInfo =
launchDataflowJob(
gcsResourceManager,
Expand Down

0 comments on commit 9d95494

Please sign in to comment.