From 66aa18922f68671da49b9f470071b3c817f3b74c Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Wed, 28 Sep 2016 15:59:58 -0400 Subject: [PATCH] fixed yaml unit tests --- yaml/transform/image_test.go | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/yaml/transform/image_test.go b/yaml/transform/image_test.go index d5abbd6dc..26ad37dc3 100644 --- a/yaml/transform/image_test.go +++ b/yaml/transform/image_test.go @@ -128,35 +128,5 @@ func Test_normalize(t *testing.T) { g.Assert(c.Pipeline[0].Image).Equal("golang:1.5") }) }) - - g.Describe("plugins", func() { - - g.It("should prepend namespace", func() { - c := newConfig(&yaml.Container{ - Image: "slack", - }) - - ImageNamespace(c, "plugins") - g.Assert(c.Pipeline[0].Image).Equal("plugins/slack") - }) - - g.It("should not override existing namespace", func() { - c := newConfig(&yaml.Container{ - Image: "index.docker.io/drone/git", - }) - - ImageNamespace(c, "plugins") - g.Assert(c.Pipeline[0].Image).Equal("index.docker.io/drone/git") - }) - - g.It("should replace underscores with dashes", func() { - c := newConfig(&yaml.Container{ - Image: "gh_pages", - }) - - ImageName(c) - g.Assert(c.Pipeline[0].Image).Equal("gh-pages") - }) - }) }) }