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 4 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
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ New features, fixed bugs, known defects and other noteworthy changes to each rel
* **Invitation**
* enabled creation of application and company on invite to remove the delay of the company application after invite [#960](https://github.com/eclipse-tractusx/portal-backend/pull/960)
* allowed access to invitation endpoint to technical user [#933](https://github.com/eclipse-tractusx/portal-backend/pull/933)
* **Technical User**: new parameters for api expansion for technical user data [#997](https://github.com/eclipse-tractusx/portal-backend/pull/997)
* **Technical User**
* new parameters for api expansion for technical user data [#997](https://github.com/eclipse-tractusx/portal-backend/pull/997)
* add Registration Internal as Operator technical user for invite API [#1002](https://github.com/eclipse-tractusx/portal-backend/pull/1002)
typecastcloud marked this conversation as resolved.
Show resolved Hide resolved
* **Administration**: introduced validating og bpn before adding to company user [#902](https://github.com/eclipse-tractusx/portal-backend/pull/902)
* **Business Partner Data Management**: add sharing state ready toggle [#905](https://github.com/eclipse-tractusx/portal-backend/pull/905)

Expand Down Expand Up @@ -1391,4 +1393,4 @@ n/a
* Feature - DB enhancements (User "DELETE" enum, creation of service tables, etc.)
* Feature - App Release Management PUT endpoint implementation for "CREATE App" and "App Details"
* Feature - Static Data endpoints implemented - GET use cases, language, company data
* Feature - DB Auditing released for app subscription, company user, company application, user assigned roles
* Feature - DB Auditing released for app subscription, company user, company application, user assigned roles
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,7 +135,7 @@ 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);
typecastcloud marked this conversation as resolved.
Show resolved Hide resolved
data.Where(x => x.RoleType == UserRoleType.External).Should().ContainSingle();
Expand Down
Loading