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
6 changes: 4 additions & 2 deletions internal/proxy/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,10 @@ func TestServeHTTP_GraphQLPreservesQueryString(t *testing.T) {
wantPath string
}{
{name: "graphql path", path: "/graphql?foo=bar", wantPath: "/graphql?foo=bar"},
{name: "ghes api graphql path", path: "/api/graphql?foo=bar", wantPath: "/graphql?foo=bar"},
{name: "gh host prefixed graphql path", path: "/api/v3/graphql?foo=bar", wantPath: "/graphql?foo=bar"},
{name: "ghes api graphql path", path: "/api/graphql", wantPath: "/graphql"},
{name: "ghes api graphql path with query", path: "/api/graphql?foo=bar", wantPath: "/graphql?foo=bar"},
{name: "gh host prefixed graphql path", path: "/api/v3/graphql", wantPath: "/graphql"},
{name: "gh host prefixed graphql path with query", path: "/api/v3/graphql?foo=bar", wantPath: "/graphql?foo=bar"},
}

for _, tt := range tests {
Expand Down
Loading