Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tech user): add internal invitation tech user #1002

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

New features, fixed bugs, known defects and other noteworthy changes to each release of the Catena-X Portal Backend.

## Unreleased

## Feature

* **Technical User**
* add Registration Internal as Operator technical user for invite API [#1002](https://github.com/eclipse-tractusx/portal-backend/pull/1002)

## 2.3.0-alpha.1

## Feature
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
"user_role_id": "607818be-4978-41f4-bf63-fa6d2de51262",
"user_role_collection_id": "1a24eca5-901f-4191-84a7-4ef09a894575"
},
{
"user_role_id": "34c42896-a003-4653-af8f-ba06ca595754",
"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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,5 +258,15 @@
"user_role_id": "c01818be-4978-41f4-bf63-fa6d2de53267",
"language_short_name": "en",
"description": "BPDM Pool Sharing Consumer"
},
{
"user_role_id": "34c42896-a003-4653-af8f-ba06ca595754",
"language_short_name": "de",
"description": "Technischer User für die Invitation API zur Integration von Drittanbieter-Software."
},
{
"user_role_id": "34c42896-a003-4653-af8f-ba06ca595754",
"language_short_name": "en",
"description": "Technical user enabling the invitation API to integrate 3rd party software."
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,11 @@
"user_role": "BPDM Pool Sharing Consumer",
"offer_id": "0ffcb416-1101-4ba6-8d4a-a9dfa31745a4",
"last_editor_id": null
},
{
"id": "34c42896-a003-4653-af8f-ba06ca595754",
"user_role": "Registration Internal",
"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(13).And.OnlyHaveUniqueItems();
result.TechnicalUserRoleIds.Should().HaveCount(14).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(56);
result.Should().HaveCount(57);
}

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

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

#endregion
Expand Down Expand Up @@ -135,9 +135,9 @@ public async Task GetServiceAccountRolesAsync_WithValidData_ReturnsExpected()
var data = await sut.GetServiceAccountRolesAsync(_validCompanyId, ClientId, Enumerable.Repeat(new Guid("607818be-4978-41f4-bf63-fa8d2de51157"), 1), Constants.DefaultLanguage).ToListAsync();

// Assert
data.Should().HaveCount(13);
data.Should().HaveCount(14);
data.Should().OnlyHaveUniqueItems();
data.Where(x => x.RoleType == UserRoleType.Internal).Should().HaveCount(12);
data.Where(x => x.RoleType == UserRoleType.Internal).Should().HaveCount(13);
data.Where(x => x.RoleType == UserRoleType.External).Should().ContainSingle();
}

Expand Down
Loading