Skip to content

Commit

Permalink
reorganize dotnetcore tests to reflect runtime versions installed in …
Browse files Browse the repository at this point in the history
…Azure
  • Loading branch information
watashiSHUN committed Sep 1, 2017
1 parent 348f894 commit 68200bc
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 20 deletions.
41 changes: 26 additions & 15 deletions Kudu.FunctionalTests/GitDeploymentTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,57 +376,68 @@ public void PushAndDeployPreviewMvc5()
}

[KuduXunitTestClass]
public class AspNetCoreRC3CliWithLibTests : GitDeploymentTests
public class AspNetCore2VS17WithLibTests : GitDeploymentTests
{
[Fact]
[KuduXunitTest(PrivateOnly = true)]
public void PushAndDeployAspNetCoreRC3CliWithLib()
public void PushAndDeployAspNetCore2VS17WithLib()
{
PushAndDeployApps("AspNetCoreRC3CliWithLib", "master", "MvcApp", HttpStatusCode.OK, "Deployment successful");
PushAndDeployApps("AspNetCore2.0.0VS17WithLib", "master", "DotNetCore200", HttpStatusCode.OK, "Deployment successful");
}
}

[KuduXunitTestClass]
public class AspNetCore2CliWithLibTests : GitDeploymentTests
public class AspNetCore10VS17WithLibTests : GitDeploymentTests
{
[Fact]
[KuduXunitTest(PrivateOnly = true)]
public void PushAndDeployAspNetCore2CliWithLib()
public void PushAndDeployAspNetCore10VS17WithLib()
{
PushAndDeployApps("AspNetCore2.0CliWithLib", "master", "lib success", HttpStatusCode.OK, "Deployment successful");
PushAndDeployApps("AspNetCore1.0.0VS17WithLib", "master", "DotNetCore100", HttpStatusCode.OK, "Deployment successful");
}
}

[KuduXunitTestClass]
public class AspNetCoreRC4WebApiVsSlnTests : GitDeploymentTests
public class AspNetCore11VS17WithLibTests : GitDeploymentTests
{
[Fact]
[KuduXunitTest(PrivateOnly = true)]
public void PushAndDeployAspNetCoreRC4WebApiVsSln()
public void PushAndDeployAspNetCore11VS17WithLib()
{
PushAndDeployApps("AspNetCoreRC4WebApiVsSln", "master", "[\"classlibrary\",\"netstandard\"]", HttpStatusCode.OK, "Deployment successful", resourcePath: "/api/values");
PushAndDeployApps("AspNetCore1.1.0VS17WithLib", "master", "DotNetCore110", HttpStatusCode.OK, "Deployment successful");
}
}

[KuduXunitTestClass]
public class AspNetCore2CliWithLibTests : GitDeploymentTests
{
[Fact]
[KuduXunitTest(PrivateOnly = true)]
public void PushAndDeployAspNetCore2CliWithLib()
{
PushAndDeployApps("AspNetCore2.0CliWithLib", "master", "lib success", HttpStatusCode.OK, "Deployment successful");
}
}

[KuduXunitTestClass]
public class AspNetCoreYeomanProjectTest : GitDeploymentTests
public class AspNetCore2CliTests : GitDeploymentTests
{
[Fact]
[KuduXunitTest(PrivateOnly = true)]
public void PushAndDeployAspNetCoreYeomanProject()
public void PushAndDeployAspNetCore2Cli()
{
PushAndDeployApps("AspNetCoreYeomanProject", "master", "[\"value1\",\"value2\"]", HttpStatusCode.OK, "Deployment successful", resourcePath: "/api/values");
PushAndDeployApps("AspNetCore2.0.0Cli", "master", "Hello World!", HttpStatusCode.OK, "Deployment successful");
}
}

[KuduXunitTestClass]
public class AspNetCoreRC4WebApiCliTests : GitDeploymentTests
public class AspNetCoreRC4WebApiVsSlnTests : GitDeploymentTests
{
[Fact]
[KuduXunitTest(PrivateOnly = true)]
public void PushAndDeployAspNetCoreRC4WebApiCli()
public void PushAndDeployAspNetCoreRC4WebApiVsSln()
{
PushAndDeployApps("AspNetCoreRC4WebApiCli", "master", "[\"value1\",\"value2\"]", HttpStatusCode.OK, "Deployment successful", resourcePath: "/api/values");
PushAndDeployApps("AspNetCoreRC4WebApiVsSln", "master", "[\"classlibrary\",\"netstandard\"]", HttpStatusCode.OK, "Deployment successful", resourcePath: "/api/values");
}
}

Expand Down
11 changes: 6 additions & 5 deletions Kudu.TestHarness/TestRepositories.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ internal class TestRepositories
new TestRepositoryInfo("[email protected]:KuduQAOrg/RepoWithPrivateSubModule.git", "4820516"),
new TestRepositoryInfo("https://github.com/KuduApps/-benr-.git", "c553978"),
new TestRepositoryInfo("https://github.com/KuduApps/AppWithPostBuildEvent.git", "083b651"),
new TestRepositoryInfo("https://github.com/KuduApps/AspNetCore2.0CliWithLib.git", "4bd5890"),
new TestRepositoryInfo("https://github.com/KuduApps/AspNetCoreRC3CliWithLib.git", "d8a1286"),
new TestRepositoryInfo("https://github.com/KuduApps/AspNetCoreRC4WebApiCli.git", "96168e9"),
new TestRepositoryInfo("https://github.com/KuduApps/AspNetCoreRC4WebApiVsSln.git", "3907f92"),
new TestRepositoryInfo("https://github.com/KuduApps/AspNetCoreYeomanProject.git", "66c2caf"),
new TestRepositoryInfo("https://github.com/KuduApps/AspNetCore1.0.0VS17WithLib.git", "4143130"),
new TestRepositoryInfo("https://github.com/KuduApps/AspNetCore1.1.0VS17WithLib.git", "3465591"),
new TestRepositoryInfo("https://github.com/KuduApps/AspNetCore2.0CliWithLib.git", "afdb55e"),
new TestRepositoryInfo("https://github.com/KuduApps/AspNetCore2.0.0Cli.git", "27ab60f"),
new TestRepositoryInfo("https://github.com/KuduApps/AspNetCore2.0.0VS17WithLib.git", "23d74c5"),
new TestRepositoryInfo("https://github.com/KuduApps/AspNetCoreRC4WebApiVsSln.git", "61585d7"),
new TestRepositoryInfo("https://github.com/KuduApps/Bakery.git", "2f29dc6"),
new TestRepositoryInfo("https://github.com/KuduApps/BasicConsoleWorker.git", "ce1ec74"),
new TestRepositoryInfo("https://github.com/KuduApps/ConditionalCompilation.git", "946159e"),
Expand Down

0 comments on commit 68200bc

Please sign in to comment.