* enabling ignore tests

* disabling 6 .net45 tests to improve code coverage
This commit is contained in:
Eddy Nakamura 2020-07-02 16:45:49 -03:00 коммит произвёл GitHub
Родитель 470f3ae84a
Коммит 502ff5681e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 41 добавлений и 33 удалений

Просмотреть файл

@ -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()