- changed status to open
Example Tests are failing due to missing api_key
Issue #261
resolved
In file com.atlassian.oai.validator.examples.restassured.OpenApiValidationFilterTestExample.java
an api key needs to be defined as a header otherwise an additional error is reported by validator.
All three tests need it.
@Test
public void testGetValidPet() {
given()
.port(PORT)
.header("api_key", "special-key")
.filter(validationFilter)
.when()
.get("/pet/1")
.then()
.assertThat()
.statusCode(200);
}
And here's the additional error:
"message" : "GET on path '/pet/1' requires security parameters. None found.",
Comments (2)
-
-
- changed status to resolved
Available in v2.9.1
- Log in to comment