From 63c2a9f301c13066acd9cea59493a1be8e0026a5 Mon Sep 17 00:00:00 2001 From: evegufy Date: Wed, 20 Sep 2023 16:43:13 +0200 Subject: [PATCH] chore(e2e-testing): prepare for merge - fix obsolete model reference - set AssemblyName and RootNamespace - fix packagereference and namespace in a couple of files - add file header - update reportportal package - update dependencies --- .github/workflows/test-automation.yml | 6 ++-- DEPENDENCIES | 7 ++--- src/Portal.Backend.sln | 29 ++++++++++--------- tests/endtoend/AlphabeticalOrderer.cs | 19 ++++++++++++ tests/endtoend/AuthFlow/AuthFlow.cs | 21 +++++++++++++- tests/endtoend/AuthFlow/CentralidpCompany.cs | 19 ++++++++++++ tests/endtoend/AuthFlow/DevMailApiRequests.cs | 21 +++++++++++++- tests/endtoend/AuthFlow/DevMailboxData.cs | 19 ++++++++++++ tests/endtoend/AuthFlow/EmailMessageData.cs | 19 ++++++++++++ tests/endtoend/AuthFlow/MailboxData.cs | 19 ++++++++++++ .../endtoend/AuthFlow/TempMailApiRequests.cs | 21 +++++++++++++- tests/endtoend/AuthFlow/Token.cs | 19 ++++++++++++ tests/endtoend/ConsoleWriter.cs | 19 ++++++++++++ .../CreateNewTestAppScenario.cs | 23 +++++++++++++-- tests/endtoend/DataHandleHelper.cs | 21 +++++++++++++- tests/endtoend/EndToEnd.Tests.csproj | 27 +++++++++++++++-- tests/endtoend/EndToEndTestBase.cs | 21 +++++++++++++- .../BpdmEndToEndTests.cs | 21 +++++++++++++- .../ClearinghouseEndToEndTests.cs | 21 +++++++++++++- .../SdFactoryEndPointTests.cs | 21 +++++++++++++- .../WalletEndPointTests.cs | 21 +++++++++++++- .../ModifyCoreUserRoleScenario.cs | 21 +++++++++++++- .../NotificationContent.cs | 19 ++++++++++++ .../PortalHealthCheck/BaseDataLoadCheck.cs | 21 +++++++++++++- .../RegistrationHealthCheck.cs | 24 ++++++++++++--- .../RegistrationScenarios/BpdmContent.cs | 19 ++++++++++++ .../RegistrationEndpointHelper.cs | 21 +++++++++++++- .../RegistrationScenarios.cs | 21 +++++++++++++- tests/endtoend/ReportPortal.config.json | 4 +-- tests/endtoend/Secrets.cs | 19 ++++++++++++ .../AdministrationEndpointHelper.cs | 21 +++++++++++++- .../ServiceAccountCUDScenarios.cs | 28 +++++++++++++----- tests/endtoend/TechTokenRetriever.cs | 21 +++++++++++++- tests/endtoend/TestDataHelper.cs | 21 +++++++++++++- tests/endtoend/TestDataModelCreateApp.cs | 19 ++++++++++++ tests/endtoend/TestDataRegistrationModel.cs | 19 ++++++++++++ tests/endtoend/TestResources.cs | 19 ++++++++++++ 37 files changed, 674 insertions(+), 57 deletions(-) diff --git a/.github/workflows/test-automation.yml b/.github/workflows/test-automation.yml index 53bfeaa7cf..ede2d3ea3c 100644 --- a/.github/workflows/test-automation.yml +++ b/.github/workflows/test-automation.yml @@ -58,14 +58,14 @@ jobs: - name: Update JSON file env: project: ${{ secrets.REPORTPORTAL_PROJECT }} - uuid: ${{ secrets.REPORTPORTAL_AUTHENTICATION_UUID }} + apiKey: ${{ secrets.REPORTPORTAL_AUTHENTICATION_UUID }} url: ${{ vars.REPORTPORTAL_URL }} run: | cd tests/endtoend jq --arg project "$project" \ - --arg uuid "$uuid" \ + --arg apiKey "$apiKey" \ --arg url "$url" \ - '.server |= ( .project = $project | .authentication.uuid = $uuid | .url = $url )' \ + '.server |= ( .project = $project | .apiKey = $apiKey | .url = $url )' \ ReportPortal.config.json > temp.json mv temp.json ReportPortal.config.json - name: Setup .NET Core SDK ${{ matrix.dotnet-version }} diff --git a/DEPENDENCIES b/DEPENDENCIES index 788adc44d0..2586121a24 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -20,16 +20,15 @@ nuget/nuget/-/NHamcrest/3.2.0, MIT, approved, #9299 nuget/nuget/-/NJsonSchema/10.9.0, MIT, approved, #9300 nuget/nuget/-/Namotion.Reflection/2.1.2, MIT, approved, #9320 nuget/nuget/-/Newtonsoft.Json/12.0.2, MIT, approved, clearlydefined -nuget/nuget/-/Newtonsoft.Json/13.0.2, MIT AND BSD-3-Clause, approved, #3266 +nuget/nuget/-/Newtonsoft.Json/13.0.1, MIT AND BSD-3-Clause, approved, #3266 nuget/nuget/-/Newtonsoft.Json/13.0.3, MIT AND BSD-3-Clause, approved, #3266 -nuget/nuget/-/Newtonsoft.Json/9.0.1, MIT, approved, clearlydefined nuget/nuget/-/Npgsql.EntityFrameworkCore.PostgreSQL/7.0.4, PostgreSQL AND MIT AND Apache-2.0, approved, #10081 nuget/nuget/-/Npgsql/7.0.4, PostgreSQL, approved, #10062 nuget/nuget/-/PasswordGenerator/2.1.0, MIT, approved, #3192 nuget/nuget/-/Portable.BouncyCastle/1.9.0, MIT, approved, clearlydefined nuget/nuget/-/ReportPortal.Client/3.4.0, Apache-2.0, approved, #9298 -nuget/nuget/-/ReportPortal.Shared/3.5.0, Apache-2.0, approved, #9301 -nuget/nuget/-/ReportPortal.XUnit/2.4.5, Apache-2.0, approved, #9296 +nuget/nuget/-/ReportPortal.Shared/3.6.0, Apache-2.0, approved, #10587 +nuget/nuget/-/ReportPortal.XUnit/2.5.0, Apache-2.0, approved, #10588 nuget/nuget/-/RestAssured.Net/4.0.0, Apache-2.0, approved, #9294 nuget/nuget/-/SSH.NET/2020.0.2, MIT AND ISC AND LicenseRef-Public-domain AND (MIT AND MS-PL), approved, #10073 nuget/nuget/-/Serilog.AspNetCore/7.0.0, Apache-2.0 AND MIT, approved, #10084 diff --git a/src/Portal.Backend.sln b/src/Portal.Backend.sln index 28fd415d4f..feb0dbd036 100644 --- a/src/Portal.Backend.sln +++ b/src/Portal.Backend.sln @@ -206,7 +206,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Framework.Models.Tests", ". EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Framework.ProcessIdentity", "framework\Framework.ProcessIdentity\Framework.ProcessIdentity.csproj", "{4CA307AB-A0F8-4AA5-A09D-91F47DA3054A}" EmdProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EndToEnd.Tests", "..\tests\endtoend\EndToEnd.Tests.csproj", "{5D70E30D-E9A2-472B-9834-BDB9824F8DEB}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Framework.PublicInfos", "framework\Framework.PublicInfos\Framework.PublicInfos.csproj", "{47E089E3-E875-4045-9E58-C1223BE899E9}" EndProject @@ -228,6 +227,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetworkRegistration.Library EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetworkRegistration.Executor", "..\tests\processes\NetworkRegistration.Executor\NetworkRegistration.Executor.csproj", "{469F8BD7-C2A7-4C5B-8280-095C7102E60E}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EndToEnd.Tests", "..\tests\endtoend\EndToEnd.Tests.csproj", "{D22934D7-59B7-4779-AB59-E5BE12DE2F06}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -1354,18 +1355,6 @@ Global {A5BEDD89-7280-466E-8D14-EC5E177AAD07}.Release|x64.Build.0 = Release|Any CPU {A5BEDD89-7280-466E-8D14-EC5E177AAD07}.Release|x86.ActiveCfg = Release|Any CPU {A5BEDD89-7280-466E-8D14-EC5E177AAD07}.Release|x86.Build.0 = Release|Any CPU - {5D70E30D-E9A2-472B-9834-BDB9824F8DEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5D70E30D-E9A2-472B-9834-BDB9824F8DEB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5D70E30D-E9A2-472B-9834-BDB9824F8DEB}.Debug|x64.ActiveCfg = Debug|Any CPU - {5D70E30D-E9A2-472B-9834-BDB9824F8DEB}.Debug|x64.Build.0 = Debug|Any CPU - {5D70E30D-E9A2-472B-9834-BDB9824F8DEB}.Debug|x86.ActiveCfg = Debug|Any CPU - {5D70E30D-E9A2-472B-9834-BDB9824F8DEB}.Debug|x86.Build.0 = Debug|Any CPU - {5D70E30D-E9A2-472B-9834-BDB9824F8DEB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5D70E30D-E9A2-472B-9834-BDB9824F8DEB}.Release|Any CPU.Build.0 = Release|Any CPU - {5D70E30D-E9A2-472B-9834-BDB9824F8DEB}.Release|x64.ActiveCfg = Release|Any CPU - {5D70E30D-E9A2-472B-9834-BDB9824F8DEB}.Release|x64.Build.0 = Release|Any CPU - {5D70E30D-E9A2-472B-9834-BDB9824F8DEB}.Release|x86.ActiveCfg = Release|Any CPU - {5D70E30D-E9A2-472B-9834-BDB9824F8DEB}.Release|x86.Build.0 = Release|Any CPU {6113B579-C995-47F8-9AC1-4CC6EFDDD883}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {6113B579-C995-47F8-9AC1-4CC6EFDDD883}.Debug|Any CPU.Build.0 = Debug|Any CPU {6113B579-C995-47F8-9AC1-4CC6EFDDD883}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -1438,6 +1427,18 @@ Global {469F8BD7-C2A7-4C5B-8280-095C7102E60E}.Release|x64.Build.0 = Release|Any CPU {469F8BD7-C2A7-4C5B-8280-095C7102E60E}.Release|x86.ActiveCfg = Release|Any CPU {469F8BD7-C2A7-4C5B-8280-095C7102E60E}.Release|x86.Build.0 = Release|Any CPU + {D22934D7-59B7-4779-AB59-E5BE12DE2F06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D22934D7-59B7-4779-AB59-E5BE12DE2F06}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D22934D7-59B7-4779-AB59-E5BE12DE2F06}.Debug|x64.ActiveCfg = Debug|Any CPU + {D22934D7-59B7-4779-AB59-E5BE12DE2F06}.Debug|x64.Build.0 = Debug|Any CPU + {D22934D7-59B7-4779-AB59-E5BE12DE2F06}.Debug|x86.ActiveCfg = Debug|Any CPU + {D22934D7-59B7-4779-AB59-E5BE12DE2F06}.Debug|x86.Build.0 = Debug|Any CPU + {D22934D7-59B7-4779-AB59-E5BE12DE2F06}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D22934D7-59B7-4779-AB59-E5BE12DE2F06}.Release|Any CPU.Build.0 = Release|Any CPU + {D22934D7-59B7-4779-AB59-E5BE12DE2F06}.Release|x64.ActiveCfg = Release|Any CPU + {D22934D7-59B7-4779-AB59-E5BE12DE2F06}.Release|x64.Build.0 = Release|Any CPU + {D22934D7-59B7-4779-AB59-E5BE12DE2F06}.Release|x86.ActiveCfg = Release|Any CPU + {D22934D7-59B7-4779-AB59-E5BE12DE2F06}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -1540,11 +1541,11 @@ Global {47E089E3-E875-4045-9E58-C1223BE899E9} = {23500169-FC01-4D2B-A997-E7FAE2169FC0} {9D574E57-75A6-4965-AF23-ACE0BB9CD0B3} = {323C198D-A8C6-4EB0-8B79-72624275E35F} {E1D41A07-F468-4D13-8185-35F127230B17} = {46383371-8252-4598-9350-A97692851408} - {5D70E30D-E9A2-472B-9834-BDB9824F8DEB} = {323C198D-A8C6-4EB0-8B79-72624275E35F} {6113B579-C995-47F8-9AC1-4CC6EFDDD883} = {68D43DB1-DFC5-4F15-A2B4-6BA18B875F9E} {19639645-A115-4824-865F-5559DA8B892A} = {282CEF03-292F-4A49-83C6-997567D0FF5F} {3B41408A-CDFE-4EEE-9660-FE6755FD2075} = {323C198D-A8C6-4EB0-8B79-72624275E35F} {C53EAB34-1F66-48F8-88AB-226BE142D1CF} = {282CEF03-292F-4A49-83C6-997567D0FF5F} {469F8BD7-C2A7-4C5B-8280-095C7102E60E} = {323C198D-A8C6-4EB0-8B79-72624275E35F} + {D22934D7-59B7-4779-AB59-E5BE12DE2F06} = {323C198D-A8C6-4EB0-8B79-72624275E35F} EndGlobalSection EndGlobal diff --git a/tests/endtoend/AlphabeticalOrderer.cs b/tests/endtoend/AlphabeticalOrderer.cs index d4fb75af49..e33e70c7a9 100644 --- a/tests/endtoend/AlphabeticalOrderer.cs +++ b/tests/endtoend/AlphabeticalOrderer.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Xunit; using Xunit.Abstractions; using Xunit.Sdk; diff --git a/tests/endtoend/AuthFlow/AuthFlow.cs b/tests/endtoend/AuthFlow/AuthFlow.cs index 9fdbfbab21..1d79efebfc 100644 --- a/tests/endtoend/AuthFlow/AuthFlow.cs +++ b/tests/endtoend/AuthFlow/AuthFlow.cs @@ -1,5 +1,24 @@ -using EndToEnd.Tests; +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using HtmlAgilityPack; +using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using System.Text.RegularExpressions; using System.Web; using static RestAssured.Dsl; diff --git a/tests/endtoend/AuthFlow/CentralidpCompany.cs b/tests/endtoend/AuthFlow/CentralidpCompany.cs index 8524dec255..b4ef759055 100644 --- a/tests/endtoend/AuthFlow/CentralidpCompany.cs +++ b/tests/endtoend/AuthFlow/CentralidpCompany.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + namespace Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; public record CentralidpCompany( diff --git a/tests/endtoend/AuthFlow/DevMailApiRequests.cs b/tests/endtoend/AuthFlow/DevMailApiRequests.cs index 47c1f4c0d7..5f01188141 100644 --- a/tests/endtoend/AuthFlow/DevMailApiRequests.cs +++ b/tests/endtoend/AuthFlow/DevMailApiRequests.cs @@ -1,6 +1,25 @@ -using EndToEnd.Tests; +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using HtmlAgilityPack; using MimeKit; +using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using System.Text; using System.Web; using Xunit; diff --git a/tests/endtoend/AuthFlow/DevMailboxData.cs b/tests/endtoend/AuthFlow/DevMailboxData.cs index e7911a4ce5..9b4ca41418 100644 --- a/tests/endtoend/AuthFlow/DevMailboxData.cs +++ b/tests/endtoend/AuthFlow/DevMailboxData.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using System.Text.Json.Serialization; namespace Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; diff --git a/tests/endtoend/AuthFlow/EmailMessageData.cs b/tests/endtoend/AuthFlow/EmailMessageData.cs index 046764723b..f924103362 100644 --- a/tests/endtoend/AuthFlow/EmailMessageData.cs +++ b/tests/endtoend/AuthFlow/EmailMessageData.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using System.Text.Json.Serialization; namespace Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; diff --git a/tests/endtoend/AuthFlow/MailboxData.cs b/tests/endtoend/AuthFlow/MailboxData.cs index fff2ce9656..18304f43dd 100644 --- a/tests/endtoend/AuthFlow/MailboxData.cs +++ b/tests/endtoend/AuthFlow/MailboxData.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + namespace Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; public record MailboxData( diff --git a/tests/endtoend/AuthFlow/TempMailApiRequests.cs b/tests/endtoend/AuthFlow/TempMailApiRequests.cs index 4c1e164f97..8b462398ad 100644 --- a/tests/endtoend/AuthFlow/TempMailApiRequests.cs +++ b/tests/endtoend/AuthFlow/TempMailApiRequests.cs @@ -1,5 +1,24 @@ -using EndToEnd.Tests; +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using HtmlAgilityPack; +using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using System.Security.Cryptography; using System.Text; using System.Web; diff --git a/tests/endtoend/AuthFlow/Token.cs b/tests/endtoend/AuthFlow/Token.cs index 8cc49ff701..108a187868 100644 --- a/tests/endtoend/AuthFlow/Token.cs +++ b/tests/endtoend/AuthFlow/Token.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using System.Text.Json.Serialization; namespace Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; diff --git a/tests/endtoend/ConsoleWriter.cs b/tests/endtoend/ConsoleWriter.cs index 10c5a5cabe..4d52d4618f 100644 --- a/tests/endtoend/ConsoleWriter.cs +++ b/tests/endtoend/ConsoleWriter.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Xunit.Abstractions; namespace Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; diff --git a/tests/endtoend/CreateAppScenario/CreateNewTestAppScenario.cs b/tests/endtoend/CreateAppScenario/CreateNewTestAppScenario.cs index 4e3859a8c5..f2216151db 100644 --- a/tests/endtoend/CreateAppScenario/CreateNewTestAppScenario.cs +++ b/tests/endtoend/CreateAppScenario/CreateNewTestAppScenario.cs @@ -1,7 +1,26 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Castle.Core.Internal; -using EndToEnd.Tests; using FluentAssertions; using Org.Eclipse.TractusX.Portal.Backend.Apps.Service.ViewModels; +using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using Org.Eclipse.TractusX.Portal.Backend.Offers.Library.Models; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.DBAccess.Models; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Enums; @@ -96,7 +115,7 @@ public static IEnumerable GetDataEntries { yield return new object[] { t }; } - } + } } private static bool ValidateStorageOfAppDetailData(AppRequestModel newAppRequest, diff --git a/tests/endtoend/DataHandleHelper.cs b/tests/endtoend/DataHandleHelper.cs index f7719f72f8..dcb1fed10d 100644 --- a/tests/endtoend/DataHandleHelper.cs +++ b/tests/endtoend/DataHandleHelper.cs @@ -1,7 +1,26 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using System.Text.Json; using System.Text.Json.Serialization; -namespace EndToEnd.Tests; +namespace Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; public abstract class DataHandleHelper { diff --git a/tests/endtoend/EndToEnd.Tests.csproj b/tests/endtoend/EndToEnd.Tests.csproj index c07927639f..7574a3a87a 100644 --- a/tests/endtoend/EndToEnd.Tests.csproj +++ b/tests/endtoend/EndToEnd.Tests.csproj @@ -1,10 +1,30 @@ - + + + + Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests + Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests net7.0 enable enable - false 89b874aa-64fd-4b0b-906a-89beb21c09e6 @@ -12,7 +32,7 @@ - + @@ -27,6 +47,7 @@ all + diff --git a/tests/endtoend/EndToEndTestBase.cs b/tests/endtoend/EndToEndTestBase.cs index 3ba17c5dc6..c9c9413033 100644 --- a/tests/endtoend/EndToEndTestBase.cs +++ b/tests/endtoend/EndToEndTestBase.cs @@ -1,7 +1,26 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using Xunit.Abstractions; -namespace EndToEnd.Tests; +namespace Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; //prepare xUnit logging for every e2e test according to https://github.com/basdijkstra/rest-assured-net/wiki/Usage-Guide#logging-when-using-xunit public abstract class EndToEndTestBase diff --git a/tests/endtoend/InterfacePartnerHealthCheck/BpdmEndToEndTests.cs b/tests/endtoend/InterfacePartnerHealthCheck/BpdmEndToEndTests.cs index e8f3688fd7..ab75e62f13 100644 --- a/tests/endtoend/InterfacePartnerHealthCheck/BpdmEndToEndTests.cs +++ b/tests/endtoend/InterfacePartnerHealthCheck/BpdmEndToEndTests.cs @@ -1,6 +1,25 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Castle.Core.Internal; -using EndToEnd.Tests; using FluentAssertions; +using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using RestAssured.Response.Logging; using Xunit; using Xunit.Abstractions; diff --git a/tests/endtoend/InterfacePartnerHealthCheck/ClearinghouseEndToEndTests.cs b/tests/endtoend/InterfacePartnerHealthCheck/ClearinghouseEndToEndTests.cs index f8299f7de4..46ad2a3ec0 100644 --- a/tests/endtoend/InterfacePartnerHealthCheck/ClearinghouseEndToEndTests.cs +++ b/tests/endtoend/InterfacePartnerHealthCheck/ClearinghouseEndToEndTests.cs @@ -1,7 +1,26 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Castle.Core.Internal; -using EndToEnd.Tests; using FluentAssertions; using Org.Eclipse.TractusX.Portal.Backend.Clearinghouse.Library.Models; +using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.DBAccess.Models; using RestAssured.Response.Logging; using Xunit; diff --git a/tests/endtoend/InterfacePartnerHealthCheck/SdFactoryEndPointTests.cs b/tests/endtoend/InterfacePartnerHealthCheck/SdFactoryEndPointTests.cs index 03a20e43f5..8317016e4d 100644 --- a/tests/endtoend/InterfacePartnerHealthCheck/SdFactoryEndPointTests.cs +++ b/tests/endtoend/InterfacePartnerHealthCheck/SdFactoryEndPointTests.cs @@ -1,5 +1,24 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Castle.Core.Internal; -using EndToEnd.Tests; +using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using Org.Eclipse.TractusX.Portal.Backend.SdFactory.Library.Models; using RestAssured.Response.Logging; using Xunit; diff --git a/tests/endtoend/InterfacePartnerHealthCheck/WalletEndPointTests.cs b/tests/endtoend/InterfacePartnerHealthCheck/WalletEndPointTests.cs index e1b8673782..cb8434e9ff 100644 --- a/tests/endtoend/InterfacePartnerHealthCheck/WalletEndPointTests.cs +++ b/tests/endtoend/InterfacePartnerHealthCheck/WalletEndPointTests.cs @@ -1,5 +1,24 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Castle.Core.Internal; -using EndToEnd.Tests; +using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using RestAssured.Response.Logging; using Xunit; using Xunit.Abstractions; diff --git a/tests/endtoend/NotificationInitScenario/ModifyCoreUserRoleScenario.cs b/tests/endtoend/NotificationInitScenario/ModifyCoreUserRoleScenario.cs index 9c2f4aefe0..25d52b53d7 100644 --- a/tests/endtoend/NotificationInitScenario/ModifyCoreUserRoleScenario.cs +++ b/tests/endtoend/NotificationInitScenario/ModifyCoreUserRoleScenario.cs @@ -1,5 +1,24 @@ -using EndToEnd.Tests; +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using FluentAssertions; +using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.DBAccess.Models; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Enums; using RestAssured.Response.Logging; diff --git a/tests/endtoend/NotificationInitScenario/NotificationContent.cs b/tests/endtoend/NotificationInitScenario/NotificationContent.cs index babbbc2fd0..bd737a8689 100644 --- a/tests/endtoend/NotificationInitScenario/NotificationContent.cs +++ b/tests/endtoend/NotificationInitScenario/NotificationContent.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using System.Text.Json.Serialization; namespace Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; diff --git a/tests/endtoend/PortalHealthCheck/BaseDataLoadCheck.cs b/tests/endtoend/PortalHealthCheck/BaseDataLoadCheck.cs index eef5e04c25..b880cb5041 100644 --- a/tests/endtoend/PortalHealthCheck/BaseDataLoadCheck.cs +++ b/tests/endtoend/PortalHealthCheck/BaseDataLoadCheck.cs @@ -1,6 +1,25 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Castle.Core.Internal; -using EndToEnd.Tests; using FluentAssertions; +using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using RestAssured.Response.Logging; using Xunit; using Xunit.Abstractions; diff --git a/tests/endtoend/PortalHealthCheck/RegistrationHealthCheck.cs b/tests/endtoend/PortalHealthCheck/RegistrationHealthCheck.cs index 437d011c7f..04fb1ac6bf 100644 --- a/tests/endtoend/PortalHealthCheck/RegistrationHealthCheck.cs +++ b/tests/endtoend/PortalHealthCheck/RegistrationHealthCheck.cs @@ -1,5 +1,22 @@ -using Castle.Core.Internal; -using EndToEnd.Tests; +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using FluentAssertions; using Xunit; using Xunit.Abstractions; @@ -8,8 +25,7 @@ namespace Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; [Trait("Category", "PortalHC")] -[TestCaseOrderer("Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests.AlphabeticalOrderer", - "EndToEnd.Tests")] +[TestCaseOrderer("Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests.AlphabeticalOrderer", "EndToEnd.Tests")] [Collection("PortalHC")] public class RegistrationHealthCheck : EndToEndTestBase { diff --git a/tests/endtoend/RegistrationScenarios/BpdmContent.cs b/tests/endtoend/RegistrationScenarios/BpdmContent.cs index 5b98db9b4a..41452799fb 100644 --- a/tests/endtoend/RegistrationScenarios/BpdmContent.cs +++ b/tests/endtoend/RegistrationScenarios/BpdmContent.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Org.Eclipse.TractusX.Portal.Backend.Bpdm.Library.Models; using System.Text.Json.Serialization; diff --git a/tests/endtoend/RegistrationScenarios/RegistrationEndpointHelper.cs b/tests/endtoend/RegistrationScenarios/RegistrationEndpointHelper.cs index 98e93e5b8b..cbf5da7004 100644 --- a/tests/endtoend/RegistrationScenarios/RegistrationEndpointHelper.cs +++ b/tests/endtoend/RegistrationScenarios/RegistrationEndpointHelper.cs @@ -1,7 +1,26 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Castle.Core.Internal; -using EndToEnd.Tests; using FluentAssertions; using Org.Eclipse.TractusX.Portal.Backend.Administration.Service.Models; +using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using Org.Eclipse.TractusX.Portal.Backend.Framework.Models; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.DBAccess.Models; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Enums; diff --git a/tests/endtoend/RegistrationScenarios/RegistrationScenarios.cs b/tests/endtoend/RegistrationScenarios/RegistrationScenarios.cs index eba9f0fbf9..0434768b38 100644 --- a/tests/endtoend/RegistrationScenarios/RegistrationScenarios.cs +++ b/tests/endtoend/RegistrationScenarios/RegistrationScenarios.cs @@ -1,5 +1,24 @@ -using EndToEnd.Tests; +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using FluentAssertions; +using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Enums; using Xunit; using Xunit.Abstractions; diff --git a/tests/endtoend/ReportPortal.config.json b/tests/endtoend/ReportPortal.config.json index 5ab37b6bc7..a495970e5c 100644 --- a/tests/endtoend/ReportPortal.config.json +++ b/tests/endtoend/ReportPortal.config.json @@ -4,9 +4,7 @@ "server": { "url": "http://localhost:8080/api/v1", "project": "", - "authentication": { - "uuid": "" - } + "apiKey": "" }, "launch": { "name": "XUnit Demo Launch", diff --git a/tests/endtoend/Secrets.cs b/tests/endtoend/Secrets.cs index 7a9d24d6d9..58a8bad7ef 100644 --- a/tests/endtoend/Secrets.cs +++ b/tests/endtoend/Secrets.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Microsoft.Extensions.Configuration; namespace Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; diff --git a/tests/endtoend/ServiceAccountCUDScenarios/AdministrationEndpointHelper.cs b/tests/endtoend/ServiceAccountCUDScenarios/AdministrationEndpointHelper.cs index 8a23893e2f..4db4e8577e 100644 --- a/tests/endtoend/ServiceAccountCUDScenarios/AdministrationEndpointHelper.cs +++ b/tests/endtoend/ServiceAccountCUDScenarios/AdministrationEndpointHelper.cs @@ -1,6 +1,25 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Castle.Core.Internal; -using EndToEnd.Tests; using Org.Eclipse.TractusX.Portal.Backend.Administration.Service.Models; +using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using Org.Eclipse.TractusX.Portal.Backend.Framework.Models; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.DBAccess.Models; using Org.Eclipse.TractusX.Portal.Backend.Provisioning.Library.Enums; diff --git a/tests/endtoend/ServiceAccountCUDScenarios/ServiceAccountCUDScenarios.cs b/tests/endtoend/ServiceAccountCUDScenarios/ServiceAccountCUDScenarios.cs index 37646a16cb..e8b1a6ee64 100644 --- a/tests/endtoend/ServiceAccountCUDScenarios/ServiceAccountCUDScenarios.cs +++ b/tests/endtoend/ServiceAccountCUDScenarios/ServiceAccountCUDScenarios.cs @@ -1,6 +1,25 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Castle.Core.Internal; -using EndToEnd.Tests; using FluentAssertions; +using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.DBAccess.Models; using System.IdentityModel.Tokens.Jwt; using Xunit; @@ -21,13 +40,6 @@ public ServiceAccountCUDScenarios(ITestOutputHelper output) : base(output) { } - [Fact(DisplayName = "Service Account Get Access Token")] - private async Task GetAccessToken() // in order to just get token once, ensure that method name is alphabetically before other tests cases - { - var result = await AdministrationEndpointHelper.GetOperatorToken(); - result.Should().BeTrue("Could not get an access token for technical user."); - } - //Scenario - Create a new service account [Theory(DisplayName = "Service Account Creation")] [MemberData(nameof(GetDataEntries))] diff --git a/tests/endtoend/TechTokenRetriever.cs b/tests/endtoend/TechTokenRetriever.cs index 50e9887a8a..0eeaee59ad 100644 --- a/tests/endtoend/TechTokenRetriever.cs +++ b/tests/endtoend/TechTokenRetriever.cs @@ -1,8 +1,27 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using RestAssured.Response.Logging; using System.IdentityModel.Tokens.Jwt; using static RestAssured.Dsl; -namespace EndToEnd.Tests; +namespace Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; public static class TechTokenRetriever { diff --git a/tests/endtoend/TestDataHelper.cs b/tests/endtoend/TestDataHelper.cs index 9b60869b75..a285fd0cd7 100644 --- a/tests/endtoend/TestDataHelper.cs +++ b/tests/endtoend/TestDataHelper.cs @@ -1,6 +1,25 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Castle.Core.Internal; -using EndToEnd.Tests; using Org.Eclipse.TractusX.Portal.Backend.Apps.Service.ViewModels; +using Org.Eclipse.TractusX.Portal.Backend.EndToEnd.Tests; using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Enums; using Org.Eclipse.TractusX.Portal.Backend.Registration.Service.Model; using System.Text.Json; diff --git a/tests/endtoend/TestDataModelCreateApp.cs b/tests/endtoend/TestDataModelCreateApp.cs index 3743428f3a..78f09cd82e 100644 --- a/tests/endtoend/TestDataModelCreateApp.cs +++ b/tests/endtoend/TestDataModelCreateApp.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Newtonsoft.Json; using Org.Eclipse.TractusX.Portal.Backend.Apps.Service.ViewModels; using System.Text.Json.Serialization; diff --git a/tests/endtoend/TestDataRegistrationModel.cs b/tests/endtoend/TestDataRegistrationModel.cs index 6686e274f9..50d0afccba 100644 --- a/tests/endtoend/TestDataRegistrationModel.cs +++ b/tests/endtoend/TestDataRegistrationModel.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Enums; using Org.Eclipse.TractusX.Portal.Backend.Registration.Service.Model; using System.Text.Json.Serialization; diff --git a/tests/endtoend/TestResources.cs b/tests/endtoend/TestResources.cs index 03499b5d42..512c120185 100644 --- a/tests/endtoend/TestResources.cs +++ b/tests/endtoend/TestResources.cs @@ -1,3 +1,22 @@ +/******************************************************************************** + * Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + ********************************************************************************/ + using Microsoft.Extensions.Configuration; using System.Runtime.CompilerServices;