Skip to content

Commit 7475d81

Browse files
Fix tests
1 parent f4564bc commit 7475d81

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

gitlab/resource_gitlab_project_variable_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestAccGitlabProjectVariable_basic(t *testing.T) {
2525
Check: resource.ComposeTestCheckFunc(
2626
testAccCheckGitlabProjectVariableExists("gitlab_project_variable.foo", &projectVariable),
2727
testAccCheckGitlabProjectVariableAttributes(&projectVariable, &testAccGitlabProjectVariableExpectedAttributes{
28-
Key: fmt.Sprintf("key-%s", rString),
28+
Key: fmt.Sprintf("key_%s", rString),
2929
Value: fmt.Sprintf("value-%s", rString),
3030
}),
3131
),
@@ -36,7 +36,7 @@ func TestAccGitlabProjectVariable_basic(t *testing.T) {
3636
Check: resource.ComposeTestCheckFunc(
3737
testAccCheckGitlabProjectVariableExists("gitlab_project_variable.foo", &projectVariable),
3838
testAccCheckGitlabProjectVariableAttributes(&projectVariable, &testAccGitlabProjectVariableExpectedAttributes{
39-
Key: fmt.Sprintf("key-%s", rString),
39+
Key: fmt.Sprintf("key_%s", rString),
4040
Value: fmt.Sprintf("value-inverse-%s", rString),
4141
Protected: true,
4242
}),
@@ -48,7 +48,7 @@ func TestAccGitlabProjectVariable_basic(t *testing.T) {
4848
Check: resource.ComposeTestCheckFunc(
4949
testAccCheckGitlabProjectVariableExists("gitlab_project_variable.foo", &projectVariable),
5050
testAccCheckGitlabProjectVariableAttributes(&projectVariable, &testAccGitlabProjectVariableExpectedAttributes{
51-
Key: fmt.Sprintf("key-%s", rString),
51+
Key: fmt.Sprintf("key_%s", rString),
5252
Value: fmt.Sprintf("value-%s", rString),
5353
Protected: false,
5454
}),
@@ -143,7 +143,7 @@ resource "gitlab_project" "foo" {
143143
144144
resource "gitlab_project_variable" "foo" {
145145
project = "${gitlab_project.foo.id}"
146-
key = "key-%s"
146+
key = "key_%s"
147147
value = "value-%s"
148148
}
149149
`, rString, rString, rString)
@@ -162,8 +162,8 @@ resource "gitlab_project" "foo" {
162162
163163
resource "gitlab_project_variable" "foo" {
164164
project = "${gitlab_project.foo.id}"
165-
key = "key-%s"
166-
value = "value-%s"
165+
key = "key_%s"
166+
value = "value-inverse-%s"
167167
protected = true
168168
}
169169
`, rString, rString, rString)

0 commit comments

Comments
 (0)