Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace client creation methods for all new samples with auto-generated admin clients #2927

Merged
merged 24 commits into from
Feb 26, 2024

Conversation

arpan14
Copy link
Contributor

@arpan14 arpan14 commented Feb 23, 2024

  • Replacing client creation methods with createDatabaseAdminClient() and createInstanceAdminClient methods since it supports emulator.
  • Removing some unused imports.

@arpan14 arpan14 requested a review from a team as a code owner February 23, 2024 15:00
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner API. samples Issues that are directly related to samples. labels Feb 23, 2024
@product-auto-label product-auto-label bot removed the size: m Pull request size is medium. label Feb 24, 2024
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Feb 24, 2024
@@ -113,6 +113,7 @@ public static void afterClass() throws InterruptedException {
}
}
for (String backupId : idGenerator.getBackupIds()) {
System.out.println("Trying to delete " + backupId);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I assume that this and the other System.out.println will be removed before merging.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually pretty useful. At the end of the test it prints if all the resources were cleaned up or not.

@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: s Pull request size is small. labels Feb 24, 2024
@arpan14 arpan14 added owlbot:run Add this label to trigger the Owlbot post processor. and removed owlbot:run Add this label to trigger the Owlbot post processor. labels Feb 24, 2024
@rahul2393 rahul2393 added the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 26, 2024
@arpan14 arpan14 added owlbot:run Add this label to trigger the Owlbot post processor. and removed owlbot:run Add this label to trigger the Owlbot post processor. labels Feb 26, 2024
@chingor13 chingor13 added owlbot:run Add this label to trigger the Owlbot post processor. and removed owlbot:run Add this label to trigger the Owlbot post processor. labels Feb 26, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 26, 2024
@arpan14 arpan14 added the automerge Merge the pull request once unit tests and other checks pass. label Feb 26, 2024
@arpan14 arpan14 merged commit c6d82d4 into googleapis:main Feb 26, 2024
25 of 26 checks passed
@arpan14 arpan14 deleted the admin-sample-emulator-support branch February 26, 2024 18:55
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/java-spanner API. samples Issues that are directly related to samples. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants