Skip to content

Commit cc8b733

Browse files
author
Bill Prin
committed
Add tests to modules
1 parent a4c0af3 commit cc8b733

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

cloudtasks/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<artifactId>doc-samples</artifactId>
2828
<groupId>com.google.cloud</groupId>
2929
<version>1.0.0</version>
30-
<relativePath>../..</relativePath>
30+
<relativePath>..</relativePath>
3131
</parent>
3232

3333

cloudtasks/queue.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ queue:
33
mode: pull
44

55
- name: my-appengine-queue
6-
target: default
6+
target: tasks-test
77
rate: 1/s

cloudtasks/src/test/java/com/example/cloud/tasks/pullqueues/CloudTasksPullSnippetsIT.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
import org.junit.Before;
2828
import org.junit.Test;
29+
import org.junit.runner.RunWith;
30+
import org.junit.runners.JUnit4;
2931

3032
import java.io.ByteArrayOutputStream;
3133
import java.io.PrintStream;

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<modules>
4848
<!-- App Engine Standard -->
4949
<module>appengine</module>
50+
<module>cloudtasks</module>
5051

5152
<!-- App Engine Flexible -->
5253
<module>flexible/analytics</module>

travis.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ common_travis_dir="$(travis_changed_files_parent)"
7474

7575
[ -z "$common_travis_dir" ] || pushd "$common_travis_dir"
7676

77+
# Setup environment for Task tests
78+
export LOCATION_ID=us-central1
79+
export PULL_QUEUE_ID=my-pull-queue
80+
export APPENGINE_QUEUE_ID=my-appengine-queue
81+
82+
7783
# Give Maven a bit more memory
7884
#export MAVEN_OPTS='-XX:+PrintFlagsFinal -Xmx800m -Xms400m'
7985
export MAVEN_OPTS='-Xmx800m -Xms400m'

0 commit comments

Comments
 (0)