public HighSecurityModeEnabled(RemoteServiceFixtures.HSMBasicMvcApplicationTestFixture fixture, ITestOutputHelper output) { _fixture = fixture; _fixture.TestLogger = output; _fixture.Actions ( setupConfiguration: () => { var configPath = fixture.DestinationNewRelicConfigFilePath; var configModifier = new NewRelicConfigModifier(configPath); configModifier.ForceTransactionTraces(); configModifier.SetLogLevel("debug"); configModifier.SetHighSecurityMode(true); configModifier.SetEnableRequestParameters(true); configModifier.SetTransactionTracerRecordSql("raw"); configModifier.SetCustomHostName("custom-host-name"); }, exerciseApplication: () => { _fixture.GetWithData(QueryStringParameterValue); _fixture.ThrowException(); } ); _fixture.Initialize(); }
public HighSecurityModeDisabled(RemoteServiceFixtures.BasicMvcApplicationTestFixture fixture, ITestOutputHelper output) { _fixture = fixture; _fixture.TestLogger = output; _fixture.Actions ( setupConfiguration: () => { var configPath = fixture.DestinationNewRelicConfigFilePath; var configModifier = new NewRelicConfigModifier(configPath); configModifier.ForceTransactionTraces(); configModifier.ForceTransactionTraces(); configModifier.SetLogLevel("debug"); configModifier.SetHighSecurityMode(false); configModifier.SetEnableRequestParameters(true); configModifier.SetTransactionTracerRecordSql("raw"); configModifier.SetCustomHostName("custom-host-name"); //CommonUtils.ModifyOrCreateXmlAttributeInNewRelicConfig(configPath, new[] { "configuration", "log" }, "level", "debug"); //CommonUtils.ModifyOrCreateXmlAttributeInNewRelicConfig(configPath, new[] { "configuration", "requestParameters" }, "enabled", "true"); //CommonUtils.ModifyOrCreateXmlAttributeInNewRelicConfig(configPath, new[] { "configuration", "transactionTracer" }, "recordSql", "raw"); //CommonUtils.ModifyOrCreateXmlAttributeInNewRelicConfig(configPath, new[] { "configuration", "highSecurity" }, "enabled", "false"); //CommonUtils.ModifyOrCreateXmlAttributeInNewRelicConfig(configPath, new[] { "configuration", "service" }, "licenseKey", Configuration.License); }, exerciseApplication: () => { _fixture.GetWithData(QueryStringParameterValue); _fixture.ThrowException(); } ); _fixture.Initialize(); }
public HighSecurityModeServerDisabled(RemoteServiceFixtures.OwinWebApiFixture fixture, ITestOutputHelper output) { _fixture = fixture; _fixture.TestLogger = output; _fixture.Actions ( setupConfiguration: () => { var configPath = fixture.DestinationNewRelicConfigFilePath; var configModifier = new NewRelicConfigModifier(configPath); configModifier.SetLogLevel("debug"); configModifier.SetHighSecurityMode(true); configModifier.SetEnableRequestParameters(true); }, exerciseApplication: () => { _fixture.GetData(); _fixture.Get(); _fixture.Get404(); _fixture.GetId(); _fixture.Post(); } ); _fixture.Initialize(); }
public AspNetCoreLocalHSMDisabledAndServerSideHSMEnabledTests(RemoteServiceFixtures.HSMAspNetCoreMvcBasicRequestsFixture fixture, ITestOutputHelper output) : base(fixture) { _fixture = fixture; _fixture.TestLogger = output; _fixture.Actions ( setupConfiguration: () => { var configPath = fixture.DestinationNewRelicConfigFilePath; var configModifier = new NewRelicConfigModifier(configPath); configModifier.ForceTransactionTraces(); configModifier.SetLogLevel("debug"); configModifier.SetEnableRequestParameters(true); configModifier.SetHighSecurityMode(false); }, exerciseApplication: () => _fixture.GetWithData(QueryStringParameterValue) ); _fixture.Initialize(); }