Skip to content

Commit 5f7c4a5

Browse files
committed
Add secrets for GOOGLE_API_KEY and Translate tests.
Translate API requires an API key, not a service account key.
1 parent 5da7970 commit 5f7c4a5

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
<module>storage/xml-api/cmdline-sample</module>
115115
<module>storage/xml-api/serviceaccount-appengine-sample</module>
116116
<module>taskqueue/deferred</module>
117+
<module>translate</module>
117118
<module>translate/cloud-client</module>
118119
<module>unittests</module>
119120
<module>vision/face-detection</module>

secrets.env.EXAMPLE

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export AWS_ACCESS_KEY_ID=MY_KEY_ID
2+
export AWS_SECRET_ACCESS_KEY=MY_ACCESS_KEY
3+
export GOOGLE_API_KEY=MY_API_KEY

secrets.env.enc

64 Bytes
Binary file not shown.

translate/pom.xml

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ limitations under the License.
2525
<maven.compiler.source>1.8</maven.compiler.source>
2626
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2727
</properties>
28+
29+
<!-- Parent defines config for testing & linting. -->
2830
<parent>
31+
<artifactId>doc-samples</artifactId>
2932
<groupId>com.google.cloud</groupId>
30-
<artifactId>shared-configuration</artifactId>
3133
<version>1.0.0</version>
32-
<relativePath>../java-repo-tools</relativePath>
34+
<relativePath>..</relativePath>
3335
</parent>
36+
3437
<dependencies>
3538
<dependency>
3639
<groupId>com.google.cloud</groupId>

0 commit comments

Comments
 (0)