Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions pkg/app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,20 @@ func TestWaitOperatioSucceeds(t *testing.T) {
}
}

func TestWaitOperationUrlEncodedSucceeds(t *testing.T) {
controller := NewApp(&testInstanceManager{}, &testAccountManager{}, nil, nil, nil, "", nil, apiv1.InfraConfig{}, &config.Config{})
ts := httptest.NewServer(controller.Handler())
defer ts.Close()

res, _ := http.Post(
ts.URL+"/v1/zones/us-central1-a/operations/foo/%3Await", "application/json", strings.NewReader("{}"))

expected := http.StatusOK
if res.StatusCode != expected {
t.Errorf("unexpected status code <<%d>>, want: %d", res.StatusCode, expected)
}
}

func TestBuildListHostsRequest(t *testing.T) {

t.Run("default", func(t *testing.T) {
Expand Down
Loading