mirror of
https://github.com/containers/podman.git
synced 2025-11-01 19:21:04 +08:00
Add --accept-repositories integration tests
This adds the integration tests for the repository or namespaced registry feature introduced in c/common. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
This commit is contained in:
8
vendor/github.com/containers/common/pkg/config/pull_policy.go
generated
vendored
8
vendor/github.com/containers/common/pkg/config/pull_policy.go
generated
vendored
@ -76,13 +76,13 @@ func (p PullPolicy) Validate() error {
|
||||
// * "never" <-> PullPolicyNever
|
||||
func ParsePullPolicy(s string) (PullPolicy, error) {
|
||||
switch s {
|
||||
case "always":
|
||||
case "always", "Always":
|
||||
return PullPolicyAlways, nil
|
||||
case "missing", "ifnotpresent", "":
|
||||
case "missing", "Missing", "ifnotpresent", "IfNotPresent", "":
|
||||
return PullPolicyMissing, nil
|
||||
case "newer", "ifnewer":
|
||||
case "newer", "Newer", "ifnewer", "IfNewer":
|
||||
return PullPolicyNewer, nil
|
||||
case "never":
|
||||
case "never", "Never":
|
||||
return PullPolicyNever, nil
|
||||
default:
|
||||
return PullPolicyUnsupported, errors.Errorf("unsupported pull policy %q", s)
|
||||
|
||||
Reference in New Issue
Block a user