Skip to content

Commit 0a0e304

Browse files
Add project files.
1 parent 86fff7e commit 0a0e304

15 files changed

+1408
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
8+
<IsPackable>false</IsPackable>
9+
<IsTestProject>true</IsTestProject>
10+
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<PackageReference Include="FluentAssertions" Version="6.12.1" />
14+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
15+
<PackageReference Include="Moq" Version="4.20.72" />
16+
<PackageReference Include="MSTest.TestAdapter" Version="3.0.4" />
17+
<PackageReference Include="MSTest.TestFramework" Version="3.0.4" />
18+
<PackageReference Include="coverlet.collector" Version="6.0.0" />
19+
</ItemGroup>
20+
21+
<ItemGroup>
22+
<ProjectReference Include="..\Skyline.DataMiner.CICD.Tools.GitHubToCatalogYaml\CICD.Tools.GitHubToCatalogYaml.csproj" />
23+
</ItemGroup>
24+
25+
</Project>

CICD.Tools.GitHubToCatalogYamlTests/CatalogManagerTests.cs

+447
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using Microsoft.VisualStudio.TestTools.UnitTesting;
2+
3+
using Skyline.DataMiner.CICD.Tools.GitHubToCatalogYaml;
4+
5+
namespace Skyline.DataMiner.CICD.Tools.GitHubToCatalogYaml.Tests
6+
{
7+
[TestClass()]
8+
public class CleanTitleTests
9+
{
10+
[DataTestMethod()]
11+
[DataRow("SkylineCommunications/SLC-AS-MediaOps-Apps", "MediaOps-Apps", "automationscript")]
12+
[DataRow("SLC-AS-MediaOps-Apps", "MediaOps-Apps", "automationscript")]
13+
[DataRow("SkylineCommunications/PCKTV-AS-RegressionTests", "RegressionTests", "automationscript")]
14+
[DataRow("SkylineCommunications/RBM-AS-Playout", "Playout", "automationscript")]
15+
[DataRow("SkylineCommunications/SLC-Doc-Vodafone-Deutschland-GmbH", "Vodafone-Deutschland-GmbH", "documentation")]
16+
[DataRow("SkylineCommunications/FOXA-GQIDS-GetAppearTVData", "GetAppearTVData", "gqidatasource")]
17+
[DataRow("SkylineCommunications/YLE-C-Avid-iNewsOrder-Ingest", "Avid-iNewsOrder-Ingest", "connector")]
18+
[DataRow("SkylineCommunications/ngx-dwa-theme-creation-helper", "ngx-dwa-theme-creation-helper", null)]
19+
public void CleanTitleTestHappy(string input, string expectedTitle, string expectedType)
20+
{
21+
var ct = new CleanTitle(input);
22+
Assert.AreEqual(expectedTitle, ct.Value, "ct.Value");
23+
Assert.AreEqual(expectedType, ct.FoundItemType, "ct.FoundItemType");
24+
}
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.9.34723.18
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CICD.Tools.GitHubToCatalogYaml", "Skyline.DataMiner.CICD.Tools.GitHubToCatalogYaml\CICD.Tools.GitHubToCatalogYaml.csproj", "{47811D18-BA41-477E-B874-A1661F6358DB}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CICD.Tools.GitHubToCatalogYamlTests", "CICD.Tools.GitHubToCatalogYamlTests\CICD.Tools.GitHubToCatalogYamlTests.csproj", "{8444F1AA-DC65-405C-9E00-72FED3E80171}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Release|Any CPU = Release|Any CPU
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{47811D18-BA41-477E-B874-A1661F6358DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{47811D18-BA41-477E-B874-A1661F6358DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{47811D18-BA41-477E-B874-A1661F6358DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{47811D18-BA41-477E-B874-A1661F6358DB}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{8444F1AA-DC65-405C-9E00-72FED3E80171}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{8444F1AA-DC65-405C-9E00-72FED3E80171}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{8444F1AA-DC65-405C-9E00-72FED3E80171}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{8444F1AA-DC65-405C-9E00-72FED3E80171}.Release|Any CPU.Build.0 = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {9917116C-223C-4616-A7E4-35C15F3FA878}
30+
EndGlobalSection
31+
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<OutputType>Exe</OutputType>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<PackAsTool>true</PackAsTool>
6+
<ToolCommandName>github-to-catalog-yaml</ToolCommandName>
7+
<ImplicitUsings>disable</ImplicitUsings>
8+
<Nullable>disable</Nullable>
9+
<AssemblyName>Skyline.DataMiner.CICD.Tools.GitHubToCatalogYaml</AssemblyName>
10+
<RootNamespace>Skyline.DataMiner.CICD.Tools.GitHubToCatalogYaml</RootNamespace>
11+
<PackageVersion>1.0.1-alpha1</PackageVersion>
12+
<Version>1.0.1</Version>
13+
<PackageTags>Skyline;DataMiner</PackageTags>
14+
<PackageProjectUrl>https://skyline.be</PackageProjectUrl>
15+
<PackageReadmeFile>README.md</PackageReadmeFile>
16+
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
17+
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
18+
<PackageIcon>Icon.png</PackageIcon>
19+
<GenerateDocumentationFile>True</GenerateDocumentationFile>
20+
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
21+
<Authors>SkylineCommunications</Authors>
22+
<Company>Skyline Communications</Company>
23+
<Description>Extends or creates a catalog.yml file with data retrieved from GitHub</Description>
24+
</PropertyGroup>
25+
26+
<ItemGroup>
27+
<None Include="README.md" Pack="true" PackagePath="" />
28+
<None Include="LICENSE.txt" Pack="true" PackagePath="" />
29+
<None Include="nuget\Icon.png" Pack="true" PackagePath="" />
30+
</ItemGroup>
31+
32+
<ItemGroup>
33+
<PackageReference Include="Serilog" Version="4.0.0" />
34+
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
35+
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
36+
<PackageReference Include="Skyline.DataMiner.CICD.FileSystem" Version="1.0.6" />
37+
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
38+
<PackageReference Include="YamlDotNet" Version="16.1.3" />
39+
</ItemGroup>
40+
</Project>

0 commit comments

Comments
 (0)