-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sumanth K B
committed
Jul 7, 2023
1 parent
8cc6435
commit 9bb24b7
Showing
2 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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; | ||
|