| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…integretiontests that an unauthenticated client have read access to a public bucket.
|
Please take a look. |
Sorry, something went wrong.
| fail("Expected StorageException"); | ||
| } catch (StorageException ex) { | ||
| // expected | ||
| } |
|
|
||
| // try to upload blobs to a bucket that requires authentication | ||
| try { | ||
| unauthorizedStorage.create(sourceBlob); |
| } | ||
|
|
||
| /** | ||
| * Returns a unautenticated {@code StorageOptions} instance. |
| /** | ||
| * Returns a unauthenticated {@code StorageOptions} instance. | ||
| */ | ||
| public static StorageOptions getUnauthenticated() { |
| numBlobs++; | ||
| blobIterator.next(); | ||
| } | ||
| assertEquals(13, numBlobs); |
Add Truth dependency to build file. Change to Truth for assertion. Change method name to be consistent with previous methods.
|
PTAL |
Sorry, something went wrong.
|
Apart from @andreamlin 's comment, LGTM. I'll let Andrea +2 |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
…rces-support to v0.28.0 (#2649) [](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud.opentelemetry:detector-resources-support](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java) | `0.27.0` -> `0.28.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>GoogleCloudPlatform/opentelemetry-operations-java (com.google.cloud.opentelemetry:detector-resources-support)</summary> ### [`v0.28.0`](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/releases/tag/v0.28.0) [Compare Source](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/compare/v0.27.0...v0.28.0) #### Release Highlights - Add support for `CreateServiceTimeseries` in metrics exporter in [#​318](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/issues/318). - Add resource attributes as metrics labels by providing a Predicate based filter to control which resource attributes end up as metric labels in [#​314](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/issues/314), [#​319](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/issues/319). #### What's Changed - Add Readme for detector-resources-support module by [@​psx95](https://togithub.com/psx95) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/282](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/282) - Copy instrumentation quickstart out of java-docs-samples by [@​aabmass](https://togithub.com/aabmass) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/283](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/283) - Enable snippet-bot by [@​aabmass](https://togithub.com/aabmass) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/284](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/284) - Quota project fix by [@​aabmass](https://togithub.com/aabmass) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/286](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/286) - Use logstash-logback-encoder version that works with spring boot 2 by [@​aabmass](https://togithub.com/aabmass) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/285](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/285) - Update instrumentation quickstart README links by [@​aabmass](https://togithub.com/aabmass) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/287](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/287) - Make examples/instrumentation-quickstart a standalone gradle build by [@​aabmass](https://togithub.com/aabmass) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/289](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/289) - Add CI for examples/instrumentation-quickstart by [@​aabmass](https://togithub.com/aabmass) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/290](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/290) - Test against java 11 by [@​aabmass](https://togithub.com/aabmass) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/293](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/293) - Update TraceTranslator.java by [@​WadeGulbrandsen](https://togithub.com/WadeGulbrandsen) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/296](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/296) - feat: simplify logging in instrumentation quickstart by [@​dashpole](https://togithub.com/dashpole) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/298](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/298) - Update Gradle to v8.6 by [@​psx95](https://togithub.com/psx95) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/300](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/300) - Replace resource detector with upstream detector by [@​psx95](https://togithub.com/psx95) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/301](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/301) - Update links to the upstream detector by [@​psx95](https://togithub.com/psx95) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/302](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/302) - Add OTLP trace with ADC example by [@​damemi](https://togithub.com/damemi) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/297](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/297) - Update auto-exporter readme by [@​psx95](https://togithub.com/psx95) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/304](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/304) - Add tests to verify OTel integration using in-memory exporter by [@​psx95](https://togithub.com/psx95) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/306](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/306) - Add GH action step to test shadowJar by [@​psx95](https://togithub.com/psx95) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/309](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/309) - Add missing GOOGLE_CLOUD_QUOTA_PROJECT environment variable to compose file by [@​aabmass](https://togithub.com/aabmass) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/311](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/311) - Update instrumentation quickstart to new region tag name by [@​aabmass](https://togithub.com/aabmass) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/312](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/312) - Update instrumentation-quickstart README by [@​psx95](https://togithub.com/psx95) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/315](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/315) - Add resource attributes as metric labels by [@​psx95](https://togithub.com/psx95) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/314](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/314) - Update resource detection sample by [@​psx95](https://togithub.com/psx95) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/317](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/317) - Make setResourceAttributesFilter public by [@​psx95](https://togithub.com/psx95) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/319](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/319) - Add support for createServiceTimeSeries by [@​psx95](https://togithub.com/psx95) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/318](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/318) - Disable release for gcp-resource-detector by [@​psx95](https://togithub.com/psx95) in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/321](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/321) #### New Contributors - [@​WadeGulbrandsen](https://togithub.com/WadeGulbrandsen) made their first contribution in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/296](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/296) - [@​damemi](https://togithub.com/damemi) made their first contribution in [https://github.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/297](https://togithub.com/GoogleCloudPlatform/opentelemetry-operations-java/pull/297) **Full Changelog**: GoogleCloudPlatform/opentelemetry-operations-java@v0.27.0...v0.28.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/sdk-platform-java). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMwMS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
🤖 I have created a release *beep* *boop* --- <details><summary>2.39.0</summary> ## [2.39.0](googleapis/sdk-platform-java@v2.38.1...v2.39.0) (2024-04-18) ### Features * add `libraries_bom_version` to generation configuration ([#2639](googleapis/sdk-platform-java#2639)) ([76eb62b](googleapis/sdk-platform-java@76eb62b)) * Add ChannelPoolSettings Getter for gRPC's ChannelProvider ([#2612](googleapis/sdk-platform-java#2612)) ([c8dae8f](googleapis/sdk-platform-java@c8dae8f)) * add config change ([#2604](googleapis/sdk-platform-java#2604)) ([a8c93b5](googleapis/sdk-platform-java@a8c93b5)) * add entry point ([#2616](googleapis/sdk-platform-java#2616)) ([f5492bb](googleapis/sdk-platform-java@f5492bb)) * add generation config comparator ([#2587](googleapis/sdk-platform-java#2587)) ([3461166](googleapis/sdk-platform-java@3461166)) * Add JavadocJar Task to build.gradle for self service libraries ([#2593](googleapis/sdk-platform-java#2593)) ([a66df18](googleapis/sdk-platform-java@a66df18)) * Client/StubSettings' getEndpoint() returns the resolved endpoint ([#2440](googleapis/sdk-platform-java#2440)) ([7cf0d8f](googleapis/sdk-platform-java@7cf0d8f)) * generate selected libraries ([#2598](googleapis/sdk-platform-java#2598)) ([e4572d1](googleapis/sdk-platform-java@e4572d1)) * Validate the Universe Domain inside Java-Core ([#2592](googleapis/sdk-platform-java#2592)) ([a5e1141](googleapis/sdk-platform-java@a5e1141)) ### Bug Fixes * add main to `generate_repo.py` ([#2607](googleapis/sdk-platform-java#2607)) ([df39521](googleapis/sdk-platform-java@df39521)) * correct deep-remove and deep-preserve regexes ([#2572](googleapis/sdk-platform-java#2572)) ([7d59fa1](googleapis/sdk-platform-java@7d59fa1)) * first attempt should use the min of RPC timeout and total timeout ([#2641](googleapis/sdk-platform-java#2641)) ([806a52e](googleapis/sdk-platform-java@806a52e)) * remove duplicated calls to AutoValue builders ([#2636](googleapis/sdk-platform-java#2636)) ([c883b8f](googleapis/sdk-platform-java@c883b8f)) * remove unnecessary slf4j and AbstractGoogleClientRequest native image configs ([9cb7c09](googleapis/sdk-platform-java@9cb7c09)) * remove unnecessary slf4j and AbstractGoogleClientRequest native image configs ([#2628](googleapis/sdk-platform-java#2628)) ([9cb7c09](googleapis/sdk-platform-java@9cb7c09)) ### Dependencies * update arrow.version to v15.0.2 ([#2589](googleapis/sdk-platform-java#2589)) ([0947407](googleapis/sdk-platform-java@0947407)) * update dependency com.google.cloud.opentelemetry:detector-resources-support to v0.28.0 ([#2649](googleapis/sdk-platform-java#2649)) ([079bcff](googleapis/sdk-platform-java@079bcff)) * update dependency gitpython to v3.1.41 [security] ([#2625](googleapis/sdk-platform-java#2625)) ([018e9a9](googleapis/sdk-platform-java@018e9a9)) * update dependency net.bytebuddy:byte-buddy to v1.14.13 ([#2646](googleapis/sdk-platform-java#2646)) ([5a79cd2](googleapis/sdk-platform-java@5a79cd2)) * update dependency org.threeten:threeten-extra to v1.8.0 ([#2650](googleapis/sdk-platform-java#2650)) ([5666adb](googleapis/sdk-platform-java@5666adb)) * update dependency org.threeten:threetenbp to v1.6.9 ([#2602](googleapis/sdk-platform-java#2602)) ([767eec1](googleapis/sdk-platform-java@767eec1)) * update dependency org.threeten:threetenbp to v1.6.9 ([#2665](googleapis/sdk-platform-java#2665)) ([563d8ae](googleapis/sdk-platform-java@563d8ae)) * update google api dependencies ([#2584](googleapis/sdk-platform-java#2584)) ([22733b1](googleapis/sdk-platform-java@22733b1)) * update googleapis/java-cloud-bom digest to 7071341 ([#2608](googleapis/sdk-platform-java#2608)) ([8f34fe7](googleapis/sdk-platform-java@8f34fe7)) * update netty dependencies to v4.1.109.final ([#2597](googleapis/sdk-platform-java#2597)) ([6b6939e](googleapis/sdk-platform-java@6b6939e)) * update opentelemetry-java monorepo to v1.37.0 ([#2652](googleapis/sdk-platform-java#2652)) ([708cf7f](googleapis/sdk-platform-java@708cf7f)) * update protobuf dependencies to v3.25.3 ([#2491](googleapis/sdk-platform-java#2491)) ([e2235a8](googleapis/sdk-platform-java@e2235a8)) * update slf4j monorepo to v2.0.13 ([#2647](googleapis/sdk-platform-java#2647)) ([2e3d813](googleapis/sdk-platform-java@2e3d813)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
…googleapis#2649) * chore: Update generation configuration at Thu Jul 31 02:47:07 UTC 2025 * chore: Update generation configuration at Fri Aug 1 02:54:57 UTC 2025 * chore: Update generation configuration at Sat Aug 2 02:42:43 UTC 2025 * chore: generate libraries at Sat Aug 2 02:43:12 UTC 2025 * chore: Update generation configuration at Tue Aug 5 02:50:25 UTC 2025 * chore: generate libraries at Tue Aug 5 02:50:52 UTC 2025 * chore: Update generation configuration at Wed Aug 6 02:48:20 UTC 2025 * chore: generate libraries at Wed Aug 6 02:48:53 UTC 2025 * chore: Update generation configuration at Thu Aug 7 02:49:23 UTC 2025
* feat/idle-channel-eviction Change-Id: I62fe152c293438bf64b657b5b1fe795e22ce9c85 * create noop channel primer Change-Id: I8d4212aad0ca7613b6c33d69d925671a090d1609 * no-op channel primer changes Change-Id: I9ad5eeaacb02ace9ba3cf7c09b6846dcbc298fb8 * update ignored diffs Change-Id: I04698ba82b95c82301e4e9f436401698675d7ea9 * chore: Update generation configuration at Thu Aug 7 02:49:23 UTC 2025 (googleapis#2649) * chore: Update generation configuration at Thu Jul 31 02:47:07 UTC 2025 * chore: Update generation configuration at Fri Aug 1 02:54:57 UTC 2025 * chore: Update generation configuration at Sat Aug 2 02:42:43 UTC 2025 * chore: generate libraries at Sat Aug 2 02:43:12 UTC 2025 * chore: Update generation configuration at Tue Aug 5 02:50:25 UTC 2025 * chore: generate libraries at Tue Aug 5 02:50:52 UTC 2025 * chore: Update generation configuration at Wed Aug 6 02:48:20 UTC 2025 * chore: generate libraries at Wed Aug 6 02:48:53 UTC 2025 * chore: Update generation configuration at Thu Aug 7 02:49:23 UTC 2025 * deps: update shared dependencies (googleapis#2654) * chore(main): release 2.64.0 (googleapis#2652) * chore(main): release 2.64.0 * chore: generate libraries at Fri Aug 8 14:28:59 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot <cloud-java-bot@google.com> * feat(bigtable): lower the value for max rpc channels as channel resize is slow (1m, 2 channel) (googleapis#2656) …conservative Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://togithub.com/googleapis/java-bigtable/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) - [ ] Rollback plan is reviewed and LGTMed - [ ] All new data plane features have a completed end to end testing plan Fixes #<issue_number_goes_here> ☕️ If you write sample code, please follow the [samples format]( https://togithub.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md). * chore(main): release 2.64.1-SNAPSHOT (googleapis#2655) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). * chore(main): release 2.65.0 (googleapis#2657) * chore(main): release 2.65.0 * chore: generate libraries at Tue Aug 12 16:25:49 UTC 2025 --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot <cloud-java-bot@google.com> * chore(main): release 2.65.1-SNAPSHOT (googleapis#2658) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> * more noop channel primer changes Change-Id: I3baa8e93bc614efe21f1159a708be36881120e34 * remove outdated comments Change-Id: I11e8da901a93a49009caf4caf0385fd5e3c8091b * cleanup Change-Id: Iaa30338d04ba846469fc6152e0683e53573c40ee * pr feedback Change-Id: Ie0fde53cd17b1feeaaffd15382e936a46d84c5c1 * fix: lint Change-Id: Ib8c6b56569c17997a126065a6fa00e8bb1604494 * fix: pr feedback Change-Id: Ic5f18450c5f60bcf5473e6890b41b006821ddf9d * fix: feedback Change-Id: Ib7f24524b6050ec11ca18e5dc624ca8513f99ec8 * fix: lint Change-Id: I78712b99a975fb6ec9defcdb6812e955df555e1f * move history pruning Change-Id: Ibeae2ce0b790ef2731be541a70fa829e220fa4a8 * fix: nits Change-Id: Ic812e3523a9f29dc612fbdf58ee8f9dbb8a283f4 * Apply suggestion from @mutianf Co-authored-by: Mattie Fu <mattiefu@google.com> * Apply suggestion from @mutianf Co-authored-by: Mattie Fu <mattiefu@google.com> --------- Co-authored-by: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Co-authored-by: Mattie Fu <mattiefu@google.com> Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: cloud-java-bot <cloud-java-bot@google.com> Co-authored-by: Sushan Bhattarai <sushantsusan@google.com>
| Back | FazBrowse Home | New Git URL |
Add a method to create an unauthenticated client. Also, add integration tests that an unauthenticated client have read access to a public bucket.