summaryrefslogtreecommitdiff
path: root/test/e2e/common_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-01-20 13:35:18 +0100
committerGitHub <noreply@github.com>2019-01-20 13:35:18 +0100
commitef2f6f9f3ee3a54ffc3b9cd0740230b60dcc8d6a (patch)
treed2b6848b9fcdbc34911bdfcc085ade05db2742fa /test/e2e/common_test.go
parent74b85098cf7f6e2809f9075475f4fae44c0f011c (diff)
parent6f6cf86d8f1b916940ffc6eb79a763140bb86eca (diff)
downloadpodman-ef2f6f9f3ee3a54ffc3b9cd0740230b60dcc8d6a.tar.gz
podman-ef2f6f9f3ee3a54ffc3b9cd0740230b60dcc8d6a.tar.bz2
podman-ef2f6f9f3ee3a54ffc3b9cd0740230b60dcc8d6a.zip
Merge pull request #2184 from baude/remotemaskcommands
Mask unimplemeted commands for remote client
Diffstat (limited to 'test/e2e/common_test.go')
-rw-r--r--test/e2e/common_test.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go
index a75601b65..308a6bf29 100644
--- a/test/e2e/common_test.go
+++ b/test/e2e/common_test.go
@@ -174,28 +174,6 @@ func PodmanTestCreateUtil(tempDir string, remote bool) *PodmanTestIntegration {
return p
}
-//MakeOptions assembles all the podman main options
-func (p *PodmanTestIntegration) makeOptions(args []string) []string {
- podmanOptions := strings.Split(fmt.Sprintf("--root %s --runroot %s --runtime %s --conmon %s --cni-config-dir %s --cgroup-manager %s",
- p.CrioRoot, p.RunRoot, p.RunCBinary, p.ConmonBinary, p.CNIConfigDir, p.CgroupManager), " ")
- if os.Getenv("HOOK_OPTION") != "" {
- podmanOptions = append(podmanOptions, os.Getenv("HOOK_OPTION"))
- }
- podmanOptions = append(podmanOptions, strings.Split(p.StorageOptions, " ")...)
- podmanOptions = append(podmanOptions, args...)
- return podmanOptions
-}
-
-// RestoreArtifact puts the cached image into our test store
-func (p *PodmanTestIntegration) RestoreArtifact(image string) error {
- fmt.Printf("Restoring %s...\n", image)
- dest := strings.Split(image, "/")
- destName := fmt.Sprintf("/tmp/%s.tar", strings.Replace(strings.Join(strings.Split(dest[len(dest)-1], "/"), ""), ":", "-", -1))
- restore := p.Podman([]string{"load", "-q", "-i", destName})
- restore.Wait(90)
- return nil
-}
-
// RestoreAllArtifacts unpacks all cached images
func (p *PodmanTestIntegration) RestoreAllArtifacts() error {
if os.Getenv("NO_TEST_CACHE") != "" {