diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-11-22 21:09:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-22 21:09:05 +0100 |
commit | 35605c02fd9a83f09c61323942243e1a9cf1d4f1 (patch) | |
tree | 170aa38dcf46f6a14a9d2ae1ea0a9d8e6b9c47e2 /test/e2e/common_test.go | |
parent | e4b805441b84017bdd313d412a4138e4fb41f3d3 (diff) | |
parent | 8d585ccfa89e4f4e1eabf652528d3f7306af3268 (diff) | |
download | podman-35605c02fd9a83f09c61323942243e1a9cf1d4f1.tar.gz podman-35605c02fd9a83f09c61323942243e1a9cf1d4f1.tar.bz2 podman-35605c02fd9a83f09c61323942243e1a9cf1d4f1.zip |
Merge pull request #4528 from haircommander/kube-seccomp
Handle seccomp annotations in play kube
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 +} |