Skip to content

Commit a52ae45

Browse files
authored
impl(oauth2): only enable RAB when testing with bazel CI (googleapis#16242)
1 parent 5f006f3 commit a52ae45

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

ci/cloudbuild/builds/lib/bazel.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ function bazel::common_args() {
6161
"--keep_going"
6262
"--experimental_convenience_symlinks=ignore"
6363
"--cache_test_results=$(should_cache_test_results)"
64+
# TODO(#16079): Remove macro definition when GA.
65+
"--copt=-DGOOGLE_CLOUD_CPP_TESTING_ENABLE_RAB"
6466
)
6567
if [[ -n "${BAZEL_REMOTE_CACHE:-}" ]]; then
6668
args+=("--remote_cache=${BAZEL_REMOTE_CACHE}")

google/cloud/BUILD.bazel

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ cc_library(
237237
name = "google_cloud_cpp_rest_internal",
238238
srcs = google_cloud_cpp_rest_internal_srcs,
239239
hdrs = google_cloud_cpp_rest_internal_hdrs,
240-
# TODO(#16079): Remove macro definition when GA.
241-
cxxopts = ["-DGOOGLE_CLOUD_CPP_TESTING_ENABLE_RAB"],
242240
linkopts = select({
243241
"@platforms//os:windows": [
244242
"-DEFAULTLIB:bcrypt.lib",
@@ -275,8 +273,6 @@ cc_library(
275273
[cc_test(
276274
name = test.replace("/", "_").replace(".cc", ""),
277275
srcs = [test],
278-
# TODO(#16079): Remove macro definition when GA.
279-
cxxopts = ["-DGOOGLE_CLOUD_CPP_TESTING_ENABLE_RAB"],
280276
deps = [
281277
":google_cloud_cpp_rest_internal",
282278
"//google/cloud/testing_util:google_cloud_cpp_testing_private",

0 commit comments

Comments
 (0)