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 5, 2025
1 parent 69603f2 commit e8be609
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 41 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 Production_FossologyURL = "automation.fossology";
public const string Stage_FossologyURL = "stage.fossology";
public const string Cdx_ProductionFossologyURL = "automation.fossology";
public const string Cdx_StageFossologyURL = "stage.fossology";

public static Dictionary<string, string> PurlCheck()
{
Expand Down
4 changes: 2 additions & 2 deletions src/LCT.SW360PackageCreator/CreatorValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.Production_FossologyURL.ToLower();
string stageFossUrl = Dataconstant.Stage_FossologyURL.ToLower();
string prodFossUrl = Dataconstant.Cdx_ProductionFossologyURL.ToLower();
string stageFossUrl = Dataconstant.Cdx_StageFossologyURL.ToLower();

if (string.IsNullOrEmpty(appSettings.SW360.Fossology.URL))
{
Expand Down
48 changes: 11 additions & 37 deletions src/LCT.SW360PackageCreator/Model/ReleasesAllDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,78 +5,52 @@
// --------------------------------------------------------------------------------------------------------------------

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LCT.SW360PackageCreator.Model
{
public class ReleasesAllDetails
{
[ExcludeFromCodeCoverage]

public Embedded _embedded { get; set; }
public Page page { get; set; }
public class Embedded
{
[JsonProperty("sw360:releases")]
public List<Sw360Release> sw360releases { get; set; }

[JsonProperty("sw360:attachments")]
public List<List<Attachment>> sw360attachments { get; set; }

}
public class Attachment
{
public string filename { get; set; }

}



public string filename { get; set; }

}
public class Links
{

public Self self { get; set; }


}


public Embedded _embedded { get; set; }

public Page page { get; set; }

}
public class Self
{
public string href { get; set; }
}

public class Sw360Component
{
public string href { get; set; }
}

}
public class Sw360Release
{
public string name { get; set; }
public string version { get; set; }

public string clearingState { get; set; }

public string version { get; set; }
public string clearingState { get; set; }
public Links _links { get; set; }
public Embedded _embedded { get; set; }


}

}
public class Page
{

public int totalPages { get; set; }

}
}
}

0 comments on commit e8be609

Please sign in to comment.