Skip to content

Commit

Permalink
Add acctest
Browse files Browse the repository at this point in the history
  • Loading branch information
atsushi-ishibashi committed Feb 23, 2018
1 parent fef5eff commit 7999b0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions aws/resource_aws_codebuild_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,9 @@ func environmentVariablesToMap(environmentVariables []*codebuild.EnvironmentVari
item := map[string]interface{}{}
item["name"] = *env.Name
item["value"] = *env.Value
if env.Type != nil {
item["type"] = *env.Type
}
envVariables = append(envVariables, item)
}
}
Expand Down
10 changes: 6 additions & 4 deletions aws/resource_aws_codebuild_project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,9 @@ resource "aws_codebuild_project" "foo" {
type = "LINUX_CONTAINER"
environment_variable = {
"name" = "SOME_KEY"
"value" = "SOME_VALUE"
name = "SOME_KEY"
value = "SOME_VALUE"
type = "PLAINTEXT"
}
}
Expand Down Expand Up @@ -471,8 +472,9 @@ resource "aws_codebuild_project" "foo" {
type = "LINUX_CONTAINER"
environment_variable = {
"name" = "SOME_OTHERKEY"
"value" = "SOME_OTHERVALUE"
name = "SOME_OTHERKEY"
value = "SOME_OTHERVALUE"
type = "PARAMETER_STORE"
}
}
Expand Down

0 comments on commit 7999b0c

Please sign in to comment.