summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-20 14:21:14 -0500
committerGitHub <noreply@github.com>2020-02-20 14:21:14 -0500
commit83a9b318e150e96ba381f2fdf0db9d979e0740f0 (patch)
treebea388c8c593a0ac9a6f2c49b8de53dd7813463b
parentfb56c585a2c9d86432220720543416fb168024d4 (diff)
parent9ecf8e13dc89fb664e564d7903e7490803ca35d6 (diff)
downloadpodman-83a9b318e150e96ba381f2fdf0db9d979e0740f0.tar.gz
podman-83a9b318e150e96ba381f2fdf0db9d979e0740f0.tar.bz2
podman-83a9b318e150e96ba381f2fdf0db9d979e0740f0.zip
Merge pull request #5282 from edsantiago/bats
Login test: use --password-stdin
-rw-r--r--test/system/150-login.bats8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/system/150-login.bats b/test/system/150-login.bats
index 9c9593311..e33217e14 100644
--- a/test/system/150-login.bats
+++ b/test/system/150-login.bats
@@ -108,8 +108,8 @@ function setup() {
@test "podman login - basic test" {
run_podman login --tls-verify=false \
--username ${PODMAN_LOGIN_USER} \
- --password ${PODMAN_LOGIN_PASS} \
- localhost:${PODMAN_LOGIN_REGISTRY_PORT}
+ --password-stdin \
+ localhost:${PODMAN_LOGIN_REGISTRY_PORT} <<<"${PODMAN_LOGIN_PASS}"
is "$output" "Login Succeeded!" "output from podman login"
# Now log out
@@ -123,8 +123,8 @@ function setup() {
run_podman 125 login --tls-verify=false \
--username ${PODMAN_LOGIN_USER} \
- --password "x${PODMAN_LOGIN_PASS}" \
- $registry
+ --password-stdin \
+ $registry <<< "x${PODMAN_LOGIN_PASS}"
is "$output" \
"Error: error logging into \"$registry\": invalid username/password" \
'output from podman login'