Rename to Microsoft.AspNetCore.Server.IntegrationTesting

Fixes #824
This commit is contained in:
Pranav K 2016-08-12 11:58:11 -07:00
parent c6de61b520
commit f8189a2296
27 changed files with 31 additions and 30 deletions

View File

@ -24,7 +24,7 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.Hostin
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.Hosting.Server.Abstractions", "src\Microsoft.AspNetCore.Hosting.Server.Abstractions\Microsoft.AspNetCore.Hosting.Server.Abstractions.xproj", "{FDBBA081-5248-4FC0-9E08-B46BEF3FA438}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.Server.Testing", "src\Microsoft.AspNetCore.Server.Testing\Microsoft.AspNetCore.Server.Testing.xproj", "{3DA89347-6731-4366-80C4-548F24E8607B}"
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.AspNetCore.Server.IntegrationTesting", "src\Microsoft.AspNetCore.Server.IntegrationTesting\Microsoft.AspNetCore.Server.IntegrationTesting.xproj", "{3DA89347-6731-4366-80C4-548F24E8607B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{9C7520A0-F2EB-411C-8BB2-80B39C937217}"
EndProject

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
public enum ApplicationType
{

View File

@ -5,7 +5,7 @@ using System;
using System.Collections.Generic;
using System.IO;
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
/// <summary>
/// Parameters to control application deployment.

View File

@ -3,7 +3,7 @@
using System.Threading;
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
/// <summary>
/// Result of a deployment.
@ -16,7 +16,7 @@ namespace Microsoft.AspNetCore.Server.Testing
public string ApplicationBaseUri { get; set; }
/// <summary>
/// The folder where the application is hosted. This path can be different from the
/// The folder where the application is hosted. This path can be different from the
/// original application source location if published before deployment.
/// </summary>
public string ContentRoot { get; set; }

View File

@ -8,7 +8,7 @@ using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
public class RetryHelper
{

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
public enum RuntimeArchitecture
{

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
public enum RuntimeFlavor
{

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
public enum ServerType
{

View File

@ -5,7 +5,7 @@ using System;
using System.Net;
using System.Net.Sockets;
namespace Microsoft.AspNetCore.Server.Testing.Common
namespace Microsoft.AspNetCore.Server.IntegrationTesting.Common
{
public static class TestUriHelper
{

View File

@ -9,7 +9,7 @@ using System.Threading;
using Microsoft.Extensions.Internal;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
/// <summary>
/// Abstract base class of all deployers with implementation of some of the common helpers.

View File

@ -4,7 +4,7 @@
using System;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
/// <summary>
/// Factory to create an appropriate deployer based on <see cref="DeploymentParameters"/>.
@ -44,7 +44,7 @@ namespace Microsoft.AspNetCore.Server.Testing
return new NginxDeployer(deploymentParameters, logger);
default:
throw new NotSupportedException(
string.Format("Found no deployers suitable for server type '{0}' with the current runtime.",
string.Format("Found no deployers suitable for server type '{0}' with the current runtime.",
deploymentParameters.ServerType)
);
}

View File

@ -3,7 +3,7 @@
using System;
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
/// <summary>
/// Common operations on an application deployer.

View File

@ -6,11 +6,11 @@
using System;
using System.Linq;
using System.Threading;
using Microsoft.AspNetCore.Server.Testing.Common;
using Microsoft.AspNetCore.Server.IntegrationTesting.Common;
using Microsoft.Extensions.Logging;
using Microsoft.Web.Administration;
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
/// <summary>
/// Deployer for IIS.

View File

@ -6,9 +6,9 @@ using System.Diagnostics;
using System.IO;
using System.Threading;
using Microsoft.Extensions.Logging;
using Microsoft.AspNetCore.Server.Testing.Common;
using Microsoft.AspNetCore.Server.IntegrationTesting.Common;
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
/// <summary>
/// Deployment helper for IISExpress.

View File

@ -5,10 +5,10 @@ using System;
using System.Diagnostics;
using System.IO;
using System.Net.Http;
using Microsoft.AspNetCore.Server.Testing.Common;
using Microsoft.AspNetCore.Server.IntegrationTesting.Common;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
/// <summary>
/// Deployer for Kestrel on Nginx.

View File

@ -11,7 +11,7 @@ using System.Xml.Linq;
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
public class RemoteWindowsDeployer : ApplicationDeployer
{
@ -306,9 +306,10 @@ namespace Microsoft.AspNetCore.Server.Testing
// Copy the scripts from this assembly's embedded resources to the temp path on the machine where these
// tests are being run
var assembly = typeof(RemoteWindowsDeployer).GetTypeInfo().Assembly;
var embeddedFileProvider = new EmbeddedFileProvider(
typeof(RemoteWindowsDeployer).GetTypeInfo().Assembly,
"Microsoft.AspNetCore.Server.Testing.Deployers.RemoteWindowsDeployer");
assembly,
$"{assembly.GetName().Name}.Deployers.RemoteWindowsDeployer");
var filesOnDisk = new string[embeddedFileNames.Length];
for (var i = 0; i < embeddedFileNames.Length; i++)

View File

@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// See License.txt in the project root for license information
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
public class RemoteWindowsDeploymentParameters : DeploymentParameters
{

View File

@ -6,10 +6,10 @@ using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
using Microsoft.AspNetCore.Server.Testing.Common;
using Microsoft.AspNetCore.Server.IntegrationTesting.Common;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
/// <summary>
/// Deployer for WebListener and Kestrel.

View File

@ -5,7 +5,7 @@ using System;
using System.Diagnostics;
using Microsoft.AspNetCore.Testing.xunit;
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
/// <summary>
/// Skips a test if the runtime used to run the test is CoreClr.

View File

@ -4,10 +4,10 @@
using System;
using Microsoft.AspNetCore.Testing.xunit;
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
/// <summary>
/// Skip test if a given environment variable is not enabled. To enable the test, set environment variable
/// Skip test if a given environment variable is not enabled. To enable the test, set environment variable
/// to "true" for the test process.
/// </summary>
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]

View File

@ -5,7 +5,7 @@ using System;
using System.IO;
using Microsoft.AspNetCore.Testing.xunit;
namespace Microsoft.AspNetCore.Server.Testing
namespace Microsoft.AspNetCore.Server.IntegrationTesting
{
/// <summary>
/// Skips a 64 bit test if the current Windows OS is 32-bit.