Skip to content

Commit

Permalink
chore(roles-seeding): update bpdm roles (#623)
Browse files Browse the repository at this point in the history
remove:
- BPDM Gate Read
- BPDM Gate Read & Write
- BPDM Partner Gate
- BPDM Management
- BPDM Pool
add:
- BPDM Sharing Admin
- BPDM Sharing Input Manager
- BPDM Sharing Input Consumer
- BPDM Sharing Output Consumer
- BPDM Pool Admin
- BPDM Pool Consumer
eclipse-tractusx/portal-iam#66
  • Loading branch information
evegufy authored Apr 11, 2024
1 parent 20e7752 commit 07832c1
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"user_role_collection_id": "1a24eca5-901f-4191-84a7-4ef09a894575"
},
{
"user_role_id": "9956fa8d-e454-49ca-a3b1-83e2c106fe59",
"user_role_id": "9956fa8d-e454-49ca-a3b1-45e2c106fe59",
"user_role_collection_id": "1a24eca5-901f-4191-84a7-4ef09a894575"
},
{
"user_role_id": "a6b6a5b6-d7fe-42af-94ce-35c16b3ae538",
"user_role_id": "a6b6a5b6-d7fe-42af-94ce-35c16b3ae128",
"user_role_collection_id": "1a24eca5-901f-4191-84a7-4ef09a894575"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa8d2de51162",
"user_role_id": "607818be-4978-41f4-bf63-fa8d2de52262",
"user_role_collection_id": "1a24eca5-901f-4191-84a7-4ef09a894575"
},
{
Expand All @@ -27,6 +27,10 @@
"user_role_id": "34c42896-a003-4653-af8f-ba06ca595752",
"user_role_collection_id": "1a24eca5-901f-4191-84a7-4ef09a894575"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa6d2de51262",
"user_role_collection_id": "1a24eca5-901f-4191-84a7-4ef09a894575"
},
{
"user_role_id": "58f897ec-0aad-4588-8ffa-5f45d6638633",
"user_role_collection_id": "8cb12ea2-aed4-4d75-b041-ba297df3d2f2"
Expand All @@ -47,10 +51,6 @@
"user_role_id": "04231a30-df50-4d14-bb00-71ff012ae0cf",
"user_role_collection_id": "8cb12ea2-aed4-4d75-b041-ba297df3d2f2"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa8d2de51162",
"user_role_collection_id": "8cb12ea2-aed4-4d75-b041-ba297df3d2f2"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa8d2de51165",
"user_role_collection_id": "8cb12ea2-aed4-4d75-b041-ba297df3d2f2"
Expand All @@ -71,10 +71,6 @@
"user_role_id": "916e4be9-0ff7-48fb-bb80-97d2e93fca14",
"user_role_collection_id": "a5b8b1de-7759-4620-9c87-6b6d74fb4fbc"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa8d2de51162",
"user_role_collection_id": "a5b8b1de-7759-4620-9c87-6b6d74fb4fbc"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa8d2de51165",
"user_role_collection_id": "a5b8b1de-7759-4620-9c87-6b6d74fb4fbc"
Expand Down Expand Up @@ -103,10 +99,6 @@
"user_role_id": "95fe4014-4d1b-47af-a22e-72a12f9470db",
"user_role_collection_id": "ec428950-8b64-4646-b336-28af869b5d73"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa8d2de51162",
"user_role_collection_id": "ec428950-8b64-4646-b336-28af869b5d73"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa8d2de51165",
"user_role_collection_id": "ec428950-8b64-4646-b336-28af869b5d73"
Expand Down Expand Up @@ -183,36 +175,12 @@
"user_role_collection_id": "ec428950-8b64-4646-b336-28af869b5d73",
"user_role_id": "607818be-4978-41f4-bf63-fa8d2de51154"
},
{
"user_role_collection_id": "8cb12ea2-aed4-4d75-b041-ba297df3d2f2",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228014cd6e6"
},
{
"user_role_collection_id": "ec428950-8b64-4646-b336-28af869b5d73",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228014cd6e6"
},
{
"user_role_collection_id": "a5b8b1de-7759-4620-9c87-6b6d74fb4fbc",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228014cd6e6"
},
{
"user_role_collection_id": "1a24eca5-901f-4191-84a7-4ef09a894575",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228014cd6e6"
},
{
"user_role_collection_id": "8cb12ea2-aed4-4d75-b041-ba297df3d2f2",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228014cd6e5"
},
{
"user_role_collection_id": "ec428950-8b64-4646-b336-28af869b5d73",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228014cd6e5"
},
{
"user_role_collection_id": "a5b8b1de-7759-4620-9c87-6b6d74fb4fbc",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228014cd6e5"
"user_role_id": "ec3a3115-b59c-4319-a8eb-3228014cd6e6"
},
{
"user_role_collection_id": "1a24eca5-901f-4191-84a7-4ef09a894575",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228014cd6e5"
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228984cd6e5"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -160,24 +160,24 @@
"description": "Technical user to generate 3rd party registrations by onboarding service provider companies."
},
{
"user_role_id": "a6b6a5b6-d7fe-42af-94ce-35c16b3ae538",
"user_role_id": "a6b6a5b6-d7fe-42af-94ce-35c16b3ae128",
"language_short_name": "de",
"description": "Ermöglicht das Anzeigen und Hinzufügen von Geschäftspartnerdaten über das eigene Service gate."
"description": "BPDM Sharing Input Consumer - Beschreibung tbd"
},
{
"user_role_id": "a6b6a5b6-d7fe-42af-94ce-35c16b3ae538",
"user_role_id": "a6b6a5b6-d7fe-42af-94ce-35c16b3ae128",
"language_short_name": "en",
"description": "Allows to view and add business partner data via the owned service gate."
"description": "BPDM Sharing Input Consumer - description tbd"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa8d2de51162",
"user_role_id": "607818be-4978-41f4-bf63-fa8d2de52262",
"language_short_name": "de",
"description": "Anzeigen der in der Pool-Datenbank verfügbaren Geschäftspartnerdaten."
"description": "BPDM Pool Admin - Beschreibung tbd"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa8d2de51162",
"user_role_id": "607818be-4978-41f4-bf63-fa8d2de52262",
"language_short_name": "en",
"description": "View business partner data available in the pool database."
"description": "BPDM Pool Admin - description tbd"
},
{
"user_role_id": "3940f9b0-4393-4463-b659-15463098557b",
Expand All @@ -200,33 +200,43 @@
"description": "Technical user to access catena-x membership information."
},
{
"user_role_id": "9956fa8d-e454-49ca-a3b1-83e2c106fe59",
"user_role_id": "9956fa8d-e454-49ca-a3b1-45e2c106fe59",
"language_short_name": "de",
"description": "Anzeigen, hinzufügen und löschen von Geschäftspartnerdatensätzen aus dem Geschäftspartner-Datenpool."
"description": "BPDM Sharing Output Consumer - Beschreibung tbd"
},
{
"user_role_id": "9956fa8d-e454-49ca-a3b1-83e2c106fe59",
"user_role_id": "9956fa8d-e454-49ca-a3b1-45e2c106fe59",
"language_short_name": "en",
"description": "View, add and delete business partner records from the business partner data pool."
"description": "BPDM Sharing Output Consumer - description tbd"
},
{
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228014cd6e6",
"user_role_id": "ec3a3115-b59c-4319-a8eb-3228014cd6e6",
"language_short_name": "de",
"description": "Zugriff auf das BPDM Gate - lesend."
"description": "BPDM Sharing Admin - Beschreibung tbd"
},
{
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228014cd6e6",
"user_role_id": "ec3a3115-b59c-4319-a8eb-3228014cd6e6",
"language_short_name": "en",
"description": "Access to the BPDM Gate Read data."
"description": "BPDM Sharing Admin - description"
},
{
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228014cd6e5",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228984cd6e5",
"language_short_name": "de",
"description": "Zugriff auf das BPDM Gate - lesend & schreibend."
"description": "BPDM Sharing Input Manager - Beschreibung tbd"
},
{
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228014cd6e5",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228984cd6e5",
"language_short_name": "en",
"description": "Access to the BPDM Gate Read & Write data."
"description": "BPDM Sharing Input Manager - description tbd"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa6d2de51262",
"language_short_name": "de",
"description": "BPDM Pool Consumer - Beschreibung tbd"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa6d2de51262",
"language_short_name": "en",
"description": "BPDM Pool Consumer - description tbd"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,20 @@
"last_editor_id": null
},
{
"id": "9956fa8d-e454-49ca-a3b1-83e2c106fe59",
"user_role": "BPDM Management",
"id": "9956fa8d-e454-49ca-a3b1-45e2c106fe59",
"user_role": "BPDM Sharing Output Consumer",
"offer_id": "0ffcb416-1101-4ba6-8d4a-a9dfa31745a4",
"last_editor_id": null
},
{
"id": "a6b6a5b6-d7fe-42af-94ce-35c16b3ae538",
"user_role": "BPDM Partner Gate",
"id": "a6b6a5b6-d7fe-42af-94ce-35c16b3ae128",
"user_role": "BPDM Sharing Input Consumer",
"offer_id": "0ffcb416-1101-4ba6-8d4a-a9dfa31745a4",
"last_editor_id": null
},
{
"id": "607818be-4978-41f4-bf63-fa8d2de51162",
"user_role": "BPDM Pool",
"id": "607818be-4978-41f4-bf63-fa8d2de52262",
"user_role": "BPDM Pool Admin",
"offer_id": "0ffcb416-1101-4ba6-8d4a-a9dfa31745a4",
"last_editor_id": null
},
Expand Down Expand Up @@ -132,14 +132,20 @@
"last_editor_id": null
},
{
"id": "ec3a3005-b59c-4319-a8eb-3228014cd6e6",
"user_role": "BPDM Gate Read",
"id": "ec3a3115-b59c-4319-a8eb-3228014cd6e6",
"user_role": "BPDM Sharing Admin",
"offer_id": "0ffcb416-1101-4ba6-8d4a-a9dfa31745a4",
"last_editor_id": null
},
{
"id": "ec3a3005-b59c-4319-a8eb-3228014cd6e5",
"user_role": "BPDM Gate Read & Write",
"id": "ec3a3005-b59c-4319-a8eb-3228984cd6e5",
"user_role": "BPDM Sharing Input Manager",
"offer_id": "0ffcb416-1101-4ba6-8d4a-a9dfa31745a4",
"last_editor_id": null
},
{
"id": "607818be-4978-41f4-bf63-fa6d2de51262",
"user_role": "BPDM Pool Consumer",
"offer_id": "0ffcb416-1101-4ba6-8d4a-a9dfa31745a4",
"last_editor_id": null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ public async Task GetCompanyIdAndBpnForIamUserUntrackedAsync_WithValidData_Retur
// Assert
result.Should().NotBe(default);
result.Bpn.Should().Be("BPNL00000003CRHK");
result.TechnicalUserRoleIds.Should().HaveCount(11).And.OnlyHaveUniqueItems();
result.TechnicalUserRoleIds.Should().HaveCount(12).And.OnlyHaveUniqueItems();
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public async Task CompanyRoleCollectionRolesView_GetAll_ReturnsExpected()

// Act
var result = await sut.CompanyRoleCollectionRolesView.ToListAsync();
result.Should().HaveCount(34);
result.Should().HaveCount(26);
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public async Task GetCoreOfferRolesAsync_WithValidData_ReturnsExpected()
var data = await sut.GetCoreOfferRolesAsync(_validCompanyId, "en", ClientId).ToListAsync();

// Assert
data.Should().HaveCount(11);
data.Should().HaveCount(12);
}

#endregion
Expand Down Expand Up @@ -133,7 +133,7 @@ public async Task GetServiceAccountRolesAsync_WithValidData_ReturnsExpected()
var data = await sut.GetServiceAccountRolesAsync(_validCompanyId, ClientId, Constants.DefaultLanguage).ToListAsync();

// Assert
data.Should().HaveCount(11);
data.Should().HaveCount(12);
data.Should().OnlyHaveUniqueItems();
}

Expand Down

0 comments on commit 07832c1

Please sign in to comment.