@@ -55,7 +55,7 @@ func runCloudTests(t *testing.T, setupCmd setupCommandFunc) {
5555
5656 stdout := ts .Stdout .String ()
5757 t .Log (stdout )
58- assert .Contains (t , stdout , `stack must be configured ` )
58+ assert .Contains (t , stdout , `must first authenticate ` )
5959 })
6060
6161 t .Run ("TestCloudLoggedInWithScriptToken" , func (t * testing.T ) {
@@ -229,10 +229,10 @@ func runCloudTests(t *testing.T, setupCmd setupCommandFunc) {
229229 require .NoError (t , fsext .WriteFile (ts .FS , filepath .Join (ts .Cwd , "archive.tar" ), data , 0o644 ))
230230
231231 ts .CmdArgs = []string {"k6" , "cloud" , "--verbose" , "--log-output=stdout" , "archive.tar" }
232- ts .Env ["K6_SHOW_CLOUD_LOGS" ] = "false" // no mock for the logs yet
232+ ts .Env ["K6_SHOW_CLOUD_LOGS" ] = "false" // no mock for the logs yet
233233 ts .Env ["K6_CLOUD_HOST" ] = srv .URL
234- ts .Env ["K6_CLOUD_TOKEN" ] = "foo" // doesn't matter, we mock the cloud
235- ts .Env ["K6_CLOUD_STACK_ID" ] = "1234" // doesn't matter, we mock the cloud
234+ ts .Env ["K6_CLOUD_TOKEN" ] = "foo" // doesn't matter, we mock the cloud
235+ ts .Env ["K6_CLOUD_STACK_ID" ] = "1234" // doesn't matter, we mock the cloud
236236
237237 cmd .ExecuteWithGlobalState (ts .GlobalState )
238238
@@ -344,11 +344,11 @@ func getSimpleCloudTestState(t *testing.T, script []byte, setupCmd setupCommandF
344344 ts := NewGlobalTestState (t )
345345 require .NoError (t , fsext .WriteFile (ts .FS , filepath .Join (ts .Cwd , "test.js" ), script , 0o644 ))
346346 ts .CmdArgs = setupCmd (cliFlags )
347- ts .Env ["K6_SHOW_CLOUD_LOGS" ] = "false" // no mock for the logs yet
347+ ts .Env ["K6_SHOW_CLOUD_LOGS" ] = "false" // no mock for the logs yet
348348 ts .Env ["K6_CLOUD_HOST" ] = srv .URL
349- ts .Env ["K6_CLOUD_TOKEN" ] = "foo" // doesn't matter, we mock the cloud
350- ts .Env ["K6_CLOUD_STACK_ID" ] = "1234" // doesn't matter, we mock the cloud
351- ts .Env ["K6_CLOUD_PROJECT_ID" ] = "1234" // doesn't matter, we mock the cloud
349+ ts .Env ["K6_CLOUD_TOKEN" ] = "foo" // doesn't matter, we mock the cloud
350+ ts .Env ["K6_CLOUD_STACK_ID" ] = "1234" // doesn't matter, we mock the cloud
351+ ts .Env ["K6_CLOUD_PROJECT_ID" ] = "1234" // doesn't matter, we mock the cloud
352352
353353 return ts
354354}
0 commit comments