summaryrefslogtreecommitdiff
path: root/test/e2e/common_test.go
diff options
context:
space:
mode:
authorPeter Hunt <pehunt@redhat.com>2019-11-15 15:49:42 -0500
committerPeter Hunt <pehunt@redhat.com>2019-11-18 10:11:35 -0500
commit8d585ccfa89e4f4e1eabf652528d3f7306af3268 (patch)
treeb2cf161144a7d38dd07c7806ac8c0d48bfe3cf28 /test/e2e/common_test.go
parentdb32ed1ae8374aac9c4058607ad9cf294505c952 (diff)
downloadpodman-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.go9
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
+}