Show duration for each ginkgo test and test speed improvements

Because our tests are getting so long, we want to be able to audit which tests are taking
the longest to complete.  This may indicate a bad test, bad CI, bad code, etc and therefore
should be auditable.

Also, make speed improvements to tests by making sure we only unpack caches images that
actually get used.

Signed-off-by: baude <bbaude@redhat.com>

Closes: #1178
Approved by: mheon
This commit is contained in:
baude
2018-07-28 11:11:31 -05:00
committed by Atomic Bot
parent a4a667eac9
commit 433cbd5254
58 changed files with 233 additions and 50 deletions

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,6 +26,9 @@ var _ = Describe("Podman attach", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,6 +26,9 @@ var _ = Describe("Podman commit", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,6 +26,9 @@ var _ = Describe("Podman create", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
"sort"
@ -26,6 +27,9 @@ var _ = Describe("Podman diff", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,6 +26,9 @@ var _ = Describe("Podman exec", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})

View File

@ -1,8 +1,8 @@
package integration
import (
"fmt"
"os"
"path/filepath"
. "github.com/onsi/ginkgo"
@ -27,6 +27,9 @@ var _ = Describe("Podman export", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,6 +26,9 @@ var _ = Describe("Podman history", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})

View File

@ -28,6 +28,9 @@ var _ = Describe("Podman images", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman images", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
"path/filepath"
@ -26,6 +27,9 @@ var _ = Describe("Podman import", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman import with source and reference", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -24,6 +25,9 @@ var _ = Describe("Podman Info", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman info json output", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
"strings"
@ -26,7 +27,9 @@ var _ = Describe("Podman inspect", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman inspect alpine image", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,6 +26,9 @@ var _ = Describe("Podman kill", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
"path/filepath"
@ -26,6 +27,9 @@ var _ = Describe("Podman load", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman load input flag", func() {
@ -164,11 +168,9 @@ var _ = Describe("Podman load", func() {
It("podman load localhost repo from scratch", func() {
outfile := filepath.Join(podmanTest.TempDir, "load_test.tar.gz")
setup := podmanTest.Podman([]string{"pull", fedoraMinimal})
setup.WaitWithDefaultTimeout()
Expect(setup.ExitCode()).To(Equal(0))
podmanTest.RestoreArtifact(fedoraMinimal)
setup = podmanTest.Podman([]string{"tag", "fedora-minimal", "hello:world"})
setup := podmanTest.Podman([]string{"tag", "fedora-minimal", "hello:world"})
setup.WaitWithDefaultTimeout()
Expect(setup.ExitCode()).To(Equal(0))
@ -192,11 +194,9 @@ var _ = Describe("Podman load", func() {
It("podman load localhost repo from dir", func() {
outfile := filepath.Join(podmanTest.TempDir, "load")
setup := podmanTest.Podman([]string{"pull", fedoraMinimal})
setup.WaitWithDefaultTimeout()
Expect(setup.ExitCode()).To(Equal(0))
podmanTest.RestoreArtifact(fedoraMinimal)
setup = podmanTest.Podman([]string{"tag", "fedora-minimal", "hello:world"})
setup := podmanTest.Podman([]string{"tag", "fedora-minimal", "hello:world"})
setup.WaitWithDefaultTimeout()
Expect(setup.ExitCode()).To(Equal(0))

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman logs", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
//sudo bin/podman run -it --rm fedora-minimal bash -c 'for a in `seq 5`; do echo hello; done'

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,6 +26,9 @@ var _ = Describe("Podman mount", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman mount", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman namespaces", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman namespace test", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -28,7 +29,9 @@ var _ = Describe("Podman pause", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman pause bogus container", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,6 +26,9 @@ var _ = Describe("Podman pod create", func() {
AfterEach(func() {
podmanTest.CleanupPod()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman create pod", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman pod kill", func() {
AfterEach(func() {
podmanTest.CleanupPod()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman pod kill bogus", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -27,7 +28,9 @@ var _ = Describe("Podman pod pause", func() {
AfterEach(func() {
podmanTest.CleanupPod()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman pod pause bogus pod", func() {

View File

@ -27,7 +27,9 @@ var _ = Describe("Podman ps", func() {
AfterEach(func() {
podmanTest.CleanupPod()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman pod ps no pods", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,6 +26,9 @@ var _ = Describe("Podman pod restart", func() {
AfterEach(func() {
podmanTest.CleanupPod()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman pod restart bogus pod", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman pod rm", func() {
AfterEach(func() {
podmanTest.CleanupPod()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman pod rm empty pod", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,6 +26,9 @@ var _ = Describe("Podman pod start", func() {
AfterEach(func() {
podmanTest.CleanupPod()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman pod start bogus pod", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,6 +26,9 @@ var _ = Describe("Podman pod stop", func() {
AfterEach(func() {
podmanTest.CleanupPod()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman pod stop bogus pod", func() {

View File

@ -1,12 +1,12 @@
package integration
import (
"os"
"fmt"
"os"
"strings"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"strings"
)
var _ = Describe("Podman port", func() {
@ -27,7 +27,9 @@ var _ = Describe("Podman port", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman port all and latest", func() {

View File

@ -29,7 +29,9 @@ var _ = Describe("Podman ps", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman ps no containers", func() {
@ -232,7 +234,7 @@ var _ = Describe("Podman ps", func() {
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
podmanTest.RestoreArtifact(nginx)
podmanTest.RestoreArtifact(fedoraMinimal)
session = podmanTest.Podman([]string{"run", "-d", fedoraMinimal, "pwd"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))

View File

@ -3,6 +3,7 @@ package integration
import (
"os"
"fmt"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"strings"
@ -26,7 +27,9 @@ var _ = Describe("Podman pull", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman pull from docker with tag", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
"path/filepath"
"strings"
@ -27,7 +28,9 @@ var _ = Describe("Podman push", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman push to containers/storage", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
"time"
@ -22,11 +23,13 @@ var _ = Describe("Podman refresh", func() {
}
podmanTest = PodmanCreate(tmpdir)
podmanTest.RestoreAllArtifacts()
podmanTest.RestoreArtifact(fedoraMinimal)
})
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
Specify("Refresh with no containers succeeds", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
"time"
@ -26,6 +27,9 @@ var _ = Describe("Podman restart", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("Podman restart bogus container", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman rm", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman rm stopped container", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -27,6 +28,9 @@ var _ = Describe("Podman rmi", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})

View File

@ -29,6 +29,9 @@ var _ = Describe("Podman rootless", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman rootless rootfs", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -20,13 +21,14 @@ var _ = Describe("Podman run with --cgroup-parent", func() {
os.Exit(1)
}
podmanTest = PodmanCreate(tempdir)
podmanTest.RestoreAllArtifacts()
podmanTest.RestoreArtifact(fedoraMinimal)
})
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
Specify("valid --cgroup-parent using cgroupfs", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman run exit", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman run -d mount cleanup test", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman run cpu", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman run cpu-period", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman kill", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman run bad device test", func() {

View File

@ -3,6 +3,7 @@ package integration
import (
"os"
"fmt"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
@ -25,7 +26,9 @@ var _ = Describe("Podman run dns", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman run add search domain", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman run entrypoint", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman run no command, entrypoint, or cmd", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman run exit", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman run exit 125", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman run memory", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman run memory test", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman rmi", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman run network connection with default bridge", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -20,13 +21,14 @@ var _ = Describe("Podman run ns", func() {
os.Exit(1)
}
podmanTest = PodmanCreate(tempdir)
podmanTest.RestoreAllArtifacts()
podmanTest.RestoreArtifact(fedoraMinimal)
})
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman run pidns test", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
"strings"
@ -26,7 +27,9 @@ var _ = Describe("Podman privileged container tests", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman privileged make sure sys is mounted rw", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,6 +26,9 @@ var _ = Describe("Podman run restart containers", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("Podman start after successful run", func() {

View File

@ -45,13 +45,14 @@ var _ = Describe("Podman run with --sig-proxy", func() {
os.Exit(1)
}
podmanTest = PodmanCreate(tmpdir)
podmanTest.RestoreAllArtifacts()
podmanTest.RestoreArtifact(fedoraMinimal)
})
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
Specify("signals are forwarded to container using sig-proxy", func() {

View File

@ -31,6 +31,9 @@ var _ = Describe("Podman run", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman run a container based on local image", func() {

View File

@ -3,6 +3,7 @@ package integration
import (
"os"
"fmt"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
@ -25,7 +26,9 @@ var _ = Describe("Podman UserNS support", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman uidmapping and gidmapping", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
"path/filepath"
@ -26,6 +27,9 @@ var _ = Describe("Podman save", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman save output flag", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
@ -47,7 +48,9 @@ var _ = Describe("Podman search", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman search", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,6 +26,9 @@ var _ = Describe("Podman start", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman start bogus container", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,6 +26,9 @@ var _ = Describe("Podman stats", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman stats should run with no containers", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,6 +26,9 @@ var _ = Describe("Podman stop", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman stop bogus container", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman tag", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman tag shortname:latest", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman top", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman top without container name or id", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -20,13 +21,13 @@ var _ = Describe("Podman version", func() {
os.Exit(1)
}
podmanTest = PodmanCreate(tempdir)
podmanTest.RestoreAllArtifacts()
podmanTest.RestoreArtifact(fedoraMinimal)
})
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman version", func() {

View File

@ -1,6 +1,7 @@
package integration
import (
"fmt"
"os"
. "github.com/onsi/ginkgo"
@ -25,7 +26,9 @@ var _ = Describe("Podman wait", func() {
AfterEach(func() {
podmanTest.Cleanup()
f := CurrentGinkgoTestDescription()
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
GinkgoWriter.Write([]byte(timedResult))
})
It("podman wait on bogus container", func() {