Skip to content

Commit

Permalink
Fixed error in the kubernetes resource
Browse files Browse the repository at this point in the history
Update the kubernetes test

Signed-off-by: Alejandro JNM <alejandrojnm@gmail.com>
  • Loading branch information
alejandrojnm committed Jul 6, 2020
1 parent 4e5b922 commit 9bd1bc7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions civo/resource_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ func resourceKubernetesCluster() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"master_ip": {
Type: schema.TypeString,
Computed: true,
},
"dns_entry": {
Type: schema.TypeString,
Computed: true,
Expand Down
5 changes: 5 additions & 0 deletions civo/resource_kubernetes_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func TestAccCivoKubernetesCluster_basic(t *testing.T) {
// resource.TestCheckResourceAttrSet(resName, "instances"),
resource.TestCheckResourceAttrSet(resName, "kubeconfig"),
resource.TestCheckResourceAttrSet(resName, "api_endpoint"),
resource.TestCheckResourceAttrSet(resName, "master_ip"),
resource.TestCheckResourceAttrSet(resName, "dns_entry"),
resource.TestCheckResourceAttrSet(resName, "built_at"),
resource.TestCheckResourceAttrSet(resName, "created_at"),
Expand Down Expand Up @@ -73,6 +74,7 @@ func TestAccCivoKubernetesClusterSize_update(t *testing.T) {
resource.TestCheckResourceAttr(resName, "target_nodes_size", "g2.small"),
resource.TestCheckResourceAttrSet(resName, "kubeconfig"),
resource.TestCheckResourceAttrSet(resName, "api_endpoint"),
resource.TestCheckResourceAttrSet(resName, "master_ip"),
resource.TestCheckResourceAttrSet(resName, "dns_entry"),
resource.TestCheckResourceAttrSet(resName, "built_at"),
resource.TestCheckResourceAttrSet(resName, "created_at"),
Expand All @@ -92,6 +94,7 @@ func TestAccCivoKubernetesClusterSize_update(t *testing.T) {
resource.TestCheckResourceAttr(resName, "target_nodes_size", "g2.small"),
resource.TestCheckResourceAttrSet(resName, "kubeconfig"),
resource.TestCheckResourceAttrSet(resName, "api_endpoint"),
resource.TestCheckResourceAttrSet(resName, "master_ip"),
resource.TestCheckResourceAttrSet(resName, "dns_entry"),
resource.TestCheckResourceAttrSet(resName, "built_at"),
resource.TestCheckResourceAttrSet(resName, "created_at"),
Expand Down Expand Up @@ -126,6 +129,7 @@ func TestAccCivoKubernetesClusterTags_update(t *testing.T) {
resource.TestCheckResourceAttr(resName, "target_nodes_size", "g2.small"),
resource.TestCheckResourceAttrSet(resName, "kubeconfig"),
resource.TestCheckResourceAttrSet(resName, "api_endpoint"),
resource.TestCheckResourceAttrSet(resName, "master_ip"),
resource.TestCheckResourceAttrSet(resName, "dns_entry"),
resource.TestCheckResourceAttrSet(resName, "built_at"),
resource.TestCheckResourceAttrSet(resName, "created_at"),
Expand All @@ -146,6 +150,7 @@ func TestAccCivoKubernetesClusterTags_update(t *testing.T) {
resource.TestCheckResourceAttr(resName, "tags", "foo"),
resource.TestCheckResourceAttrSet(resName, "kubeconfig"),
resource.TestCheckResourceAttrSet(resName, "api_endpoint"),
resource.TestCheckResourceAttrSet(resName, "master_ip"),
resource.TestCheckResourceAttrSet(resName, "dns_entry"),
resource.TestCheckResourceAttrSet(resName, "built_at"),
resource.TestCheckResourceAttrSet(resName, "created_at"),
Expand Down

0 comments on commit 9bd1bc7

Please sign in to comment.