diff --git a/integration/shared/isolated/auth_command_test.go b/integration/shared/isolated/auth_command_test.go index 265a18083af..66a41125983 100644 --- a/integration/shared/isolated/auth_command_test.go +++ b/integration/shared/isolated/auth_command_test.go @@ -53,7 +53,11 @@ var _ = Describe("auth command", func() { When("no positional arguments are provided", func() { Context("and no env variables are provided", func() { It("errors-out with the help information", func() { - session := helpers.CF("auth") + envWithoutLoginInfo := map[string]string{ + "CF_USERNAME": "", + "CF_PASSWORD": "", + } + session := helpers.CFWithEnv(envWithoutLoginInfo, "auth") Eventually(session.Err).Should(Say("Username and password not provided.")) Eventually(session).Should(Say("NAME:")) @@ -82,7 +86,11 @@ var _ = Describe("auth command", func() { When("only a username is provided", func() { It("errors-out with a password required error and the help information", func() { - session := helpers.CF("auth", "some-user") + envWithoutLoginInfo := map[string]string{ + "CF_USERNAME": "", + "CF_PASSWORD": "", + } + session := helpers.CFWithEnv(envWithoutLoginInfo, "auth", "some-user") Eventually(session.Err).Should(Say("Password not provided.")) Eventually(session).Should(Say("NAME:")) @@ -93,6 +101,7 @@ var _ = Describe("auth command", func() { When("only a password is provided", func() { It("errors-out with a username required error and the help information", func() { env := map[string]string{ + "CF_USERNAME": "", "CF_PASSWORD": "some-pass", } session := helpers.CFWithEnv(env, "auth") diff --git a/integration/shared/isolated/restage_command_test.go b/integration/shared/isolated/restage_command_test.go index c420480a23f..560a9bd2458 100644 --- a/integration/shared/isolated/restage_command_test.go +++ b/integration/shared/isolated/restage_command_test.go @@ -153,7 +153,7 @@ applications: Eventually(session).Should(Say(`name:\s+%s`, appName)) Eventually(session).Should(Say(`requested state:\s+started`)) Eventually(session).Should(Say(`routes:\s+%s\.%s`, appName, domainName)) - Eventually(session).Should(Say(`last uploaded:\s+\w{3} \d{1,2} \w{3} \d{2}:\d{2}:\d{2} \w{3} \d{4}`)) + Eventually(session).Should(Say(`last uploaded:\s+\w{3} \d{1,2} \w{3} \d{2}:\d{2}:\d{2} \w{3,4} \d{4}`)) Eventually(session).Should(Say(`stack:\s+cflinuxfs`)) Eventually(session).Should(Say(`buildpacks:\s+staticfile`)) Eventually(session).Should(Say(`type:\s+web`)) diff --git a/integration/shared/isolated/restart_command_test.go b/integration/shared/isolated/restart_command_test.go index ac339ef2323..f2236df3d62 100644 --- a/integration/shared/isolated/restart_command_test.go +++ b/integration/shared/isolated/restart_command_test.go @@ -132,7 +132,7 @@ applications: Eventually(session).Should(Say(`name:\s+%s`, appName)) Eventually(session).Should(Say(`requested state:\s+started`)) Eventually(session).Should(Say(`routes:\s+%s\.%s`, appName, domainName)) - Eventually(session).Should(Say(`last uploaded:\s+\w{3} \d{1,2} \w{3} \d{2}:\d{2}:\d{2} \w{3} \d{4}`)) + Eventually(session).Should(Say(`last uploaded:\s+\w{3} \d{1,2} \w{3} \d{2}:\d{2}:\d{2} \w{3,4} \d{4}`)) Eventually(session).Should(Say(`stack:\s+cflinuxfs`)) Eventually(session).Should(Say(`buildpacks:\s+staticfile`)) Eventually(session).Should(Say(`type:\s+web`)) diff --git a/integration/shared/isolated/start_command_test.go b/integration/shared/isolated/start_command_test.go index 1e4816ebf62..a4e0659e97b 100644 --- a/integration/shared/isolated/start_command_test.go +++ b/integration/shared/isolated/start_command_test.go @@ -128,7 +128,7 @@ applications: Eventually(session).Should(Say(`name:\s+%s`, appName)) Eventually(session).Should(Say(`requested state:\s+started`)) Eventually(session).Should(Say(`routes:\s+%s\.%s`, appName, domainName)) - Eventually(session).Should(Say(`last uploaded:\s+\w{3} \d{1,2} \w{3} \d{2}:\d{2}:\d{2} \w{3} \d{4}`)) + Eventually(session).Should(Say(`last uploaded:\s+\w{3} \d{1,2} \w{3} \d{2}:\d{2}:\d{2} \w{3,4} \d{4}`)) Eventually(session).Should(Say(`stack:\s+cflinuxfs`)) Eventually(session).Should(Say(`buildpacks:\s+staticfile`)) Eventually(session).Should(Say(`type:\s+web`)) @@ -222,7 +222,7 @@ applications: Eventually(session).Should(Say(`name:\s+%s`, appName)) Eventually(session).Should(Say(`requested state:\s+started`)) Eventually(session).Should(Say(`routes:\s+%s\.%s`, appName, domainName)) - Eventually(session).Should(Say(`last uploaded:\s+\w{3} \d{1,2} \w{3} \d{2}:\d{2}:\d{2} \w{3} \d{4}`)) + Eventually(session).Should(Say(`last uploaded:\s+\w{3} \d{1,2} \w{3} \d{2}:\d{2}:\d{2} \w{3,4} \d{4}`)) Eventually(session).Should(Say(`stack:\s+cflinuxfs`)) Eventually(session).Should(Say(`buildpacks:\s+staticfile`)) Eventually(session).Should(Say(`type:\s+web`)) diff --git a/integration/v6/isolated/app_command_test.go b/integration/v6/isolated/app_command_test.go index 04296df24aa..12142858641 100644 --- a/integration/v6/isolated/app_command_test.go +++ b/integration/v6/isolated/app_command_test.go @@ -201,7 +201,7 @@ applications: Eventually(session).Should(Say("name:\\s+%s", appName)) Eventually(session).Should(Say("requested state:\\s+started")) Eventually(session).Should(Say("routes:\\s+%s\\.%s", appName, domainName)) - Eventually(session).Should(Say("last uploaded:\\s+\\w{3} \\d{1,2} \\w{3} \\d{2}:\\d{2}:\\d{2} \\w{3} \\d{4}")) + Eventually(session).Should(Say("last uploaded:\\s+\\w{3} \\d{1,2} \\w{3} \\d{2}:\\d{2}:\\d{2} \\w{3,4} \\d{4}")) Eventually(session).Should(Say("stack:\\s+cflinuxfs")) Eventually(session).Should(Say("buildpacks:\\s+staticfile")) Eventually(session).Should(Say("type:\\s+web"))