public SmokeTestsOnNanoServerUsingSharedRuntime(
     DotnetRuntimeSetupTestFixture dotnetRuntimeSetupTestFixture, ITestOutputHelper output)
 {
     _remoteDeploymentConfig = RemoteDeploymentConfigHelper.GetConfiguration();
     _remoteDeploymentConfig.DotnetRuntimePathOnShare = dotnetRuntimeSetupTestFixture.DotnetRuntimePathOnShare;
     _smokeTestsOnNanoServer = new SmokeTestsOnNanoServer(output, _remoteDeploymentConfig);
 }
        public SmokeTestsOnNanoServer(ITestOutputHelper output)
        {
            _logger = new XunitLogger(output, LogLevel.Information);

            var configuration = new ConfigurationBuilder()
                                .SetBasePath(Directory.GetCurrentDirectory())
                                .AddJsonFile("remoteDeploymentConfig.json")
                                .AddEnvironmentVariables()
                                .Build();

            _remoteDeploymentConfig = new RemoteDeploymentConfig();
            configuration.GetSection("NanoServer").Bind(_remoteDeploymentConfig);
        }
        public static RemoteDeploymentConfig GetConfiguration()
        {
            if (_remoteDeploymentConfig == null)
            {
                var configuration = new ConfigurationBuilder()
                                    .SetBasePath(Directory.GetCurrentDirectory())
                                    .AddJsonFile("remoteDeploymentConfig.json")
                                    .AddUserSecrets("MusicStore.E2ETests")
                                    .AddEnvironmentVariables()
                                    .Build();

                _remoteDeploymentConfig = new RemoteDeploymentConfig();
                configuration.GetSection("NanoServer").Bind(_remoteDeploymentConfig);
            }

            return(_remoteDeploymentConfig);
        }
 public SmokeTestsOnNanoServer(ITestOutputHelper output, RemoteDeploymentConfig config) : base(output)
 {
     _remoteDeploymentConfig = config;
 }
 public SmokeTestsOnNanoServerUsingStandaloneRuntime(ITestOutputHelper output)
 {
     _remoteDeploymentConfig = RemoteDeploymentConfigHelper.GetConfiguration();
     _smokeTestsOnNanoServer = new SmokeTestsOnNanoServer(output, _remoteDeploymentConfig);
 }
Esempio n. 6
0
 public SmokeTestsOnNanoServer(ITestOutputHelper output, RemoteDeploymentConfig config, XunitLogger logger)
 {
     _logger = logger;
     _remoteDeploymentConfig = config;
 }
Esempio n. 7
0
 public SmokeTestsOnNanoServerUsingStandaloneRuntime(ITestOutputHelper output)
 {
     _logger = new XunitLogger(output, LogLevel.Information);
     _remoteDeploymentConfig = RemoteDeploymentConfigHelper.GetConfiguration();
     _smokeTestsOnNanoServer = new SmokeTestsOnNanoServer(output, _remoteDeploymentConfig, _logger);
 }