Skip to content

Commit 5aafa0d

Browse files
Merge pull request #240 from pagopa/feature/SELC-5969
[SELC-5969] Refactor user-group-ms
2 parents 0eca890 + b81ec92 commit 5aafa0d

File tree

86 files changed

+2855
-2856
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+2855
-2856
lines changed

apps/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
<packaging>pom</packaging>
1414

1515
<properties>
16-
<onboarding-sdk.version>0.4.1</onboarding-sdk.version>
16+
<onboarding-sdk.version>0.3.2</onboarding-sdk.version>
1717
</properties>
1818

1919
<dependencies>
2020
<dependency>
2121
<groupId>it.pagopa.selfcare</groupId>
2222
<artifactId>onboarding-sdk-azure-storage</artifactId>
23-
<version>${onboarding-sdk.version}</version>
23+
<version>0.3.2</version>
2424
</dependency>
2525
<dependency>
2626
<groupId>it.pagopa.selfcare</groupId>

apps/user-group-ms/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,19 @@ After starting, the microservice will be available at `http://localhost:8080/`.
3636

3737
To use the API, refer to the Swagger UI documentation (if available) at `http://localhost:8080/swagger-ui.html`.
3838

39-
39+
## Integration tests
40+
A new suite of integration tests written with cucumber was added in the `it.pagopa.selfcare.user_group.integration_tests` package.
41+
The tests are currently disabled by default, to run the tests locally:
42+
43+
1. Start a local mongodb at port 27017, you can use the docker-compose.yml in this folder and run:
44+
```shell script
45+
docker-compose up mongodb
46+
```
47+
48+
2. Run the user-group-ms locally at port 8082 (by setting the environment variable MS_USER_GROUP_SERVER_PORT) and using the test public key in `src/test/resources/key/public-key.pub`
49+
(by setting the value in a single line of the env var JWT_TOKEN_PUBLIC_KEY).
50+
51+
3. Comment the line starting with @ExcludeTags inside the CucumberSuite file and run the test with maven:
52+
```shell script
53+
mvn test -Dtest=CucumberSuite
54+
```

apps/user-group-ms/app/pom.xml

Lines changed: 0 additions & 45 deletions
This file was deleted.

apps/user-group-ms/connector-api/pom.xml

Lines changed: 0 additions & 39 deletions
This file was deleted.

apps/user-group-ms/connector-api/src/main/java/it/pagopa/selfcare/user_group/connector/api/UserGroupConnector.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

apps/user-group-ms/connector/dao/pom.xml

Lines changed: 0 additions & 25 deletions
This file was deleted.

apps/user-group-ms/connector/dao/src/main/java/it/pagopa/selfcare/user_group/connector/dao/UserGroupConnectorImpl.java

Lines changed: 0 additions & 219 deletions
This file was deleted.

0 commit comments

Comments
 (0)