-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[IAM] Remove old quickstart, add dependencies #3752
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
Conversation
@@ -1,4 +1,4 @@ | |||
/* Copyright 2018 Google LLC | |||
/* Copyright 2020 Google LLC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to update this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is technically a new quickstart, I'm just renaming it to avoid confusion. (See #2829)
GoogleNetHttpTransport.newTrustedTransport(), | ||
JacksonFactory.getDefaultInstance(), | ||
new HttpCredentialsAdapter(credential)) | ||
.setApplicationName("quickstart") | ||
.setApplicationName("service-accounts") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be better if you used "Java IAM Quickstart snippet"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PTAL
Java 11 failed. |
Java 11
|
The Java 8 and Java 11 typically run at the same time. |
The problem is in L129 in the tests - you probably should add an UUID in there somewhere. (and make sure to remove it) |
That said, things are passing now. I suspect the test will be flakey, so consider my comment about a UUID. |
What would I add a UUID to? The service account already has one, and the project ID is from an environment variable. |
Removes old Quickstart. Also adds dependencies for IAM Credentials and Troubleshooter, which will be used to keep the client library install instructions up-to-date.
I have followed Sample Format Guide
pom.xml
parent set to latestshared-configuration
Appropriate changes to README are included in PR
Tests pass:
mvn clean verify
requiredLint passes:
mvn -P lint checkstyle:check
requiredPlease merge this PR for me once it is approved.