-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SELC-5969] Added fake test to cucumber suite
- Loading branch information
1 parent
9c3bb35
commit 5718949
Showing
7 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
apps/user-group-ms/src/main/resources/config/core-config.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
user-group.allowed.sorting.parameters=${ALLOWED_SORTING_PARAMETERS:name} | ||
spring.data.mongodb.uri=${MONGODB_CONNECTION_URI:mongodb://localhost:27017} | ||
spring.data.mongodb.database=${MONGODB_NAME:selcUserGroup} | ||
spring.data.mongodb.database=${MONGODB_NAME:selcUserGroup} | ||
rest-assured.base-url=http://localhost | ||
rest-assured.port=8082 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...roup-ms/src/test/java/it/pagopa/selfcare/user_group/integration_test/steps/FakeSteps.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package it.pagopa.selfcare.user_group.integration_test.steps; | ||
|
||
import io.cucumber.java.en.Then; | ||
import io.cucumber.java.en.When; | ||
|
||
public class FakeSteps extends UserGroupSteps { | ||
|
||
|
||
|
||
@Override | ||
@Then("[FAKE] the response status should be {int}") | ||
public void verifyResponseStatus(int expectedStatusCode) { | ||
super.verifyResponseStatus(expectedStatusCode); | ||
} | ||
|
||
@When("I send a request to {string}") | ||
public void iSendARequestTo(String url) { | ||
status = 200; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Feature: fake | ||
|
||
Scenario: Successfully execute fake test | ||
When I send a request to "/fake" | ||
Then [FAKE] the response status should be 200 |
1 change: 1 addition & 0 deletions
1
apps/user-group-ms/src/test/resources/features/retrieveUserGroup.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@FeatureRetrieve | ||
Feature: Get User Group | ||
|
||
@FirstRetrieveGroupScenario | ||
|
1 change: 1 addition & 0 deletions
1
apps/user-group-ms/src/test/resources/features/updateUserGroup.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@FeatureUpdate | ||
Feature: Update User Group | ||
|
||
@FirstUpdateScenario | ||
|
1 change: 1 addition & 0 deletions
1
apps/user-group-ms/src/test/resources/features/userGroupMembers.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@FeatureMembers | ||
Feature: User Group Members | ||
|
||
@FirstGroupMembersScenario | ||
|