public void FixtureSetUp() { Environment.SetEnvironmentVariable("IGNITE_NATIVE_TEST_CLASSPATH", "true"); Directory.SetCurrentDirectory(PathUtil.IgniteHome); _changedConfig = TestAppConfig.Change(PathUtil.ExamplesAppConfigPath); }
public void FixtureSetUp() { Environment.SetEnvironmentVariable("IGNITE_NATIVE_TEST_CLASSPATH", "true"); Directory.SetCurrentDirectory(PathUtil.IgniteHome); // Copy file to a temp location and replace multicast IP finder with static. _configPath = Path.GetTempFileName(); var configText = File.ReadAllText(PathUtil.ExamplesAppConfigPath) .Replace("TcpDiscoveryMulticastIpFinder", "TcpDiscoveryStaticIpFinder"); File.WriteAllText(_configPath, configText); _changedConfig = TestAppConfig.Change(_configPath); }
public void FixtureSetUp() { _changedEnvVar = EnvVar.Set(Classpath.EnvIgniteNativeTestClasspath, bool.TrueString); Directory.SetCurrentDirectory(PathUtil.IgniteHome); // Copy file to a temp location and replace multicast IP finder with static. _configPath = Path.GetTempFileName(); var configText = File.ReadAllText(PathUtil.ExamplesAppConfigPath) .Replace("TcpDiscoveryMulticastIpFinder", "TcpDiscoveryStaticIpFinder"); File.WriteAllText(_configPath, configText); _changedConfig = TestAppConfig.Change(_configPath); }