summaryrefslogtreecommitdiff
path: root/test/e2e/login_logout_test.go
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@redhat.com>2022-03-18 15:18:30 +0100
committerValentin Rothberg <vrothberg@redhat.com>2022-03-18 15:18:30 +0100
commit57cdc21b0057e958d78e8e616e26d7231193d991 (patch)
tree0d6f3c73740a5f885bdb380d4f327fedb73d7537 /test/e2e/login_logout_test.go
parent3853ef9b598b82115c1609957169614b26320a26 (diff)
downloadpodman-57cdc21b0057e958d78e8e616e26d7231193d991.tar.gz
podman-57cdc21b0057e958d78e8e616e26d7231193d991.tar.bz2
podman-57cdc21b0057e958d78e8e616e26d7231193d991.zip
vendor c/common@0ededd18a1f9
Update the login tests to reflect the latest changes to allow http{s} prefixes (again) to address bugzilla.redhat.com/show_bug.cgi?id=2062072. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'test/e2e/login_logout_test.go')
-rw-r--r--test/e2e/login_logout_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/e2e/login_logout_test.go b/test/e2e/login_logout_test.go
index 1280b3e83..77549a9a8 100644
--- a/test/e2e/login_logout_test.go
+++ b/test/e2e/login_logout_test.go
@@ -417,12 +417,12 @@ var _ = Describe("Podman login and logout", func() {
Expect(authInfo).NotTo(HaveKey(testRepos[1]))
})
- It("podman login with repository invalid arguments", func() {
+ It("podman login with http{s} prefix", func() {
authFile := filepath.Join(podmanTest.TempDir, "auth.json")
for _, invalidArg := range []string{
"https://" + server + "/podmantest",
- server + "/podmantest/image:latest",
+ "http://" + server + "/podmantest/image:latest",
} {
session := podmanTest.Podman([]string{
"login",
@@ -432,7 +432,7 @@ var _ = Describe("Podman login and logout", func() {
invalidArg,
})
session.WaitWithDefaultTimeout()
- Expect(session).Should(ExitWithError())
+ Expect(session).To(Exit(0))
}
})