Justin Kotalik
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
25 changed files with
32 additions and
40 deletions
-
test/E2ETest/TyeBuildTests.Dockerfile.cs
-
test/E2ETest/TyeBuildTests.cs
-
test/E2ETest/TyeGenerateTests.cs
-
test/E2ETest/TyeInitTests.cs
-
test/E2ETest/TyePurgeTests.cs
-
test/E2ETest/TyeRunTests.cs
-
test/Test.Infrastructure/ConditionalFactAttribute.cs
-
test/Test.Infrastructure/ConditionalFactDiscoverer.cs
-
test/Test.Infrastructure/ConditionalTheoryAttribute.cs
-
test/Test.Infrastructure/ConditionalTheoryDiscoverer.cs
-
test/Test.Infrastructure/DockerAssert.cs
-
test/Test.Infrastructure/EqualityYamlNodeVisitor.cs
-
test/Test.Infrastructure/ITestCondition.cs
-
test/Test.Infrastructure/RetryHandler.cs
-
test/Test.Infrastructure/SkipIfDockerNotRunningAttribute.cs
-
test/Test.Infrastructure/SkipOnLinuxAttribute.cs
-
test/Test.Infrastructure/SkippedTestCase.cs
-
test/Test.Infrastructure/Test.Infrastructure.csproj
-
test/Test.Infrastructure/TestHelpers.cs
-
test/Test.Infrastructure/TestMethodExtensions.cs
-
test/Test.Infrastructure/TestOutputLogEventSink.cs
-
test/Test.Infrastructure/TyeAssert.cs
-
test/Test.Infrastructure/YamlAssert.cs
-
test/UnitTests/ApplicationFactoryTests.cs
-
test/UnitTests/TyeDeserializationTests.cs
|
|
|
@ -6,9 +6,9 @@ using System.IO; |
|
|
|
using System.Linq; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.Tye; |
|
|
|
using Test.Infrastucture; |
|
|
|
using Test.Infrastructure; |
|
|
|
using Xunit; |
|
|
|
using static Test.Infrastucture.TestHelpers; |
|
|
|
using static Test.Infrastructure.TestHelpers; |
|
|
|
|
|
|
|
namespace E2ETest |
|
|
|
{ |
|
|
|
|
|
|
|
@ -5,9 +5,9 @@ |
|
|
|
using System.IO; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.Tye; |
|
|
|
using Test.Infrastucture; |
|
|
|
using Test.Infrastructure; |
|
|
|
using Xunit.Abstractions; |
|
|
|
using static Test.Infrastucture.TestHelpers; |
|
|
|
using static Test.Infrastructure.TestHelpers; |
|
|
|
|
|
|
|
namespace E2ETest |
|
|
|
{ |
|
|
|
|
|
|
|
@ -6,10 +6,10 @@ using System; |
|
|
|
using System.IO; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.Tye; |
|
|
|
using Test.Infrastucture; |
|
|
|
using Test.Infrastructure; |
|
|
|
using Xunit; |
|
|
|
using Xunit.Abstractions; |
|
|
|
using static Test.Infrastucture.TestHelpers; |
|
|
|
using static Test.Infrastructure.TestHelpers; |
|
|
|
|
|
|
|
namespace E2ETest |
|
|
|
{ |
|
|
|
|
|
|
|
@ -6,12 +6,12 @@ using System; |
|
|
|
using System.IO; |
|
|
|
using Microsoft.Tye; |
|
|
|
using Microsoft.Tye.ConfigModel; |
|
|
|
using Test.Infrastucture; |
|
|
|
using Test.Infrastructure; |
|
|
|
using Xunit; |
|
|
|
using Xunit.Abstractions; |
|
|
|
using YamlDotNet.Serialization; |
|
|
|
using YamlDotNet.Serialization.NamingConventions; |
|
|
|
using static Test.Infrastucture.TestHelpers; |
|
|
|
using static Test.Infrastructure.TestHelpers; |
|
|
|
|
|
|
|
namespace E2ETest |
|
|
|
{ |
|
|
|
|
|
|
|
@ -11,10 +11,10 @@ using System.Threading.Tasks; |
|
|
|
using Microsoft.Tye; |
|
|
|
using Microsoft.Tye.Hosting; |
|
|
|
using Microsoft.Tye.Hosting.Model; |
|
|
|
using Test.Infrastucture; |
|
|
|
using Test.Infrastructure; |
|
|
|
using Xunit; |
|
|
|
using Xunit.Abstractions; |
|
|
|
using static Test.Infrastucture.TestHelpers; |
|
|
|
using static Test.Infrastructure.TestHelpers; |
|
|
|
|
|
|
|
namespace E2ETest |
|
|
|
{ |
|
|
|
|
|
|
|
@ -15,10 +15,10 @@ using Microsoft.Tye; |
|
|
|
using Microsoft.Tye.Hosting; |
|
|
|
using Microsoft.Tye.Hosting.Model; |
|
|
|
using Microsoft.Tye.Hosting.Model.V1; |
|
|
|
using Test.Infrastucture; |
|
|
|
using Test.Infrastructure; |
|
|
|
using Xunit; |
|
|
|
using Xunit.Abstractions; |
|
|
|
using static Test.Infrastucture.TestHelpers; |
|
|
|
using static Test.Infrastructure.TestHelpers; |
|
|
|
|
|
|
|
namespace E2ETest |
|
|
|
{ |
|
|
|
|
|
|
|
@ -6,10 +6,10 @@ using System; |
|
|
|
using Xunit; |
|
|
|
using Xunit.Sdk; |
|
|
|
|
|
|
|
namespace Test.Infrastucture |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] |
|
|
|
[XunitTestCaseDiscoverer("E2ETest." + nameof(ConditionalFactDiscoverer), "Microsoft.Tye.E2ETest")] |
|
|
|
[XunitTestCaseDiscoverer("Test.Infrastructure." + nameof(ConditionalFactDiscoverer), "Test.Infrastructure")] |
|
|
|
public class ConditionalFactAttribute : FactAttribute |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
@ -6,7 +6,7 @@ using Xunit.Abstractions; |
|
|
|
using Xunit.Sdk; |
|
|
|
|
|
|
|
// Do not change this namespace without changing the usage in ConditionalFactAttribute
|
|
|
|
namespace Test.Infrastucture |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
internal class ConditionalFactDiscoverer : FactDiscoverer |
|
|
|
{ |
|
|
|
|
|
|
|
@ -6,10 +6,10 @@ using System; |
|
|
|
using Xunit; |
|
|
|
using Xunit.Sdk; |
|
|
|
|
|
|
|
namespace E2ETest |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)] |
|
|
|
[XunitTestCaseDiscoverer("E2ETest." + nameof(ConditionalTheoryDiscoverer), "Microsoft.Tye.E2ETest")] |
|
|
|
[XunitTestCaseDiscoverer("Test.Infrastructure." + nameof(ConditionalTheoryDiscoverer), "Test.Infrastructure")] |
|
|
|
public class ConditionalTheoryAttribute : TheoryAttribute |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
@ -3,11 +3,10 @@ |
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
using Test.Infrastucture; |
|
|
|
using Xunit.Abstractions; |
|
|
|
using Xunit.Sdk; |
|
|
|
|
|
|
|
namespace E2ETest |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
internal class ConditionalTheoryDiscoverer : TheoryDiscoverer |
|
|
|
{ |
|
|
|
|
|
|
|
@ -11,7 +11,7 @@ using System.Threading.Tasks; |
|
|
|
using Xunit.Abstractions; |
|
|
|
using Xunit.Sdk; |
|
|
|
|
|
|
|
namespace Test.Infrastucture |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
public static class DockerAssert |
|
|
|
{ |
|
|
|
|
|
|
|
@ -7,7 +7,7 @@ using System.CommandLine; |
|
|
|
using Tye.Serialization; |
|
|
|
using YamlDotNet.RepresentationModel; |
|
|
|
|
|
|
|
namespace E2ETest |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
public class EqualityYamlNodeVisitor |
|
|
|
{ |
|
|
|
|
|
|
|
@ -2,7 +2,7 @@ |
|
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
|
namespace Test.Infrastucture |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
public interface ITestCondition |
|
|
|
{ |
|
|
|
|
|
|
|
@ -8,7 +8,7 @@ using System.Net.Http; |
|
|
|
using System.Threading; |
|
|
|
using System.Threading.Tasks; |
|
|
|
|
|
|
|
namespace Test.Infrastucture |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
public class RetryHandler : DelegatingHandler |
|
|
|
{ |
|
|
|
|
|
|
|
@ -5,7 +5,7 @@ |
|
|
|
using System; |
|
|
|
using Microsoft.Tye; |
|
|
|
|
|
|
|
namespace Test.Infrastucture |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly)] |
|
|
|
public class SkipIfDockerNotRunningAttribute : Attribute, ITestCondition |
|
|
|
|
|
|
|
@ -5,7 +5,7 @@ |
|
|
|
using System; |
|
|
|
using System.Runtime.InteropServices; |
|
|
|
|
|
|
|
namespace Test.Infrastucture |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly)] |
|
|
|
internal class SkipOnLinuxAttribute : Attribute, ITestCondition |
|
|
|
|
|
|
|
@ -6,7 +6,7 @@ using System; |
|
|
|
using Xunit.Abstractions; |
|
|
|
using Xunit.Sdk; |
|
|
|
|
|
|
|
namespace Test.Infrastucture |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
public class SkippedTestCase : XunitTestCase |
|
|
|
{ |
|
|
|
|
|
|
|
@ -6,13 +6,6 @@ |
|
|
|
<TestRunnerName>XUnit</TestRunnerName> |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
<ProjectReference Include="..\..\src\Microsoft.Tye.Hosting\Microsoft.Tye.Hosting.csproj" /> |
|
|
|
<ProjectReference Include="..\..\src\Microsoft.Tye.Core\Microsoft.Tye.Core.csproj" /> |
|
|
|
<ProjectReference Include="..\..\src\tye\tye.csproj" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
<ProjectReference Include="..\..\src\Microsoft.Tye.Hosting\Microsoft.Tye.Hosting.csproj" /> |
|
|
|
<ProjectReference Include="..\..\src\Microsoft.Tye.Core\Microsoft.Tye.Core.csproj" /> |
|
|
|
|
|
|
|
@ -14,7 +14,7 @@ using Microsoft.Tye.Hosting.Model; |
|
|
|
using Xunit; |
|
|
|
using Microsoft.Tye; |
|
|
|
|
|
|
|
namespace Test.Infrastucture |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
public static class TestHelpers |
|
|
|
{ |
|
|
|
|
|
|
|
@ -6,7 +6,7 @@ using System.Linq; |
|
|
|
using Xunit.Abstractions; |
|
|
|
using Xunit.Sdk; |
|
|
|
|
|
|
|
namespace Test.Infrastucture |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
public static class TestMethodExtensions |
|
|
|
{ |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ using Serilog.Core; |
|
|
|
using Serilog.Events; |
|
|
|
using Xunit.Abstractions; |
|
|
|
|
|
|
|
namespace Test.Infrastucture |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
public class TestOutputLogEventSink : ILogEventSink, IConsole, IStandardStreamWriter |
|
|
|
{ |
|
|
|
|
|
|
|
@ -6,7 +6,7 @@ using System.Linq; |
|
|
|
using Microsoft.Tye.ConfigModel; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace Test.Infrastucture |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
public static class TyeAssert |
|
|
|
{ |
|
|
|
|
|
|
|
@ -6,7 +6,7 @@ using Xunit; |
|
|
|
using Xunit.Abstractions; |
|
|
|
using YamlDotNet.RepresentationModel; |
|
|
|
|
|
|
|
namespace E2ETest |
|
|
|
namespace Test.Infrastructure |
|
|
|
{ |
|
|
|
public static class YamlAssert |
|
|
|
{ |
|
|
|
|
|
|
|
@ -2,7 +2,7 @@ |
|
|
|
using System.Linq; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.Tye; |
|
|
|
using Test.Infrastucture; |
|
|
|
using Test.Infrastructure; |
|
|
|
using Xunit; |
|
|
|
using Xunit.Abstractions; |
|
|
|
|
|
|
|
|
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
using System.IO; |
|
|
|
using System.Linq; |
|
|
|
using Microsoft.Tye.ConfigModel; |
|
|
|
using Test.Infrastucture; |
|
|
|
using Test.Infrastructure; |
|
|
|
using Tye; |
|
|
|
using Tye.Serialization; |
|
|
|
using Xunit; |
|
|
|
|