From 9bb24b723e0bd771bf9c7d1826af9582dfcb8f59 Mon Sep 17 00:00:00 2001 From: Sumanth K B Date: Fri, 7 Jul 2023 15:00:00 +0530 Subject: [PATCH] IT Changes --- .../NPM/ComponentCreatorInitial.cs | 10 +++++----- .../NPM/ComponentCreatorWithUpdatedComponents.cs | 11 ++++++----- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/SW360IntegrationTest/NPM/ComponentCreatorInitial.cs b/src/SW360IntegrationTest/NPM/ComponentCreatorInitial.cs index d71967c4..0a2c194b 100644 --- a/src/SW360IntegrationTest/NPM/ComponentCreatorInitial.cs +++ b/src/SW360IntegrationTest/NPM/ComponentCreatorInitial.cs @@ -143,12 +143,12 @@ public async Task TestReleaseCreation_ClearingStateAsNewClearing() httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(TestConstant.TestSw360TokenType, TestConstant.TestSw360TokenValue); - string expectedname = "rxjs"; - string expectedversion = "6.5.4"; - string expecteddownloadurl = "https://github.com/reactivex/rxjs.git"; - string expectedexternalid = "pkg:npm/rxjs@6.5.4"; + string expectedname = "zone.js"; + string expectedversion = "0.10.3"; + string expecteddownloadurl = "https://github.com/angular/angular.git"; + string expectedexternalid = "pkg:npm/zone.js@0.10.3"; //url formation for retrieving component details - string url = TestConstant.Sw360ReleaseApi + TestConstant.componentNameUrl + "rxjs"; + string url = TestConstant.Sw360ReleaseApi + TestConstant.componentNameUrl + "zone.js"; string responseBody = await httpClient.GetStringAsync(url);//GET method var responseData = JsonConvert.DeserializeObject(responseBody); string urlofreleaseid = responseData.Embedded.Sw360Releases[0].Links.Self.Href; diff --git a/src/SW360IntegrationTest/NPM/ComponentCreatorWithUpdatedComponents.cs b/src/SW360IntegrationTest/NPM/ComponentCreatorWithUpdatedComponents.cs index 632a6929..caf73623 100644 --- a/src/SW360IntegrationTest/NPM/ComponentCreatorWithUpdatedComponents.cs +++ b/src/SW360IntegrationTest/NPM/ComponentCreatorWithUpdatedComponents.cs @@ -14,6 +14,7 @@ using System.IO; using System.Net.Http; using System.Net.Http.Headers; +using System.Security.Policy; using System.Threading.Tasks; using TestUtilities; @@ -145,12 +146,12 @@ public async Task TestReleaseCreation_ClearingStateAsNewClearing() httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(TestConstant.TestSw360TokenType, TestConstant.TestSw360TokenValue); - string expectedname = "rxjs"; - string expectedversion = "6.5.4"; - string expecteddownloadurl = "https://github.com/reactivex/rxjs.git"; - string expectedexternalid = "pkg:npm/rxjs@6.5.4"; + string expectedname = "zone.js"; + string expectedversion = "0.10.3"; + string expecteddownloadurl = "https://github.com/angular/angular.git"; + string expectedexternalid = "pkg:npm/zone.js@0.10.3"; //url formation for retrieving component details - string url = TestConstant.Sw360ReleaseApi + TestConstant.componentNameUrl + "rxjs"; + string url = TestConstant.Sw360ReleaseApi + TestConstant.componentNameUrl + "zone.js"; string responseBody = await httpClient.GetStringAsync(url);//GET method var responseData = JsonConvert.DeserializeObject(responseBody); string urlofreleaseid = responseData.Embedded.Sw360Releases[0].Links.Self.Href;