Skip to content

Commit

Permalink
rename OpenShift class and fix/rename failed RestService name for ope…
Browse files Browse the repository at this point in the history
…nshift deployment to lowercase valid
  • Loading branch information
jcarranzan committed Nov 14, 2023
1 parent 1b93ae8 commit dfd64a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
import io.quarkus.test.scenarios.OpenShiftScenario;

@OpenShiftScenario
public class OpenshiftVertxWebValidationIT extends VertxWebValidationIT {
public class OpenShiftVertxWebValidationIT extends VertxWebValidationIT {
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@QuarkusScenario
public class VertxWebValidationIT {
@QuarkusApplication
static RestService restServiceApp = new RestService();
static RestService restserviceapp = new RestService();

private static final String SHOPPING_LIST_URL = "/shoppinglist";
private static final String LIST_NAME1 = "name=ListName1, products=[Carrots, Water, Cheese, Beer], price=25.0";
Expand All @@ -32,7 +32,7 @@ public class VertxWebValidationIT {

@Test
void checkShoppingListUrl() {
Response response = restServiceApp.given()
Response response = restserviceapp.given()
.get(SHOPPING_LIST_URL)
.then()
.statusCode(200)
Expand All @@ -45,13 +45,13 @@ void checkShoppingListUrl() {

@Test
void checkNamePriceParams() {
Response response = restServiceApp
Response response = restserviceapp
.given()
.get(FILTER_BY_NAME_PRICE_URL_1)
.then()
.statusCode(HttpStatus.SC_OK).extract().response();
assertThat(response.asString(), containsString(LIST_NAME1));
Response response2 = restServiceApp
Response response2 = restserviceapp
.given()
.get(FILTER_BY_NAME_PRICE_URL_2)
.then()
Expand All @@ -61,7 +61,7 @@ void checkNamePriceParams() {

@Test
void checkWrongNamePriceParams() {
Response response = restServiceApp
Response response = restserviceapp
.given()
.get(FILTER_BY_WRONG_NAME_PRICE_URL)
.then()
Expand All @@ -72,7 +72,7 @@ void checkWrongNamePriceParams() {

@Test
void checkParameterMissingError() {
Response response = restServiceApp
Response response = restserviceapp
.given()
.get(ONLY_FILTER_BY_NAME)
.then()
Expand All @@ -85,7 +85,7 @@ void checkParameterMissingError() {

@Test
void checkPriceOutOfRangeError() {
Response response = restServiceApp
Response response = restserviceapp
.given()
.get(PRICE_OUT_OF_RANGE)
.then()
Expand All @@ -98,7 +98,7 @@ void checkPriceOutOfRangeError() {

@Test
void checkFilterByArrayListName() {
Response response = restServiceApp
Response response = restserviceapp
.given()
.get(FILTER_BY_LIST_NAMES)
.then()
Expand All @@ -109,7 +109,7 @@ void checkFilterByArrayListName() {

@Test
void createShoppingList() {
restServiceApp.given()
restserviceapp.given()
.contentType(ContentType.JSON)
.body("{}")
.queryParam("shoppingListName", "MyList3")
Expand Down

0 comments on commit dfd64a8

Please sign in to comment.