File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,13 +119,19 @@ describe('metadata', function() {
119119 describe ( 'getGKEDescriptor' , function ( ) {
120120 var CLUSTER_NAME = 'gke-cluster-name' ;
121121
122- it ( 'should return the correct descriptor' , function ( ) {
123- assert . deepEqual ( Metadata . getGKEDescriptor ( PROJECT_ID , CLUSTER_NAME ) , {
124- type : 'container' ,
125- labels : {
126- cluster_name : CLUSTER_NAME ,
127- project_id : PROJECT_ID
128- }
122+ it ( 'should return the correct descriptor' , function ( done ) {
123+ instanceValueOverride = CLUSTER_NAME ;
124+
125+ Metadata . getGKEDescriptor ( PROJECT_ID , function ( err , descriptor ) {
126+ assert . ifError ( err ) ;
127+ assert . deepEqual ( descriptor , {
128+ type : 'container' ,
129+ labels : {
130+ cluster_name : CLUSTER_NAME ,
131+ project_id : PROJECT_ID
132+ }
133+ } ) ;
134+ done ( ) ;
129135 } ) ;
130136 } ) ;
131137 } ) ;
You can’t perform that action at this time.
0 commit comments