Skip to content

Commit

Permalink
Update operationId values in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jimschubert committed Jan 31, 2020
1 parent 5d4ab50 commit 129d0e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ public class OpenApiOperationValidationsTest {
public Object[][] getOrHeadWithBodyExpectations() {
return new Object[][]{
/* method */ /* operationId */ /* ref */ /* content */ /* triggers warning */
{PathItem.HttpMethod.GET, "opWithRerf", "#/components/schemas/Animal", null, true},
{PathItem.HttpMethod.GET, "opWithRerf", null, new Content().addMediaType("a", new MediaType()), true},
{PathItem.HttpMethod.GET, "opWithoutRerf", null, null, false},
{PathItem.HttpMethod.HEAD, "opWithRerf", "#/components/schemas/Animal", null, true},
{PathItem.HttpMethod.HEAD, "opWithRerf", null, new Content().addMediaType("a", new MediaType()), true},
{PathItem.HttpMethod.HEAD, "opWithoutRerf", null, null, false},
{PathItem.HttpMethod.POST, "opWithRerf", "#/components/schemas/Animal", null, false},
{PathItem.HttpMethod.POST, "opWithRerf", null, new Content().addMediaType("a", new MediaType()), false},
{PathItem.HttpMethod.POST, "opWithoutRerf", null, null, false}
{PathItem.HttpMethod.GET, "opWithRef", "#/components/schemas/Animal", null, true},
{PathItem.HttpMethod.GET, "opWithContent", null, new Content().addMediaType("a", new MediaType()), true},
{PathItem.HttpMethod.GET, "opWithoutRefOrContent", null, null, false},
{PathItem.HttpMethod.HEAD, "opWithRef", "#/components/schemas/Animal", null, true},
{PathItem.HttpMethod.HEAD, "opWithContent", null, new Content().addMediaType("a", new MediaType()), true},
{PathItem.HttpMethod.HEAD, "opWithoutRefOrContent", null, null, false},
{PathItem.HttpMethod.POST, "opWithRef", "#/components/schemas/Animal", null, false},
{PathItem.HttpMethod.POST, "opWithContent", null, new Content().addMediaType("a", new MediaType()), false},
{PathItem.HttpMethod.POST, "opWithoutRefOrContent", null, null, false}
};
}

Expand Down Expand Up @@ -113,4 +113,4 @@ public void testGetOrHeadWithBodyWithDisabledRule(PathItem.HttpMethod method, St
Assert.assertNotNull(warnings);
Assert.assertEquals(warnings.size(), 0, "Expected warnings not to include recommendation.");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ public Object[][] apacheNginxRecommendationExpectations() {
{"query", "apikey", false}
};
}
}
}

0 comments on commit 129d0e1

Please sign in to comment.