Skip to content

Commit 73f2e5c

Browse files
author
Ace Nassri
authored
Fix failing tests (#683)
* Fix failing tests, take 1 * Take 2
1 parent 381b89a commit 73f2e5c

File tree

7 files changed

+32
-17
lines changed

7 files changed

+32
-17
lines changed

.kokoro/appengine/cloudsql-postgresql.cfg

Lines changed: 0 additions & 7 deletions
This file was deleted.

.kokoro/appengine/pubsub.cfg

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,16 @@ env_vars: {
1010
env_vars: {
1111
key: "TRAMPOLINE_BUILD_FILE"
1212
value: "github/nodejs-docs-samples/.kokoro/build.sh"
13-
}
13+
}
14+
15+
# Set the Pub/Sub topic to use
16+
env_vars: {
17+
key: "PUBSUB_TOPIC"
18+
value: "integration-tests-instance"
19+
}
20+
21+
# Set the Pub/Sub verification token to use
22+
env_vars: {
23+
key: "PUBSUB_VERIFICATION_TOKEN"
24+
value: "123456abcdef"
25+
}

.kokoro/cloudtasks.cfg

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@ env_vars: {
1010
env_vars: {
1111
key: "TRAMPOLINE_BUILD_FILE"
1212
value: "github/nodejs-docs-samples/.kokoro/build.sh"
13-
}
13+
}
14+
15+
# Set the task queue to use
16+
env_vars: {
17+
key: "GCP_QUEUE"
18+
value: "nodejs-test-queue-do-not-delete"
19+
}

appengine/cloudsql/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
"prompt": "1.0.0"
3131
},
3232
"devDependencies": {
33-
"@google-cloud/nodejs-repo-tools": "2.2.5",
34-
"ava": "0.25.0"
33+
"@google-cloud/nodejs-repo-tools": "2.3.0",
34+
"ava": "0.25.0",
35+
"semistandard": "^12.0.1"
3536
},
3637
"cloud-repo-tools": {
3738
"requiresKeyFile": true,

containerengine/hello-world/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414
},
1515
"scripts": {
1616
"start": "node server.js",
17-
"lint": "samples lint",
17+
"lint": "repo-tools lint",
1818
"pretest": "npm run lint",
19-
"system-test": "samples test app",
19+
"system-test": "repo-tools test app -- server.js",
2020
"test": "npm run system-test"
2121
},
2222
"dependencies": {},
2323
"devDependencies": {
24-
"@google-cloud/nodejs-repo-tools": "1.4.17"
24+
"@google-cloud/nodejs-repo-tools": "^2.3.0",
25+
"semistandard": "^12.0.1"
2526
},
2627
"cloud-repo-tools": {
2728
"test": {

endpoints/getting-started/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"@google-cloud/nodejs-repo-tools": "^2.3.0",
2828
"ava": "0.25.0",
2929
"proxyquire": "2.0.0",
30+
"semistandard": "^12.0.1",
3031
"sinon": "4.4.2",
3132
"supertest": "3.0.0"
3233
}

language/slackbot/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,20 @@
1818
"node": ">=4.3.2"
1919
},
2020
"scripts": {
21-
"lint": "samples lint",
21+
"lint": "repo-tools lint",
2222
"pretest": "npm run lint",
23-
"test": "samples test run --cmd ava -- -T 20s --verbose system-test/*.test.js"
23+
"test": "repo-tools test run --cmd ava -- -T 20s --verbose system-test/*.test.js"
2424
},
2525
"dependencies": {
2626
"@google-cloud/language": "0.11.0",
2727
"botkit": "0.5.7",
2828
"sqlite3": "3.1.9"
2929
},
3030
"devDependencies": {
31-
"@google-cloud/nodejs-repo-tools": "1.4.17",
31+
"@google-cloud/nodejs-repo-tools": "2.3.0",
3232
"ava": "0.21.0",
3333
"proxyquire": "1.8.0",
34+
"semistandard": "^12.0.1",
3435
"sinon": "3.2.0"
3536
}
3637
}

0 commit comments

Comments
 (0)