From 5627d00329ed5ff699ead8fab6e904e9dc38fa08 Mon Sep 17 00:00:00 2001 From: Kiran Challa Date: Wed, 11 May 2016 12:22:58 -0700 Subject: [PATCH] Added UserSecrets tool to E2ETests to enable setting up NanoServer related config in a local user secret store --- test/E2ETests/SmokeTestsOnNanoServer.cs | 7 ++++--- test/E2ETests/project.json | 10 +++++++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/test/E2ETests/SmokeTestsOnNanoServer.cs b/test/E2ETests/SmokeTestsOnNanoServer.cs index 312c733ab8..20221f2c10 100644 --- a/test/E2ETests/SmokeTestsOnNanoServer.cs +++ b/test/E2ETests/SmokeTestsOnNanoServer.cs @@ -24,6 +24,7 @@ namespace E2ETests var configuration = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("remoteDeploymentConfig.json") + .AddUserSecrets() .AddEnvironmentVariables() .Build(); @@ -57,11 +58,11 @@ namespace E2ETests _remoteDeploymentConfig.FileSharePath, _remoteDeploymentConfig.ServerName, _remoteDeploymentConfig.AccountName, - _remoteDeploymentConfig.AccountPassword, - _remoteDeploymentConfig.ExecutableRelativePath) + _remoteDeploymentConfig.AccountPassword) { TargetFramework = "netcoreapp1.0", - ApplicationBaseUriHint = applicationBaseUrl + ApplicationBaseUriHint = applicationBaseUrl, + ApplicationType = applicationType }; deploymentParameters.EnvironmentVariables.Add( new KeyValuePair("ASPNETCORE_ENVIRONMENT", "SocialTesting")); diff --git a/test/E2ETests/project.json b/test/E2ETests/project.json index 7375bde1de..8630937d7d 100644 --- a/test/E2ETests/project.json +++ b/test/E2ETests/project.json @@ -17,6 +17,7 @@ "Microsoft.Extensions.Configuration.Binder": "1.0.0-*", "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-*", "Microsoft.Extensions.Configuration.Json": "1.0.0-*", + "Microsoft.Extensions.Configuration.UserSecrets": "1.0.0-*", "Microsoft.Extensions.Logging": "1.0.0-*", "Microsoft.Extensions.Logging.Console": "1.0.0-*", "xunit": "2.1.0" @@ -37,5 +38,12 @@ ] } }, - "testRunner": "xunit" + "tools": { + "Microsoft.Extensions.SecretManager.Tools": { + "version": "1.0.0-*", + "imports": "portable-net451+win8" + } + }, + "testRunner": "xunit", + "userSecretsId": "MusicStore.E2ETests" } \ No newline at end of file