Skip to content

Commit

Permalink
chore(roles-seeding): add bpdm roles (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
evegufy authored May 27, 2024
1 parent 0a97969 commit 42e7306
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,30 @@
"user_role_collection_id": "1a24eca5-901f-4191-84a7-4ef09a894575",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228984cd6e5"
},
{
"user_role_collection_id": "1a24eca5-901f-4191-84a7-4ef09a894575",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228884cd7e5"
},
{
"user_role_collection_id": "ec428950-8b64-4646-b336-28af869b5d73",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228884cd7e5"
},
{
"user_role_collection_id": "a5b8b1de-7759-4620-9c87-6b6d74fb4fbc",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228884cd7e5"
},
{
"user_role_collection_id": "8cb12ea2-aed4-4d75-b041-ba297df3d2f2",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228884cd7e5"
},
{
"user_role_collection_id": "916b09e7-7841-4e57-bdca-e0d3bd329c27",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228884cd7e5"
},
{
"user_role_collection_id": "1a24eca5-901f-4191-84a7-4ef09a894575",
"user_role_id": "c01818be-4978-41f4-bf63-fa6d2de53267"
},
{
"user_role_collection_id": "ec428950-8b64-4646-b336-28af869b5d73",
"user_role_id": "a6b6a5b6-d7fe-42af-94ce-35c16b3ae128"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,22 +162,22 @@
{
"user_role_id": "a6b6a5b6-d7fe-42af-94ce-35c16b3ae128",
"language_short_name": "de",
"description": "BPDM Sharing Input Consumer - Beschreibung tbd"
"description": "BPDM Sharing Input Consumer"
},
{
"user_role_id": "a6b6a5b6-d7fe-42af-94ce-35c16b3ae128",
"language_short_name": "en",
"description": "BPDM Sharing Input Consumer - description tbd"
"description": "BPDM Sharing Input Consumer"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa8d2de52262",
"language_short_name": "de",
"description": "BPDM Pool Admin - Beschreibung tbd"
"description": "BPDM Pool Admin"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa8d2de52262",
"language_short_name": "en",
"description": "BPDM Pool Admin - description tbd"
"description": "BPDM Pool Admin"
},
{
"user_role_id": "3940f9b0-4393-4463-b659-15463098557b",
Expand All @@ -202,17 +202,17 @@
{
"user_role_id": "9956fa8d-e454-49ca-a3b1-45e2c106fe59",
"language_short_name": "de",
"description": "BPDM Sharing Output Consumer - Beschreibung tbd"
"description": "BPDM Sharing Output Consumer"
},
{
"user_role_id": "9956fa8d-e454-49ca-a3b1-45e2c106fe59",
"language_short_name": "en",
"description": "BPDM Sharing Output Consumer - description tbd"
"description": "BPDM Sharing Output Consumer"
},
{
"user_role_id": "ec3a3115-b59c-4319-a8eb-3228014cd6e6",
"language_short_name": "de",
"description": "BPDM Sharing Admin - Beschreibung tbd"
"description": "BPDM Sharing Admin"
},
{
"user_role_id": "ec3a3115-b59c-4319-a8eb-3228014cd6e6",
Expand All @@ -222,21 +222,41 @@
{
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228984cd6e5",
"language_short_name": "de",
"description": "BPDM Sharing Input Manager - Beschreibung tbd"
"description": "BPDM Sharing Input Manager"
},
{
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228984cd6e5",
"language_short_name": "en",
"description": "BPDM Sharing Input Manager - description tbd"
"description": "BPDM Sharing Input Manager"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa6d2de51262",
"language_short_name": "de",
"description": "BPDM Pool Consumer - Beschreibung tbd"
"description": "BPDM Pool Consumer"
},
{
"user_role_id": "607818be-4978-41f4-bf63-fa6d2de51262",
"language_short_name": "en",
"description": "BPDM Pool Consumer - description tbd"
"description": "BPDM Pool Consumer"
},
{
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228884cd7e5",
"language_short_name": "de",
"description": "Business Partner Data Manager"
},
{
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228884cd7e5",
"language_short_name": "en",
"description": "Business Partner Data Manager"
},
{
"user_role_id": "c01818be-4978-41f4-bf63-fa6d2de53267",
"language_short_name": "de",
"description": "BPDM Pool Sharing Consumer"
},
{
"user_role_id": "c01818be-4978-41f4-bf63-fa6d2de53267",
"language_short_name": "en",
"description": "BPDM Pool Sharing Consumer"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,17 @@
"user_role": "BPDM Pool Consumer",
"offer_id": "0ffcb416-1101-4ba6-8d4a-a9dfa31745a4",
"last_editor_id": null
},
{
"id": "ec3a3005-b59c-4319-a8eb-3228884cd7e5",
"user_role": "Business Partner Data Manager",
"offer_id": "9b957704-3505-4445-822c-d7ef80f27fcd",
"last_editor_id": null
},
{
"id": "c01818be-4978-41f4-bf63-fa6d2de53267",
"user_role": "BPDM Pool Sharing Consumer",
"offer_id": "0ffcb416-1101-4ba6-8d4a-a9dfa31745a4",
"last_editor_id": null
}
]
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(12).And.OnlyHaveUniqueItems();
result.TechnicalUserRoleIds.Should().HaveCount(13).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(50);
result.Should().HaveCount(56);
}

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

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

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

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

Expand Down

0 comments on commit 42e7306

Please sign in to comment.