This repository has been archived by the owner on Apr 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
295 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
26 changes: 13 additions & 13 deletions
26
src/NewRelic.Microsoft.SqlServer.Plugin.Tests/Configuration/Log4NetTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
using NUnit.Framework; | ||
using log4net; | ||
|
||
using NewRelic.Microsoft.SqlServer.Plugin.Properties; | ||
|
||
using log4net; | ||
using NUnit.Framework; | ||
|
||
namespace NewRelic.Microsoft.SqlServer.Plugin.Configuration | ||
{ | ||
[TestFixture] | ||
public class Log4NetTests | ||
{ | ||
[Test] | ||
public void AssertCanFindLog4NetConfig() | ||
{ | ||
Program.SetUpLogConfig(); | ||
var logger = LogManager.Exists(Constants.SqlMonitorLogger); | ||
Assert.That(logger, Is.Not.Null, "Couldn't Find Logger with name '{0}'", Constants.SqlMonitorLogger); | ||
} | ||
} | ||
[TestFixture] | ||
public class Log4NetTests | ||
{ | ||
[Test] | ||
public void AssertCanFindLog4NetConfig() | ||
{ | ||
Program.SetUpLogConfig(); | ||
ILog logger = LogManager.Exists(Constants.SqlMonitorLogger); | ||
Assert.That(logger, Is.Not.Null, "Couldn't Find Logger with name '{0}'", Constants.SqlMonitorLogger); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0"?> | ||
|
||
<configuration> | ||
<configSections> | ||
<section name="newRelic" type="NewRelic.Microsoft.SqlServer.Plugin.Configuration.NewRelicConfigurationSection, NewRelic.Microsoft.SqlServer.Plugin" /> | ||
</configSections> | ||
<appSettings> | ||
<add key="proxyUsername" value="user1"/> | ||
<add key="proxyPassword" value="p@ssword"/> | ||
</appSettings> | ||
<newRelic> | ||
<service licenseKey="FooGuid" pollIntervalSeconds="45" serviceName="NewRelicSqlPlugin" /> | ||
<sqlServers> | ||
<sqlServer name="Local" connectionString="Server=.;Database=master;Trusted_Connection=True;" includeSystemDatabases="true"> | ||
<includes> | ||
<database name="Northwind" displayName="Southbreeze"/> | ||
</includes> | ||
</sqlServer> | ||
<sqlServer name="Important Server" connectionString="Server=192.168.10.123,1234;Database=master;User Id=foo;Password=bar;"> | ||
<excludes> | ||
<database name="foo"/> | ||
<database name="bar"/> | ||
</excludes> | ||
</sqlServer> | ||
</sqlServers> | ||
<azure> | ||
<database name="CloudFtw" connectionString="Server=zzz,1433;Database=CloudFtw;User ID=NewRelic;Password=aaa;Trusted_Connection=false;Encrypt=true;Connection Timeout=30;" /> | ||
</azure> | ||
</newRelic> | ||
|
||
<system.net> | ||
<defaultProxy enabled="true" useDefaultCredentials="false"> | ||
<module type="NewRelic.Platform.Binding.DotNET.Proxy, NewRelic.Platform.Binding.DotNET"/> | ||
</defaultProxy> | ||
</system.net> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.