mirror of
https://github.com/containers/podman.git
synced 2025-06-21 09:28:09 +08:00
login system test: enable "push ok"
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
@ -311,8 +311,9 @@ func Push(ctx context.Context, source string, destination string, options entiti
|
|||||||
params.Set("credentials", options.Credentials)
|
params.Set("credentials", options.Credentials)
|
||||||
params.Set("destination", destination)
|
params.Set("destination", destination)
|
||||||
if options.SkipTLSVerify != types.OptionalBoolUndefined {
|
if options.SkipTLSVerify != types.OptionalBoolUndefined {
|
||||||
val := bool(options.SkipTLSVerify == types.OptionalBoolTrue)
|
// Note: we have to verify if skipped is false.
|
||||||
params.Set("tlsVerify", strconv.FormatBool(!val))
|
verifyTLS := bool(options.SkipTLSVerify == types.OptionalBoolFalse)
|
||||||
|
params.Set("tlsVerify", strconv.FormatBool(verifyTLS))
|
||||||
}
|
}
|
||||||
|
|
||||||
path := fmt.Sprintf("/images/%s/push", source)
|
path := fmt.Sprintf("/images/%s/push", source)
|
||||||
|
@ -166,8 +166,6 @@ function setup() {
|
|||||||
# Some push tests
|
# Some push tests
|
||||||
@test "podman push fail" {
|
@test "podman push fail" {
|
||||||
|
|
||||||
skip "Not working for v2 yet"
|
|
||||||
|
|
||||||
# Create an invalid authfile
|
# Create an invalid authfile
|
||||||
authfile=${PODMAN_LOGIN_WORKDIR}/auth-$(random_string 10).json
|
authfile=${PODMAN_LOGIN_WORKDIR}/auth-$(random_string 10).json
|
||||||
rm -f $authfile
|
rm -f $authfile
|
||||||
|
Reference in New Issue
Block a user