Migrate more tests to ginkgo

Migrate the following to the ginkgo integration tests:

* images
* import
* inspect
* logs
* run_dns

Signed-off-by: baude <bbaude@redhat.com>

Closes: #295
Approved by: mheon
This commit is contained in:
baude
2018-02-05 15:54:48 -06:00
committed by Atomic Bot
parent bf00c976dd
commit 1c4bcf3bc7
11 changed files with 387 additions and 278 deletions

View File

@ -413,3 +413,14 @@ func StringInSlice(s string, sl []string) bool {
}
return false
}
//LineInOutputStartsWith returns true if a line in a
// session output starts with the supplied string
func (s *PodmanSession) LineInOuputStartsWith(term string) bool {
for _, i := range s.OutputToStringArray() {
if strings.HasPrefix(i, term) {
return true
}
}
return false
}