Skip to content

Commit

Permalink
QA-4816: updated token-2.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mmancini95 committed Dec 11, 2024
1 parent e59f8e8 commit b663528
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
10 changes: 5 additions & 5 deletions interop-qa-tests/config/token-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ userRoles:
admin: "f07ddb8f-17f9-47d4-b31e-35d1ac10e521"
api: "17a84b7b-dce6-4b8f-a1ae-85926c55f02e"
security: "e0477bcc-3baf-4755-aa31-375c051acb44"
apiSecurity: "e490f02e-9429-4b38-bb11-ddb8a561fb62"
"api,security": "e490f02e-9429-4b38-bb11-ddb8a561fb62"
support: "e0477bcc-3baf-4755-aa31-375c051acb44"
---
name: "GSP2"
Expand All @@ -27,7 +27,7 @@ userRoles:
admin: "f07ddb8f-17f9-47d4-b31e-35d1ac10e521"
api: "17a84b7b-dce6-4b8f-a1ae-85926c55f02e"
security: "e0477bcc-3baf-4755-aa31-375c051acb44"
apiSecurity: "e490f02e-9429-4b38-bb11-ddb8a561fb62"
"api,security": "e490f02e-9429-4b38-bb11-ddb8a561fb62"
support: "e0477bcc-3baf-4755-aa31-375c051acb44"
---
name: "PA1"
Expand All @@ -43,7 +43,7 @@ userRoles:
admin: "f07ddb8f-17f9-47d4-b31e-35d1ac10e521"
api: "c7dc1a86-31f6-4fe9-89cd-184201e29d75"
security: "17a84b7b-dce6-4b8f-a1ae-85926c55f02e"
apiSecurity: "e0477bcc-3baf-4755-aa31-375c051acb44"
"api,security": "e0477bcc-3baf-4755-aa31-375c051acb44"
support: "17a84b7b-dce6-4b8f-a1ae-85926c55f02e"
---
name: "PA2"
Expand All @@ -59,7 +59,7 @@ userRoles:
admin: "4ea722c3-defd-4372-a0c4-b4613072b632"
api: "34f3b33a-afac-421c-8044-690469f15cc5"
security: "78b9aa62-a472-4c87-8173-3f73bb2e04b5"
apiSecurity: "e490f02e-9429-4b38-bb11-ddb8a561fb62"
"api,security": "e490f02e-9429-4b38-bb11-ddb8a561fb62"
support: "78b9aa62-a472-4c87-8173-3f73bb2e04b5"
---
name: "Privato"
Expand All @@ -75,5 +75,5 @@ userRoles:
admin: "c27e3508-3d26-4b6b-9c73-54cb38e6fe1b"
api: "e0477bcc-3baf-4755-aa31-375c051acb44"
security: "e490f02e-9429-4b38-bb11-ddb8a561fb62"
apiSecurity: "17a84b7b-dce6-4b8f-a1ae-85926c55f02e"
"api,security": "17a84b7b-dce6-4b8f-a1ae-85926c55f02e"
support: "e490f02e-9429-4b38-bb11-ddb8a561fb62"
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
package it.pagopa.interop.authorization.domain;

import lombok.Getter;

@Getter
public enum Role {
ADMIN("admin"),
API("api"),
SECURITY("security"),
SUPPORT("support"),
API_SECURITY("api,security");

Role(String admin) {}
private String value;

Role(String value) {
this.value = value;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import it.pagopa.pn.interop.cucumber.steps.utils.DataPreparationService;
import it.pagopa.pn.interop.cucumber.steps.utils.HttpCallExecutor;

import java.util.UUID;

public class ClientPurposeRemoveStep {

private final IAuthorizationClient authorizationClient;
Expand Down Expand Up @@ -39,7 +41,7 @@ public void addPurposeToClient(String tenantType) {
public void archivePurpose(String tenantType) {
httpCallExecutor
.performCall(() -> dataPreparationService.archivePurpose(clientCommonSteps.getClients().get(0),
purposeCommonContext.getVersionId()));
UUID.fromString(purposeCommonContext.getVersionId())));
}

@When("l'utente richiede la disassociazione della finalità dal client")
Expand Down

0 comments on commit b663528

Please sign in to comment.