@@ -24,17 +24,15 @@ func TestAccGitlabProjectVariable_basic(t *testing.T) {
24
24
Config : testAccGitlabProjectVariableConfig (rString ),
25
25
Check : resource .ComposeTestCheckFunc (
26
26
testAccCheckGitlabProjectVariableExists ("gitlab_project_variable.foo" , & projectVariable ),
27
- testAccCheckGitlabProjectVariableAttributes (& projectVariable , & testAccGitlabProjectVariableExpectedAttributes {
28
- Key : fmt .Sprintf ("key-%s" , rString ),
29
- Value : fmt .Sprintf ("value-%s" , rString ),
30
- }),
27
+ resource .TestCheckResourceAttr ("gitlab_project_variable.foo" , "Key" , fmt .Sprintf ("key-%s" , rString )),
28
+ resource .TestCheckResourceAttr ("gitlab_project_variable.foo" , "Value" , fmt .Sprintf ("value-%s" , rString )),
31
29
),
32
30
},
33
31
// Update the project variable to toggle all the values to their inverse
34
32
{
35
33
Config : testAccGitlabProjectVariableUpdateConfig (rString ),
36
34
Check : resource .ComposeTestCheckFunc (
37
- testAccCheckGitlabProjectVariableExists ("gitlab_project_hook .foo" , & projectVariable ),
35
+ testAccCheckGitlabProjectVariableExists ("gitlab_project_variable .foo" , & projectVariable ),
38
36
testAccCheckGitlabProjectVariableAttributes (& projectVariable , & testAccGitlabProjectVariableExpectedAttributes {
39
37
Key : fmt .Sprintf ("key-%s" , rString ),
40
38
Value : fmt .Sprintf ("value-inverse-%s" , rString ),
@@ -46,7 +44,7 @@ func TestAccGitlabProjectVariable_basic(t *testing.T) {
46
44
{
47
45
Config : testAccGitlabProjectVariableConfig (rString ),
48
46
Check : resource .ComposeTestCheckFunc (
49
- testAccCheckGitlabProjectVariableExists ("gitlab_project_hook .foo" , & projectVariable ),
47
+ testAccCheckGitlabProjectVariableExists ("gitlab_project_variable .foo" , & projectVariable ),
50
48
testAccCheckGitlabProjectVariableAttributes (& projectVariable , & testAccGitlabProjectVariableExpectedAttributes {
51
49
Key : fmt .Sprintf ("key-%s" , rString ),
52
50
Value : fmt .Sprintf ("value-%s" , rString ),
0 commit comments