diff --git a/integration/docker/docker.go b/integration/docker/docker.go index 59d33905..8c3c0a6a 100644 --- a/integration/docker/docker.go +++ b/integration/docker/docker.go @@ -32,6 +32,9 @@ const ( // FedoraImage is the fedora image FedoraImage = "fedora" + + // CentosImage is the centos image + CentosImage = "centos" ) func runDockerCommandWithTimeout(timeout time.Duration, command string, args ...string) (string, string, int) { diff --git a/integration/docker/main_test.go b/integration/docker/main_test.go index e216ac23..c7243df8 100644 --- a/integration/docker/main_test.go +++ b/integration/docker/main_test.go @@ -29,6 +29,7 @@ func TestIntegration(t *testing.T) { PostgresImage, DebianImage, FedoraImage, + CentosImage, } for _, i := range images { diff --git a/integration/docker/package_manager_test.go b/integration/docker/package_manager_test.go index 87b46272..b2e26c50 100644 --- a/integration/docker/package_manager_test.go +++ b/integration/docker/package_manager_test.go @@ -60,4 +60,12 @@ var _ = Describe("package manager update test", func() { Expect(RemoveDockerContainer(id)).To(BeTrue()) }) }) + + Context("check yum update", func() { + It("should not fail", func() { + args = append(args, "--rm", "--name", id, CentosImage, "yum", "-y", "update") + _, _, exitCode := dockerRun(args...) + Expect(exitCode).To(BeZero()) + }) + }) })