Skip to content

Commit cb2bf63

Browse files
author
sfang97
committed
Add managed test
1 parent b03c9af commit cb2bf63

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gitlab/resource_gitlab_instance_cluster_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ func TestAccGitlabInstanceCluster_basic(t *testing.T) {
4747
KubernetesApiURL: "https://123.123.123",
4848
KubernetesCACert: instanceClusterFakeCert,
4949
KubernetesAuthorizationType: "abac",
50+
Managed: false,
5051
}),
5152
),
5253
},
@@ -128,6 +129,7 @@ type testAccGitlabInstanceClusterExpectedAttributes struct {
128129
KubernetesCACert string
129130
KubernetesAuthorizationType string
130131
ManagementProjectID string
132+
Managed bool
131133
}
132134

133135
func testAccCheckGitlabInstanceClusterExists(n string, cluster *gitlab.InstanceCluster) resource.TestCheckFunc {
@@ -169,7 +171,7 @@ func testAccCheckGitlabInstanceClusterDestroy(s *terraform.State) error {
169171
}
170172

171173
gotCluster, resp, err := conn.InstanceCluster.GetCluster(instanceClusterID)
172-
fmt.Println(gotCluster)
174+
173175
if err == nil {
174176
if gotCluster != nil && gotCluster.ID == instanceClusterID {
175177
return fmt.Errorf("instance cluster still exists")
@@ -215,6 +217,7 @@ func testAccCheckGitlabInstanceClusterAttributes(cluster *gitlab.InstanceCluster
215217

216218
func testAccGitlabInstanceClusterConfig(rInt int, managed bool) string {
217219
m := fmt.Sprintf("%t", managed)
220+
fmt.Println(m)
218221

219222
return fmt.Sprintf(`
220223
variable "cert" {

0 commit comments

Comments
 (0)