Skip to content

Commit

Permalink
add the unit test case when --private-cluster-master-ip-rangeis empty
Browse files Browse the repository at this point in the history
  • Loading branch information
chizhg committed Nov 24, 2020
1 parent c88b2f1 commit 7bed676
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kubetest2-gke/deployer/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ func TestPrivateClusterArgs(t *testing.T) {
clusterInfo: cluster{index: 0, name: "whatever-cluster-name"},
expected: []string{},
},
{
desc: "--private-cluster-master-ip-range can be empty for non-private clusters",
network: "whatever-network",
accessLevel: "",
masterIPRanges: []string{},
clusterInfo: cluster{index: 0, name: "whatever-cluster-name"},
expected: []string{},
},
{
desc: "test private cluster args for private cluster with no limit",
network: "test-network1",
Expand Down

0 comments on commit 7bed676

Please sign in to comment.