diff options
author | Jhon Honce <jhonce@redhat.com> | 2021-01-19 09:16:01 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2021-02-02 12:44:08 -0700 |
commit | 7e4d696d949f4132c17a9c66c9f24e65b184be4c (patch) | |
tree | 4601ecb29e0184944a1928ee55ce9a1f541a71dc /test/utils | |
parent | d66a18cb11688060a3ef737dd05758398279f053 (diff) | |
download | podman-7e4d696d949f4132c17a9c66c9f24e65b184be4c.tar.gz podman-7e4d696d949f4132c17a9c66c9f24e65b184be4c.tar.bz2 podman-7e4d696d949f4132c17a9c66c9f24e65b184be4c.zip |
Report StatusConflict on Pod opt partial failures
- When one or more containers in the Pod reports an error on an operation
report StatusConflict and report the error(s)
- jsoniter type encoding used to marshal error as string using error.Error()
- Update test framework to allow setting any flag when creating pods
- Fix test_resize() result check
Fixes #8865
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'test/utils')
-rw-r--r-- | test/utils/utils.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/utils/utils.go b/test/utils/utils.go index f21584537..6790f31cd 100644 --- a/test/utils/utils.go +++ b/test/utils/utils.go @@ -467,11 +467,14 @@ func Containerized() bool { return false } +func init() { + rand.Seed(GinkgoRandomSeed()) +} + var randomLetters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") // RandomString returns a string of given length composed of random characters func RandomString(n int) string { - rand.Seed(GinkgoRandomSeed()) b := make([]rune, n) for i := range b { |