Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Terraform
Commits
abd59779
Commit
abd59779
authored
10 years ago
by
Armon Dadgar
Browse files
Options
Download
Email Patches
Plain Diff
Update config test to handle provisioners
parent
2423d135
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config_test.go
+11
-0
config_test.go
with
11 additions
and
0 deletions
+11
-0
config_test.go
+
11
-
0
View file @
abd59779
...
...
@@ -33,6 +33,10 @@ func TestConfig_Merge(t *testing.T) {
"foo"
:
"bar"
,
"bar"
:
"blah"
,
},
Provisioners
:
map
[
string
]
string
{
"local"
:
"local"
,
"remote"
:
"bad"
,
},
}
c2
:=
&
Config
{
...
...
@@ -40,6 +44,9 @@ func TestConfig_Merge(t *testing.T) {
"bar"
:
"baz"
,
"baz"
:
"what"
,
},
Provisioners
:
map
[
string
]
string
{
"remote"
:
"remote"
,
},
}
expected
:=
&
Config
{
...
...
@@ -48,6 +55,10 @@ func TestConfig_Merge(t *testing.T) {
"bar"
:
"baz"
,
"baz"
:
"what"
,
},
Provisioners
:
map
[
string
]
string
{
"local"
:
"local"
,
"remote"
:
"remote"
,
},
}
actual
:=
c1
.
Merge
(
c2
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help