Skip to content

Commit 5630830

Browse files
authored
build: Update golden integration tests scripts (#12210)
sdk-platform-java was recently migrated to google-cloud-java. This caused the golden integration tests scripts to stop working. Updated the scripts and README to fix the issue.
1 parent bbd71ce commit 5630830

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sdk-platform-java/scripts/update_golden.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ cd srcjar_unpacked
1111
UNPACK_DIR=$PWD
1212
unzip -q -c "../${RAW_SRCJAR}" temp-codegen.srcjar | jar x
1313

14-
mkdir -p ${BUILD_WORKSPACE_DIRECTORY}/test/integration/goldens/${API_NAME}
15-
cd ${BUILD_WORKSPACE_DIRECTORY}/test/integration/goldens/${API_NAME}
14+
mkdir -p ${BUILD_WORKSPACE_DIRECTORY}/sdk-platform-java/test/integration/goldens/${API_NAME}
15+
cd ${BUILD_WORKSPACE_DIRECTORY}/sdk-platform-java/test/integration/goldens/${API_NAME}
1616

1717
# clear out existing Java and JSON files.
1818
find . -name '*.java' -delete

sdk-platform-java/test/integration/goldens/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ files.
1212
If they are not identical, then the integration test will fail.
1313

1414
```sh
15-
bazelisk test //test/integration:redis
15+
bazelisk test //sdk-platform-java/test/integration:redis
1616
```
1717

1818
## How To Update Goldens
@@ -24,7 +24,7 @@ in `redis` folder.
2424
```sh
2525
# In repository's root directory
2626
mvn clean install -DskipTests
27-
bazelisk run //test/integration:update_redis
27+
bazelisk run //sdk-platform-java/test/integration:update_redis
2828
```
2929

3030
## Adding new integration tests

0 commit comments

Comments
 (0)