Skip to content

Commit

Permalink
tests: add integration tests for ipv6 ipFamily
Browse files Browse the repository at this point in the history
  • Loading branch information
rquitales committed Mar 28, 2024
1 parent baf5320 commit 6f4a06f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions examples/cluster-go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,18 @@ func main() {
return err
}

cluster4, err := eks.NewCluster(ctx, "example-cluster-4", &eks.ClusterArgs{
IpFamily: "ipv6",
})
if err != nil {
return err
}

// Export the kubeconfig for clusters
ctx.Export("kubeconfig1", cluster1.Kubeconfig)
ctx.Export("kubeconfig2", cluster2.Kubeconfig)
ctx.Export("kubeconfig3", cluster3.Kubeconfig)
ctx.Export("kubeconfig4", cluster4.Kubeconfig)
return nil
})
}
3 changes: 2 additions & 1 deletion examples/examples_go_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func TestAccClusterGo(t *testing.T) {
info.Outputs["kubeconfig1"],
info.Outputs["kubeconfig2"],
info.Outputs["kubeconfig3"],
info.Outputs["kubeconfig4"],
)
},
})
Expand Down Expand Up @@ -70,7 +71,7 @@ func getGoBaseOptions(t *testing.T) integration.ProgramTestOptions {
"aws:region": region,
},
Dependencies: []string{
"github.com/pulumi/pulumi-eks/sdk",
"github.com/pulumi/pulumi-eks/sdk/v2",
},
Verbose: true,
})
Expand Down

0 comments on commit 6f4a06f

Please sign in to comment.