Skip to content

Commit

Permalink
CON-10347
Browse files Browse the repository at this point in the history
  • Loading branch information
llDrLove committed Jun 14, 2024
1 parent 7d41627 commit 310be03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ func TestKubernetesClusters_Update(t *testing.T) {
"start_time": "00:00",
"day": "monday"
},
"control_plane_permission": {
"control_plane_firewall": {
"enabled": true,
"allowed_addresses": [
"1.2.3.4/32"
Expand All @@ -860,7 +860,7 @@ func TestKubernetesClusters_Update(t *testing.T) {
}
}`

expectedReqJSON := `{"name":"antoine-test-cluster","tags":["cluster-tag-1","cluster-tag-2"],"maintenance_policy":{"start_time":"00:00","duration":"","day":"monday"},"surge_upgrade":true,"control_plane_permission":{"enabled":true,"allowed_addresses":["1.2.3.4/32"]}}
expectedReqJSON := `{"name":"antoine-test-cluster","tags":["cluster-tag-1","cluster-tag-2"],"maintenance_policy":{"start_time":"00:00","duration":"","day":"monday"},"surge_upgrade":true,"control_plane_firewall":{"enabled":true,"allowed_addresses":["1.2.3.4/32"]}}
`

mux.HandleFunc("/v2/kubernetes/clusters/8d91899c-0739-4a1a-acc5-deadbeefbb8f", func(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit 310be03

Please sign in to comment.