File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,29 @@ func TestAccGitlabProjectLevelMRApprovals_basic(t *testing.T) {
37
37
})
38
38
}
39
39
40
+ func TestAccGitlabProjectLevelMRApprovals_import (t * testing.T ) {
41
+ resourceName := "gitlab_project_level_mr_approvals.foo"
42
+ rInt := acctest .RandInt ()
43
+
44
+ resource .Test (t , resource.TestCase {
45
+ PreCheck : func () { testAccPreCheck (t ) },
46
+ Providers : testAccProviders ,
47
+ CheckDestroy : testAccCheckGitlabProjectLevelMRApprovalsDestroy ,
48
+ Steps : []resource.TestStep {
49
+ {
50
+ SkipFunc : isRunningInCE ,
51
+ Config : testAccGitlabProjectLevelMRApprovalsUpdateConfig (rInt ),
52
+ },
53
+ {
54
+ ResourceName : resourceName ,
55
+ ImportState : true ,
56
+ ImportStateVerify : true ,
57
+ ImportStateVerifyIgnore : []string {"project_id" },
58
+ },
59
+ },
60
+ })
61
+ }
62
+
40
63
type testAccGitlabProjectLevelMRApprovalsExpectedAttributes struct {
41
64
resetApprovalsOnPush bool
42
65
disableOverridingApproversPerMergeRequest bool
You can’t perform that action at this time.
0 commit comments