Skip to content

Commit

Permalink
doks: include custom CIDR in create test
Browse files Browse the repository at this point in the history
  • Loading branch information
gottwald committed Sep 25, 2024
1 parent 7b0ae39 commit 48555e9
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,8 @@ func TestKubernetesClusters_Create(t *testing.T) {
Name: "antoine-test-cluster",
RegionSlug: "s2r1",
VersionSlug: "1.10.0-gen0",
ClusterSubnet: "10.244.0.0/16",
ServiceSubnet: "10.245.0.0/16",
ClusterSubnet: "192.168.0.0/16",
ServiceSubnet: "192.169.0.0/16",
Tags: []string{"cluster-tag-1", "cluster-tag-2"},
VPCUUID: "880b7f98-f062-404d-b33c-458d545696f6",
HA: true,
Expand All @@ -577,13 +577,15 @@ func TestKubernetesClusters_Create(t *testing.T) {
},
}
createRequest := &KubernetesClusterCreateRequest{
Name: want.Name,
RegionSlug: want.RegionSlug,
VersionSlug: want.VersionSlug,
Tags: want.Tags,
VPCUUID: want.VPCUUID,
SurgeUpgrade: true,
HA: true,
Name: want.Name,
RegionSlug: want.RegionSlug,
VersionSlug: want.VersionSlug,
Tags: want.Tags,
VPCUUID: want.VPCUUID,
ClusterSubnet: want.ClusterSubnet,
ServiceSubnet: want.ServiceSubnet,
SurgeUpgrade: true,
HA: true,
NodePools: []*KubernetesNodePoolCreateRequest{
{
Size: want.NodePools[0].Size,
Expand All @@ -606,8 +608,8 @@ func TestKubernetesClusters_Create(t *testing.T) {
"name": "antoine-test-cluster",
"region": "s2r1",
"version": "1.10.0-gen0",
"cluster_subnet": "10.244.0.0/16",
"service_subnet": "10.245.0.0/16",
"cluster_subnet": "192.168.0.0/16",
"service_subnet": "192.169.0.0/16",
"tags": [
"cluster-tag-1",
"cluster-tag-2"
Expand Down

0 comments on commit 48555e9

Please sign in to comment.