GeezerVison is showing github.com — Create base class for serialization tests by mziccard · Pull Request #754 · googleapis/google-cloud-java
Conversation
This fixes #657 and #676 by adding a base class for serialization tests as well as a SerializationTest to gcloud-java-core.
To achieve this I had to add a new execution goal to our build (text-jar) and add core's test jar as a test dependency to all our modules' poms.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
import com.google.common.collect.ImmutableMap;
|
|
|
import com.google.common.collect.ImmutableSet;
|
|
|
import com.google.gcloud.Identity;
|
|
|
import com.google.gcloud.BaseSerializationTest;
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Just one or two nits from me + a couple outdated things that are unrelated to your PR (can either be fixed here or in the future if we create an issue).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@ajkannan thanks for the feedback, you are right on everything so I tried to address all comments in 967c5c5
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
|
|
|
@Test
|
|
|
public void testAuthCredentialState() throws IOException, ClassNotFoundException {
|
|
|
AuthCredentials credentials = AuthCredentials.createApplicationDefaults();
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
&& Objects.equals(retriableExceptions, other.retriableExceptions)
|
|
|
&& Objects.equals(nonRetriableExceptions, other.nonRetriableExceptions)
|
|
|
&& Objects.equals(retryInfo, other.retryInfo);
|
|
|
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Nice, looks like Travis is passing now. Just finished another pass with two more comments.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Guys thanks for the feedback, looks much nicer now. I think I addressed all comments but please have a look.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
public AuthCredentials restore() {
|
|
|
return INSTANCE;
|
|
|
}
|
|
|
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Nice, looks good to me but I will let @ajkannan merge it after looking more carefully.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
|
|
|
@Override
|
|
|
protected Serializable[] serializableObjects() {
|
|
|
return new Serializable[]{EXCEPTION_HANDLER, IDENTITY, PAGE, RETRY_PARAMS};
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
I looked a deepr look. Looks great! Feel free to merge after fixing the 2 issues mentioned.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@aozarov I addressed the comments. I added equals and hashCode method to BaseServiceException and added the service exceptions to all serialization tests. Please take one more look before we merge this in.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

Coverage increased (+1.07%) to 84.266% when pulling 83ddb08 on mziccard:serialization-tests into 7d48ec7 on GoogleCloudPlatform:master.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
aozarov
added a commit
that referenced
this pull request
Mar 18, 2016
Create base class for serialization tests
github-actions Bot
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Jun 29, 2022
)
* chore: update dependencies for regapic
* add more dependencies and trigger comment
* update goldens
* fix indentation
* remove duplicate gax-httpjson dependency
* remove duplicated dependencies
Source-Link: googleapis/synthtool@fa54eb2
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:1ec28a46062b19135b11178ceee60231e5f5a92dab454e23ae0aab72cd875906
github-actions Bot
pushed a commit
that referenced
this pull request
Jul 14, 2022
Source-Link: googleapis/synthtool@18d4e9b
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:f8374176dc59291f05dd3fec927a9da2cda687a9ef4de32e77f699a2be12ab45
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
github-actions Bot
pushed a commit
that referenced
this pull request
Nov 9, 2022
Co-authored-by: Anthonios Partheniou <[email protected]>
Source-Link: googleapis/synthtool@9457e69
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:a3fe0b4c75f322520f548e535ed329df1e475ace3cb4a979b78e003cb822636a
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
chingor13
pushed a commit
that referenced
this pull request
Feb 24, 2026
* disabling self-signed jwt for domain wide delegation
* fix: nit fixes
chingor13
pushed a commit
that referenced
this pull request
Mar 12, 2026
* disabling self-signed jwt for domain wide delegation
* fix: nit fixes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
cla: yes
This human has signed the Contributor License Agreement.
type: cleanup
An internal cleanup or hygiene concern.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Refactor serialization test code.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|