-
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.
- Loading branch information
1 parent
36e6fc2
commit 051fdfb
Showing
35 changed files
with
1,671 additions
and
585 deletions.
There are no files selected for viewing
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,45 @@ | ||
name: Integration Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
integration_tets: | ||
runs-on: ubuntu-22.04 | ||
|
||
environment: cstar-d-mcshared | ||
|
||
permissions: | ||
id-token: write # Get OIDC token to authenticate to Azure. | ||
|
||
steps: | ||
# | ||
# Checkout the source code. | ||
# | ||
- name: Checkout the source code | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 | ||
|
||
# | ||
# Setup Java Build Environment. | ||
# | ||
- name: Setup Java Build Environment | ||
uses: pagopa/mil-actions/setup-java-build-env@f782a1b3cdb79afda2c10007ae46b831b31fe640 # 1.1.2 | ||
with: | ||
gh_user: ${{ secrets.GIT_USER }} | ||
gh_token: ${{ secrets.GIT_PAT }} | ||
|
||
# | ||
# Run integration tests. | ||
# | ||
- name: Run integration tests | ||
run: | | ||
${{ runner.temp }}/maven/bin/mvn verify \ | ||
-DskipUTs=true \ | ||
-DskipITs=false \ | ||
-Dbase_uri=${{ secrets.IT_BASE_URI }} | ||
-Dadmin_client_id=${{ secrets.IT_ADMIN_CLIENT_ID }} \ | ||
-Dadmin_client_secret=${{ secrets.IT_ADMIN_CLIENT_SECRET }} \ | ||
-Dtoken_info_client_id=${{ secrets.IT_TOKEN_INFO_CLIENT_ID }} \ | ||
-Dtoken_info_client_secret=${{ secrets.IT_TOKEN_INFO_CLIENT_SECRET }} \ | ||
-Dtest_username=${{ secrets.IT_TEST_USERNAME }} \ | ||
-Dtest_password=${{ secrets.IT_TEST_PASSWORD }} |
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
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
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
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
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
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
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
74 changes: 74 additions & 0 deletions
74
src/main/java/it/pagopa/swclient/mil/auth/admin/bean/CreateUserRequest.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,74 @@ | ||
/* | ||
* CreateUserRequest.java | ||
* | ||
* 20 nov 2024 | ||
*/ | ||
package it.pagopa.swclient.mil.auth.admin.bean; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import io.quarkus.runtime.annotations.RegisterForReflection; | ||
import it.pagopa.swclient.mil.ErrorCode; | ||
import it.pagopa.swclient.mil.auth.AuthErrorCode; | ||
import it.pagopa.swclient.mil.auth.admin.AdminErrorCode; | ||
import it.pagopa.swclient.mil.auth.bean.AuthValidationPattern; | ||
import it.pagopa.swclient.mil.bean.ValidationPattern; | ||
import jakarta.validation.constraints.NotNull; | ||
import jakarta.validation.constraints.Pattern; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
import lombok.experimental.Accessors; | ||
|
||
/** | ||
* | ||
* @author Antonio Tarricone | ||
*/ | ||
@RegisterForReflection | ||
@JsonInclude(Include.NON_NULL) | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Data | ||
@Accessors(chain = true) | ||
public class CreateUserRequest { | ||
/** | ||
* <p> | ||
* User name. | ||
* </p> | ||
*/ | ||
@JsonProperty(value = AdminJsonPropertyName.USERNAME) | ||
@NotNull(message = AdminErrorCode.USERNAME_MUST_NOT_BE_NULL_MSG) | ||
@Pattern(regexp = AuthValidationPattern.USERNAME, message = AuthErrorCode.USERNAME_MUST_MATCH_REGEXP_MSG) | ||
@ToString.Exclude | ||
private String username; | ||
|
||
/** | ||
* <p> | ||
* Channel. | ||
* </p> | ||
*/ | ||
@JsonProperty(value = AdminJsonPropertyName.CHANNEL) | ||
@Pattern(regexp = ValidationPattern.CHANNEL, message = ErrorCode.CHANNEL_MUST_MATCH_REGEXP_MSG) | ||
private String channel; | ||
|
||
/** | ||
* <p> | ||
* Acquirer ID. | ||
* </p> | ||
*/ | ||
@JsonProperty(value = AdminJsonPropertyName.ACQUIRER_ID) | ||
@Pattern(regexp = ValidationPattern.ACQUIRER_ID, message = ErrorCode.ACQUIRER_ID_MUST_MATCH_REGEXP_MSG) | ||
private String acquirerId; | ||
|
||
/** | ||
* <p> | ||
* Merchant ID. | ||
* </p> | ||
*/ | ||
@JsonProperty(value = AdminJsonPropertyName.MERCHANT_ID) | ||
@Pattern(regexp = ValidationPattern.MERCHANT_ID, message = ErrorCode.MERCHANT_ID_MUST_MATCH_REGEXP_MSG) | ||
private String merchantId; | ||
} |
38 changes: 38 additions & 0 deletions
38
src/main/java/it/pagopa/swclient/mil/auth/admin/bean/CreateUserResponse.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,38 @@ | ||
/* | ||
* CreateUserResponse.java | ||
* | ||
* 21 nov 2024 | ||
*/ | ||
package it.pagopa.swclient.mil.auth.admin.bean; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import io.quarkus.runtime.annotations.RegisterForReflection; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
import lombok.experimental.Accessors; | ||
|
||
/** | ||
* | ||
* @author Antonio Tarricone | ||
*/ | ||
@RegisterForReflection | ||
@JsonInclude(Include.NON_NULL) | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Data | ||
@Accessors(chain = true) | ||
public class CreateUserResponse { | ||
/** | ||
* <p> | ||
* Password. | ||
* </p> | ||
*/ | ||
@JsonProperty(AdminJsonPropertyName.PASSWORD) | ||
@ToString.Exclude | ||
private String password; | ||
} |
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
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
Oops, something went wrong.