mirror of
https://github.com/containers/podman.git
synced 2025-11-02 06:37:09 +08:00
Final ginkgo migration
Completion of the migration from bats to ginkgo. This includes: * load * mount * pause * port * run_networking * search Note: build will be done within a different PR Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -39,11 +39,12 @@ var (
|
||||
INTEGRATION_ROOT string
|
||||
STORAGE_OPTIONS = "--storage-driver vfs"
|
||||
ARTIFACT_DIR = "/tmp/.artifacts"
|
||||
CACHE_IMAGES = []string{"alpine", "busybox", fedoraMinimal}
|
||||
CACHE_IMAGES = []string{"alpine", "busybox", fedoraMinimal, nginx}
|
||||
RESTORE_IMAGES = []string{"alpine", "busybox"}
|
||||
ALPINE = "docker.io/library/alpine:latest"
|
||||
BB_GLIBC = "docker.io/library/busybox:glibc"
|
||||
fedoraMinimal = "registry.fedoraproject.org/fedora-minimal:latest"
|
||||
nginx = "docker.io/library/nginx:latest"
|
||||
defaultWaitTimeout = 90
|
||||
)
|
||||
|
||||
@ -427,3 +428,14 @@ func (s *PodmanSession) LineInOuputStartsWith(term string) bool {
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
//LineInOutputContains returns true if a line in a
|
||||
// session output starts with the supplied string
|
||||
func (s *PodmanSession) LineInOuputContains(term string) bool {
|
||||
for _, i := range s.OutputToStringArray() {
|
||||
if strings.Contains(i, term) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user