summaryrefslogtreecommitdiff
path: root/test/e2e/common_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-08-18 15:06:19 -0400
committerGitHub <noreply@github.com>2021-08-18 15:06:19 -0400
commitfa206e11caf5af38ad47cbfebbe18046c562fb6d (patch)
treeef07c56ade783e9d9deab2ce8da79d3a92698ede /test/e2e/common_test.go
parent4ec227079011faef53e22b868d475a831b1f9e89 (diff)
parentcd40c875ac51b32f7b4e5479d02faee14e0ab12d (diff)
downloadpodman-fa206e11caf5af38ad47cbfebbe18046c562fb6d.tar.gz
podman-fa206e11caf5af38ad47cbfebbe18046c562fb6d.tar.bz2
podman-fa206e11caf5af38ad47cbfebbe18046c562fb6d.zip
Merge pull request #11180 from baude/buildplaykube
Add ability to build images in play kube
Diffstat (limited to 'test/e2e/common_test.go')
-rw-r--r--test/e2e/common_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go
index d03a2741b..6b97c4162 100644
--- a/test/e2e/common_test.go
+++ b/test/e2e/common_test.go
@@ -845,3 +845,18 @@ func (p *PodmanTestIntegration) buildImage(dockerfile, imageName string, layers
output := session.OutputToStringArray()
return output[len(output)-1]
}
+
+func writeYaml(content string, fileName string) error {
+ f, err := os.Create(fileName)
+ if err != nil {
+ return err
+ }
+ defer f.Close()
+
+ _, err = f.WriteString(content)
+ if err != nil {
+ return err
+ }
+
+ return nil
+}