Skip to content

Commit

Permalink
This seems wrong, but it makes the generated code happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dehort committed Jan 22, 2024
1 parent 14c14e7 commit 2f1231f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/api/connectors/sources/sources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var _ = Describe("Sources", func() {
It("interperates response correctly", func() {
responses := []test.MockHttpResponse{
{StatusCode: 200, Body: `{"data": [{"id": "1", "name": "test", "availability_status": "connected"}]}`},
{StatusCode: 200, Body: `{"data": [{"id": "1", "rhc_id": "6f37c752ba1c48b1bcf74ef8f585d8ee", "availability_status": "connected"}]}`},
{StatusCode: 200, Body: `[{"data": [{"id": "1", "rhc_id": "6f37c752ba1c48b1bcf74ef8f585d8ee", "availability_status": "connected"}]}]`},
}

doer := test.MockMultiResponseHttpClient(responses...)
Expand All @@ -37,7 +37,7 @@ var _ = Describe("Sources", func() {
It("interperates response correctly if fields are missing", func() {
responses := []test.MockHttpResponse{
{StatusCode: 200, Body: `{"data": [{"id": "1", "name": "test"}]}`},
{StatusCode: 200, Body: `{"data": [{"id": "1"}]}`},
{StatusCode: 200, Body: `[{"data": [{"id": "1"}]}]`},
}

doer := test.MockMultiResponseHttpClient(responses...)
Expand Down

0 comments on commit 2f1231f

Please sign in to comment.