File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11
11
" *.js"
12
12
],
13
13
"scripts" : {
14
- "test" : " mocha system-test --timeout 10000 "
14
+ "test" : " mocha system-test --timeout 1000000 "
15
15
},
16
16
"dependencies" : {
17
- "@google-cloud/container" : " ^2.6.0"
17
+ "@google-cloud/container" : " ^2.6.0" ,
18
+ "uuid" : " ^8.3.2"
18
19
},
19
20
"devDependencies" : {
20
21
"chai" : " ^4.2.0" ,
Original file line number Diff line number Diff line change 14
14
15
15
'use strict' ;
16
16
17
+ // [START gke_list_cluster]
17
18
async function main ( ) {
18
19
// [START container_quickstart]
19
20
const container = require ( '@google-cloud/container' ) ;
@@ -30,11 +31,11 @@ async function main() {
30
31
} ;
31
32
32
33
const [ response ] = await client . listClusters ( request ) ;
33
- console . log ( 'Clusters:' ) ;
34
- console . log ( response ) ;
34
+ console . log ( 'Clusters: ' , response ) ;
35
35
}
36
36
quickstart ( ) ;
37
37
// [END container_quickstart]
38
38
}
39
39
40
40
main ( ) . catch ( console . error ) ;
41
+ // [END gke_list_cluster]
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const cp = require('child_process');
20
20
21
21
const execSync = cmd => cp . execSync ( cmd , { encoding : 'utf-8' } ) ;
22
22
23
- describe ( 'container samples' , ( ) => {
23
+ describe ( 'container samples - quickstart ' , ( ) => {
24
24
it ( 'should run the quickstart' , async ( ) => {
25
25
const stdout = execSync ( 'node quickstart' ) ;
26
26
assert . match ( stdout , / C l u s t e r s : / ) ;
You can’t perform that action at this time.
0 commit comments