Skip to content

Commit

Permalink
feat(seeding): add seeding data for userRoleAssignedCollection (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
VPrasannaK94 authored Mar 11, 2024
1 parent 70646e1 commit 9f4258f
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,37 @@
{
"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_collection_id": "1a24eca5-901f-4191-84a7-4ef09a894575",
"user_role_id": "ec3a3005-b59c-4319-a8eb-3228014cd6e5"
}
]
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(9).And.OnlyHaveUniqueItems();
result.TechnicalUserRoleIds.Should().HaveCount(11).And.OnlyHaveUniqueItems();
}

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

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

[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().ConfigureAwait(false);

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

#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().ConfigureAwait(false);

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

Expand Down

0 comments on commit 9f4258f

Please sign in to comment.