Skip to content

Commit

Permalink
Merge branch 'devsbom_062023' of https://github.com/siemens/continuou…
Browse files Browse the repository at this point in the history
…s-clearing into devsbom_062023
  • Loading branch information
karthika-g committed Jul 7, 2023
2 parents 01f2a89 + 9bb24b7 commit ece5ce5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/SW360IntegrationTest/NPM/ComponentCreatorInitial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]";
string expectedname = "zone.js";
string expectedversion = "0.10.3";
string expecteddownloadurl = "https://github.com/angular/angular.git";
string expectedexternalid = "pkg:npm/[email protected]";
//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<ReleaseIdOfComponent>(responseBody);
string urlofreleaseid = responseData.Embedded.Sw360Releases[0].Links.Self.Href;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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/[email protected]";
string expectedname = "zone.js";
string expectedversion = "0.10.3";
string expecteddownloadurl = "https://github.com/angular/angular.git";
string expectedexternalid = "pkg:npm/[email protected]";
//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<ReleaseIdOfComponent>(responseBody);
string urlofreleaseid = responseData.Embedded.Sw360Releases[0].Links.Self.Href;
Expand Down

0 comments on commit ece5ce5

Please sign in to comment.