Пример #1
0
        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 HighSecurityModeEnabled(RemoteServiceFixtures.HSMBasicMvcApplicationTestFixture 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.SetHighSecurityMode(true);
         configModifier.SetEnableRequestParameters(true);
         configModifier.SetTransactionTracerRecordSql("raw");
         configModifier.SetCustomHostName("custom-host-name");
     },
         exerciseApplication: () =>
     {
         _fixture.GetWithData(QueryStringParameterValue);
         _fixture.ThrowException();
     }
     );
     _fixture.Initialize();
 }
 public HighSecurityModeNoTransactionAgentApiTests(RemoteServiceFixtures.HSMAgentApiExecutor fixture, ITestOutputHelper output)
 {
     _fixture            = fixture;
     _fixture.TestLogger = output;
     _fixture.Actions(
         setupConfiguration: () =>
     {
         var configPath     = _fixture.DestinationNewRelicConfigFilePath;
         var configModifier = new NewRelicConfigModifier(configPath);
         configModifier.SetHighSecurityMode(true);
         configModifier.SetLogLevel("debug");
         configModifier.SetAutoStart(false);
     });
     _fixture.Initialize();
 }
Пример #4
0
 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();
 }
        public HighSecurityAndCustomAttributes(HSMCustomAttributesWebApi fixture, ITestOutputHelper output)
        {
            _fixture            = fixture;
            _fixture.TestLogger = output;
            _fixture.Actions(
                setupConfiguration: () =>
            {
                var configPath     = fixture.DestinationNewRelicConfigFilePath;
                var configModifier = new NewRelicConfigModifier(configPath);
                configModifier.ForceTransactionTraces();
                configModifier.SetHighSecurityMode(true);
                configModifier.SetLogLevel("debug");
            },
                exerciseApplication: () =>
            {
                _fixture.Get();
                _fixture.GetCustomErrorAttributes();
                _fixture.AgentLog.WaitForLogLine(AgentLogFile.ErrorEventDataLogLineRegex, TimeSpan.FromMinutes(2));
            }

                );
            _fixture.Initialize();
        }