Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/SELC-5969' into feature/…
Browse files Browse the repository at this point in the history
…SELC-5969
  • Loading branch information
flaminiaScarciofolo committed Dec 20, 2024
2 parents 2a3f226 + 5718949 commit c2d916b
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 6 deletions.
6 changes: 1 addition & 5 deletions apps/user-group-ms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,11 @@
<version>4.18.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>5.3.24</version> <!-- Usa la versione appropriata -->
<scope>test</scope>
</dependency>

</dependencies>
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@ConfigurationParameter(key = PLUGIN_PROPERTY_NAME, value = "pretty")
@CucumberContextConfiguration
@SpringBootTest(classes = {SelfCareUserGroupApplication.class})
@ExcludeTags({"FeatureCreate","FeatureRetrieve", "FeatureUpdate", "FeatureMembers"})
public class CucumberSuite {
}

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;
}
}
5 changes: 5 additions & 0 deletions apps/user-group-ms/src/test/resources/features/fake.feature
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@FeatureRetrieve
Feature: Get User Group

@FirstRetrieveGroupScenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@FeatureUpdate
Feature: Update User Group

@FirstUpdateScenario
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@FeatureMembers
Feature: User Group Members

@FirstGroupMembersScenario
Expand Down

0 comments on commit c2d916b

Please sign in to comment.