mirror of https://github.com/docker/docs.git
Merge pull request #16649 from mtrmac/16648-test-text-fixups
Fix text not matching the actual tests
This commit is contained in:
commit
4e0eb91c55
|
@ -22,7 +22,7 @@ func (s *DockerTrustSuite) TestTrustedPull(c *check.C) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.Contains(string(out), "Tagging") {
|
if !strings.Contains(string(out), "Tagging") {
|
||||||
c.Fatalf("Missing expected output on trusted push:\n%s", out)
|
c.Fatalf("Missing expected output on trusted pull:\n%s", out)
|
||||||
}
|
}
|
||||||
|
|
||||||
dockerCmd(c, "rmi", repoName)
|
dockerCmd(c, "rmi", repoName)
|
||||||
|
@ -41,7 +41,7 @@ func (s *DockerTrustSuite) TestTrustedPull(c *check.C) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *DockerTrustSuite) TestTrustedIsolatedPull(c *check.C) {
|
func (s *DockerTrustSuite) TestTrustedIsolatedPull(c *check.C) {
|
||||||
repoName := s.setupTrustedImage(c, "trusted-isolatd-pull")
|
repoName := s.setupTrustedImage(c, "trusted-isolated-pull")
|
||||||
|
|
||||||
// Try pull (run from isolated directory without trust information)
|
// Try pull (run from isolated directory without trust information)
|
||||||
pullCmd := exec.Command(dockerBinary, "--config", "/tmp/docker-isolated", "pull", repoName)
|
pullCmd := exec.Command(dockerBinary, "--config", "/tmp/docker-isolated", "pull", repoName)
|
||||||
|
@ -52,7 +52,7 @@ func (s *DockerTrustSuite) TestTrustedIsolatedPull(c *check.C) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.Contains(string(out), "Tagging") {
|
if !strings.Contains(string(out), "Tagging") {
|
||||||
c.Fatalf("Missing expected output on trusted push:\n%s", out)
|
c.Fatalf("Missing expected output on trusted pull:\n%s", out)
|
||||||
}
|
}
|
||||||
|
|
||||||
dockerCmd(c, "rmi", repoName)
|
dockerCmd(c, "rmi", repoName)
|
||||||
|
@ -145,7 +145,7 @@ func (s *DockerTrustSuite) TestTrustedPullFromBadTrustServer(c *check.C) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.Contains(string(out), "Tagging") {
|
if !strings.Contains(string(out), "Tagging") {
|
||||||
c.Fatalf("Missing expected output on trusted push:\n%s", out)
|
c.Fatalf("Missing expected output on trusted pull:\n%s", out)
|
||||||
}
|
}
|
||||||
|
|
||||||
dockerCmd(c, "rmi", repoName)
|
dockerCmd(c, "rmi", repoName)
|
||||||
|
@ -181,7 +181,7 @@ func (s *DockerTrustSuite) TestTrustedPullFromBadTrustServer(c *check.C) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.Contains(string(out), "failed to validate data with current trusted certificates") {
|
if !strings.Contains(string(out), "failed to validate data with current trusted certificates") {
|
||||||
c.Fatalf("Missing expected output on trusted push:\n%s", out)
|
c.Fatalf("Missing expected output on trusted pull:\n%s", out)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -208,7 +208,6 @@ func (s *DockerTrustSuite) TestTrustedPullWithExpiredSnapshot(c *check.C) {
|
||||||
// Snapshots last for three years. This should be expired
|
// Snapshots last for three years. This should be expired
|
||||||
fourYearsLater := time.Now().Add(time.Hour * 24 * 365 * 4)
|
fourYearsLater := time.Now().Add(time.Hour * 24 * 365 * 4)
|
||||||
|
|
||||||
// Should succeed because the server transparently re-signs one
|
|
||||||
runAtDifferentDate(fourYearsLater, func() {
|
runAtDifferentDate(fourYearsLater, func() {
|
||||||
// Try pull
|
// Try pull
|
||||||
pullCmd := exec.Command(dockerBinary, "pull", repoName)
|
pullCmd := exec.Command(dockerBinary, "pull", repoName)
|
||||||
|
@ -247,7 +246,7 @@ func (s *DockerTrustSuite) TestTrustedOfflinePull(c *check.C) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.Contains(string(out), "Tagging") {
|
if !strings.Contains(string(out), "Tagging") {
|
||||||
c.Fatalf("Missing expected output on trusted push:\n%s", out)
|
c.Fatalf("Missing expected output on trusted pull:\n%s", out)
|
||||||
}
|
}
|
||||||
|
|
||||||
dockerCmd(c, "rmi", repoName)
|
dockerCmd(c, "rmi", repoName)
|
||||||
|
@ -261,6 +260,6 @@ func (s *DockerTrustSuite) TestTrustedOfflinePull(c *check.C) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.Contains(string(out), "Tagging") {
|
if !strings.Contains(string(out), "Tagging") {
|
||||||
c.Fatalf("Missing expected output on trusted push:\n%s", out)
|
c.Fatalf("Missing expected output on trusted pull:\n%s", out)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue