Skip to content

Commit

Permalink
New goformation version removing unnecessary tag reading. Fixes aws#30 (
Browse files Browse the repository at this point in the history
aws#32)

* Updating goformation version in vendor.

* Fixing tests after goformation version change.
  • Loading branch information
pesama authored and sanathkr committed Aug 15, 2017
1 parent 9b99797 commit d242386
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 25 deletions.
5 changes: 2 additions & 3 deletions validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ var _ = Describe("sam", func() {
Context("with a !Ref lookup variable", func() {
It("should have an environment variable named REF_ENV_VAR", func() {
Expect(f3.EnvironmentVariables()).To(HaveLen(1))
Expect(f3.EnvironmentVariables()).To(HaveKeyWithValue("REF_ENV_VAR", ""))
Expect(f3.EnvironmentVariables()).To(HaveKeyWithValue("REF_ENV_VAR", "ExampleParameter"))
})
})

Expand All @@ -145,7 +145,7 @@ var _ = Describe("sam", func() {
Context("with a !Sub variable value that contains a non-existant reference", func() {
It("should have an environment variable named SUB_REF_ENV_VAR", func() {
Expect(f5.EnvironmentVariables()).To(HaveLen(1))
Expect(f5.EnvironmentVariables()).To(HaveKeyWithValue("SUB_REF_ENV_VAR", "Hello-"))
Expect(f5.EnvironmentVariables()).To(HaveKeyWithValue("SUB_REF_ENV_VAR", "Hello-${ThisReferenceDoesntExist}"))
})
})

Expand Down Expand Up @@ -197,7 +197,6 @@ var _ = Describe("sam", func() {

})


Context("with non-resource sections in CloudFormation template", func() {

inputs := []string{
Expand Down
18 changes: 0 additions & 18 deletions vendor/github.com/awslabs/goformation/unmarshal.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@
"revisionTime": "2017-07-27T22:25:20Z"
},
{
"checksumSHA1": "aUFIq9ox4/EzdRM7HTFXHTYU/5I=",
"checksumSHA1": "gOVYnq9xL1IsjuWkKPz73EJzFk4=",
"path": "github.com/awslabs/goformation",
"revision": "1dae6647ec1c8a79e8529d257c11953607bba524",
"revisionTime": "2017-08-13T16:29:21Z"
"revision": "58609f21dfe3998bd435d35652b629f749607d30",
"revisionTime": "2017-08-13T17:56:29Z"
},
{
"checksumSHA1": "H5Ps9SpE0mLJ8JaLQPKcj4wRScY=",
Expand Down Expand Up @@ -883,5 +883,5 @@
"revisionTime": "2017-02-08T14:18:51Z"
}
],
"rootPath": "github.com/paulmaddox/aws-sam-local"
"rootPath": "github.com/awslabs/aws-sam-local"
}

0 comments on commit d242386

Please sign in to comment.