Skip to content

Commit

Permalink
updated requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ragavareddychalapala committed Feb 6, 2025
1 parent ec61d5f commit 7638944
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/LCT.Common/Constants/Dataconstant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public static class Dataconstant
public const string Cdx_Siemensfilename = "internal:siemens:clearing:siemens:filename";
public const string Cdx_SiemensDirect = "internal:siemens:clearing:siemens:direct";
public const string Cdx_ExcludeComponent = "internal:siemens:clearing:sw360:exclude";
public const string Cdx_ProductionFossologyURL = "automation.fossology";
public const string Cdx_StageFossologyURL = "stage.fossology";
public const string ProductionFossologyURL = "automation.fossology";
public const string StageFossologyURL = "stage.fossology";

public static Dictionary<string, string> PurlCheck()
{
Expand Down
18 changes: 9 additions & 9 deletions src/LCT.SW360PackageCreator/CreatorValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static class CreatorValidator
private static IEnvironmentHelper environmentHelper;
public static async Task<int> ValidateAppSettings(CommonAppSettings appSettings, ISw360ProjectService sw360ProjectService, ProjectReleases projectReleases)
{
string sw360ProjectName = await sw360ProjectService.GetProjectNameByProjectIDFromSW360(appSettings.SW360.ProjectID, appSettings.SW360.ProjectName,projectReleases);
string sw360ProjectName = await sw360ProjectService.GetProjectNameByProjectIDFromSW360(appSettings.SW360.ProjectID, appSettings.SW360.ProjectName, projectReleases);

if (string.IsNullOrEmpty(sw360ProjectName))
{
Expand All @@ -60,7 +60,7 @@ public static async Task TriggerFossologyValidation(CommonAppSettings appSetting
ISW360CommonService sw360CommonService = new SW360CommonService(sW360ApicommunicationFacade);
ISw360CreatorService sw360CreatorService = new Sw360CreatorService(sW360ApicommunicationFacade, sw360CommonService);
ISW360Service sw360Service = new Sw360Service(sW360ApicommunicationFacade, sw360CommonService, environmentHelper);

try
{
string page = "0";
Expand Down Expand Up @@ -106,13 +106,13 @@ public static async Task TriggerFossologyValidation(CommonAppSettings appSetting
var releaseId = CommonHelper.GetSubstringOfLastOccurance(releaseUrl, "/");
string sw360link = $"{validRelease.Name}:{validRelease.Version}:{appSettings.SW360.URL}{ApiConstant.Sw360ReleaseUrlApiSuffix}" +
$"{releaseId}#/tab-Summary";
FossTriggerStatus fossResult = await sw360CreatorService.TriggerFossologyProcessForValidation(releaseId, sw360link);
FossTriggerStatus fossResult = await sw360CreatorService.TriggerFossologyProcessForValidation(releaseId, sw360link);
if (!string.IsNullOrEmpty(fossResult?.Links?.Self?.Href))
{
Logger.Logger.Log(null, Level.Info, $"SW360 Fossology Process validation successfull!!", null);
}
{
Logger.Logger.Log(null, Level.Info, $"SW360 Fossology Process validation successfull!!", null);
}
}

}
catch (AggregateException ex)
{
Expand All @@ -124,8 +124,8 @@ public static async Task TriggerFossologyValidation(CommonAppSettings appSetting
public static async Task<bool> FossologyUrlValidation(CommonAppSettings appSettings, HttpClient client, IEnvironmentHelper environmentHelper)
{
string url = appSettings.SW360.Fossology.URL.ToLower();
string prodFossUrl = Dataconstant.Cdx_ProductionFossologyURL.ToLower();
string stageFossUrl = Dataconstant.Cdx_StageFossologyURL.ToLower();
string prodFossUrl = Dataconstant.ProductionFossologyURL.ToLower();
string stageFossUrl = Dataconstant.StageFossologyURL.ToLower();

if (string.IsNullOrEmpty(appSettings.SW360.Fossology.URL))
{
Expand Down

0 comments on commit 7638944

Please sign in to comment.