enabling ignore tests (#1948)
* enabling ignore tests * disabling 6 .net45 tests to improve code coverage
This commit is contained in:
Родитель
470f3ae84a
Коммит
502ff5681e
|
@ -17,7 +17,6 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
/// Tests for client server dependency tracker.
|
||||
/// </summary>
|
||||
[TestClass]
|
||||
[Ignore("Test class out of date. Github Issue 1830")]
|
||||
public class ClientServerDependencyTrackerTests : IDisposable
|
||||
{
|
||||
private List<ITelemetry> sendItems;
|
||||
|
@ -54,6 +53,7 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
ClientServerDependencyTracker.PretendProfilerIsAttached = false;
|
||||
}
|
||||
|
||||
#if !NET45
|
||||
/// <summary>
|
||||
/// Tests if BeginWebTracking() returns operation with associated telemetry item (with start time and time stamp).
|
||||
/// </summary>
|
||||
|
@ -68,6 +68,7 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
Assert.IsTrue(telemetry.Id.StartsWith('|' + telemetry.Context.Operation.Id, StringComparison.Ordinal));
|
||||
Assert.AreEqual(0, telemetry.Properties.Count);
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Tests if BeginWebTracking() returns operation with associated telemetry item (with operation context).
|
||||
|
|
|
@ -21,7 +21,6 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
[TestClass]
|
||||
[Ignore("Test class out of date. Github Issue 1830")]
|
||||
public class DesktopDiagnosticSourceHttpProcessingTests
|
||||
{
|
||||
#region Fields
|
||||
|
@ -207,6 +206,7 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
RequestResponseHeaders.RequestContextCorrelationSourceKey));
|
||||
}
|
||||
|
||||
#if !NET45
|
||||
/// <summary>
|
||||
/// Ensures that the legacy correlation headers are NOT added when request is sent if HttpProcessing is configured to.
|
||||
/// </summary>
|
||||
|
@ -242,6 +242,7 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
Assert.AreEqual(Activity.Current.RootId, actualRootIdHeader);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Ensures that the legacy correlation headers are added when request is sent if HttpProcessing is configured to.
|
||||
|
|
|
@ -19,7 +19,6 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
[TestClass]
|
||||
[Ignore("Test class out of date. Github Issue 1830")]
|
||||
public sealed class FrameworkHttpProcessingTest : IDisposable
|
||||
{
|
||||
#region Fields
|
||||
|
@ -108,6 +107,7 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
null);
|
||||
}
|
||||
|
||||
#if !NET45
|
||||
[TestMethod]
|
||||
public void RddTestHttpProcessingFrameworkOnEndHttpCallbackSuccessParentActivity()
|
||||
{
|
||||
|
@ -133,6 +133,7 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
"200",
|
||||
parentActivity);
|
||||
}
|
||||
#endif
|
||||
|
||||
[TestMethod]
|
||||
public void RddTestHttpProcessingFrameworkOnEndHttpCallbackSuccessParentActivityW3COff()
|
||||
|
|
|
@ -19,7 +19,6 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
[TestClass]
|
||||
[Ignore("Test class out of date. Github Issue 1830")]
|
||||
public sealed class FrameworkSqlProcessingTest : IDisposable
|
||||
{
|
||||
private const int TimeAccuracyMilliseconds = 50;
|
||||
|
@ -274,6 +273,7 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
null);
|
||||
}
|
||||
|
||||
#if !NET45
|
||||
/// <summary>
|
||||
/// Validates SQLProcessingFramework sends correct telemetry.
|
||||
/// </summary>
|
||||
|
@ -308,6 +308,8 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
string.Empty,
|
||||
null);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endregion
|
||||
|
||||
#region Disposable
|
||||
|
|
|
@ -23,7 +23,6 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
[TestClass]
|
||||
[Ignore("Test class out of date. Github Issue 1830")]
|
||||
public sealed class ProfilerHttpProcessingTest : IDisposable
|
||||
{
|
||||
#region Fields
|
||||
|
@ -174,6 +173,7 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
RequestResponseHeaders.RequestContextCorrelationSourceKey));
|
||||
}
|
||||
|
||||
#if !NET45
|
||||
/// <summary>
|
||||
/// Ensures that the source request header is added when request is sent.
|
||||
/// </summary>
|
||||
|
@ -209,6 +209,7 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
Assert.AreEqual(actualParentIdHeader, request.Headers[RequestResponseHeaders.RequestIdHeader]);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Ensures that the parent id header is added when request is sent.
|
||||
|
@ -322,6 +323,7 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
Assert.IsTrue(actualCorrelationContextHeader == "Key2=Value2,Key1=Value1" || actualCorrelationContextHeader == "Key1=Value1,Key2=Value2");
|
||||
}
|
||||
|
||||
#if !NET45
|
||||
[TestMethod]
|
||||
public void RddTestHttpProcessingProfilerOnBeginOnEnd()
|
||||
{
|
||||
|
@ -361,6 +363,7 @@ namespace Microsoft.ApplicationInsights.Tests
|
|||
Assert.IsTrue(dependency.Properties.TryGetValue("k", out var baggageK));
|
||||
Assert.AreEqual("v", baggageK);
|
||||
}
|
||||
#endif
|
||||
|
||||
[TestMethod]
|
||||
public void RddTestHttpProcessingProfilerOnBeginOnEndW3COff()
|
||||
|
|
Загрузка…
Ссылка в новой задаче