diff options
author | Peter Hunt <pehunt@redhat.com> | 2019-11-15 15:49:42 -0500 |
---|---|---|
committer | Peter Hunt <pehunt@redhat.com> | 2019-11-18 10:11:35 -0500 |
commit | 8d585ccfa89e4f4e1eabf652528d3f7306af3268 (patch) | |
tree | b2cf161144a7d38dd07c7806ac8c0d48bfe3cf28 /test/e2e/common_test.go | |
parent | db32ed1ae8374aac9c4058607ad9cf294505c952 (diff) | |
download | podman-8d585ccfa89e4f4e1eabf652528d3f7306af3268.tar.gz podman-8d585ccfa89e4f4e1eabf652528d3f7306af3268.tar.bz2 podman-8d585ccfa89e4f4e1eabf652528d3f7306af3268.zip |
play kube: handle seccomp labels
Add handling of seccomp annotations to play kube at both container and pod levels.
also add a test
Signed-off-by: Peter Hunt <pehunt@redhat.com>
Diffstat (limited to 'test/e2e/common_test.go')
-rw-r--r-- | test/e2e/common_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go index b390df8b2..16b971e65 100644 --- a/test/e2e/common_test.go +++ b/test/e2e/common_test.go @@ -559,3 +559,12 @@ func (p *PodmanTestIntegration) RunHealthCheck(cid string) error { } return errors.Errorf("unable to detect %s as running", cid) } + +func (p *PodmanTestIntegration) CreateSeccompJson(in []byte) (string, error) { + jsonFile := filepath.Join(p.TempDir, "seccomp.json") + err := WriteJsonFile(in, jsonFile) + if err != nil { + return "", err + } + return jsonFile, nil +} |