@@ -208,6 +208,26 @@ func TestAccScalewayK8SClusterIngressDashboard(t *testing.T) {
208
208
resource .TestCheckResourceAttr ("scaleway_k8s_cluster_beta.ingressdashboard" , "tags.2" , "ingressdashboard" ),
209
209
),
210
210
},
211
+ {
212
+ Config : testAccCheckScalewayK8SClusterBetaConfigIngressDashboard (latestK8SVersion , "traefik2" , true ),
213
+ Check : resource .ComposeTestCheckFunc (
214
+ testAccCheckScalewayK8SClusterBetaExists ("scaleway_k8s_cluster_beta.ingressdashboard" ),
215
+ resource .TestCheckResourceAttr ("scaleway_k8s_cluster_beta.ingressdashboard" , "version" , latestK8SVersion ),
216
+ resource .TestCheckResourceAttr ("scaleway_k8s_cluster_beta.ingressdashboard" , "cni" , "calico" ),
217
+ resource .TestCheckResourceAttr ("scaleway_k8s_cluster_beta.ingressdashboard" , "ingress" , "traefik2" ),
218
+ resource .TestCheckResourceAttr ("scaleway_k8s_cluster_beta.ingressdashboard" , "enable_dashboard" , "true" ),
219
+ resource .TestCheckResourceAttr ("scaleway_k8s_cluster_beta.ingressdashboard" , "status" , k8s .ClusterStatusPoolRequired .String ()),
220
+ resource .TestCheckResourceAttrSet ("scaleway_k8s_cluster_beta.ingressdashboard" , "kubeconfig.0.config_file" ),
221
+ resource .TestCheckResourceAttrSet ("scaleway_k8s_cluster_beta.ingressdashboard" , "kubeconfig.0.host" ),
222
+ resource .TestCheckResourceAttrSet ("scaleway_k8s_cluster_beta.ingressdashboard" , "kubeconfig.0.cluster_ca_certificate" ),
223
+ resource .TestCheckResourceAttrSet ("scaleway_k8s_cluster_beta.ingressdashboard" , "kubeconfig.0.token" ),
224
+ resource .TestCheckResourceAttrSet ("scaleway_k8s_cluster_beta.ingressdashboard" , "apiserver_url" ),
225
+ resource .TestCheckResourceAttrSet ("scaleway_k8s_cluster_beta.ingressdashboard" , "wildcard_dns" ),
226
+ resource .TestCheckResourceAttr ("scaleway_k8s_cluster_beta.ingressdashboard" , "tags.0" , "terraform-test" ),
227
+ resource .TestCheckResourceAttr ("scaleway_k8s_cluster_beta.ingressdashboard" , "tags.1" , "scaleway_k8s_cluster_beta" ),
228
+ resource .TestCheckResourceAttr ("scaleway_k8s_cluster_beta.ingressdashboard" , "tags.2" , "ingressdashboard" ),
229
+ ),
230
+ },
211
231
},
212
232
})
213
233
}
0 commit comments