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

fix: update StorageOptions to not overwrite any previously set host #1142

Merged
merged 1 commit into from Nov 18, 2021
Merged

fix: update StorageOptions to not overwrite any previously set host #1142

merged 1 commit into from Nov 18, 2021

Conversation

BenWhitehead
Copy link
Collaborator

When calling StorageOptions#toBuilder() after creating the builder the host was explicitly set to the default host. This change removes that behavior instead moving the setting of the default host to the instantiation of a new builder.

Add unit tests to ensure host is set to the expected values based on different ways of creating an instance of StorageOptions.

Related:

When calling `StorageOptions#toBuilder()` after creating the builder the host was explicitly set to the default host. This change removes that behavior instead moving the setting of the default host to the instantiation of a new builder.

Add unit tests to ensure host is set to the expected values based on different ways of creating an instance of StorageOptions.

Related:
* googleapis/google-cloud-java#6579
* googleapis/google-cloud-java#7004
* googleapis/google-cloud-java#7034
@BenWhitehead BenWhitehead requested a review from a team as a code owner November 10, 2021 22:07
@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/java-storage API. label Nov 10, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 10, 2021
@BenWhitehead BenWhitehead merged commit 05375c0 into googleapis:main Nov 18, 2021
@BenWhitehead BenWhitehead deleted the fix-setHost branch November 18, 2021 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/java-storage API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants