Skip to content

Commit

Permalink
Skip tests using Microsoft.Data.Sqlite on netcoreapp3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
e-n-0 committed Nov 25, 2024
1 parent 3a46202 commit eeb569f
Showing 1 changed file with 24 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,15 @@ await VerifyHelper.VerifySpans(spansFiltered, settings)
[InlineData("Microsoft.Data.Sqlite")]
public async Task TestIastStoredXssRequest(string database)
{
var filename = "Iast.StoredXss.AspNetCore5." + (IastEnabled ? "IastEnabled" : "IastDisabled");
var useMicrosoftDataDb = database == "Microsoft.Data.Sqlite";
#if NETCOREAPP3_0
if (useMicrosoftDataDb && EnvironmentHelper.IsAlpine())
{
throw new SkipException();
}
#endif

var filename = "Iast.StoredXss.AspNetCore5." + (IastEnabled ? "IastEnabled" : "IastDisabled");
if (RedactionEnabled is true) { filename += ".RedactionEnabled"; }
var url = $"/Iast/StoredXss?param=<b>RawValue</b>&useMicrosoftDataDb={useMicrosoftDataDb}";
IncludeAllHttpSpans = true;
Expand All @@ -255,8 +262,15 @@ await VerifyHelper.VerifySpans(spansFiltered, settings)
[InlineData("Microsoft.Data.Sqlite")]
public async Task TestIastStoredXssEscapedRequest(string database)
{
var filename = "Iast.StoredXssEscaped.AspNetCore5." + (IastEnabled ? "IastEnabled" : "IastDisabled");
var useMicrosoftDataDb = database == "Microsoft.Data.Sqlite";
#if NETCOREAPP3_0
if (useMicrosoftDataDb && EnvironmentHelper.IsAlpine())
{
throw new SkipException();
}
#endif

var filename = "Iast.StoredXssEscaped.AspNetCore5." + (IastEnabled ? "IastEnabled" : "IastDisabled");
var url = $"/Iast/StoredXssEscaped?useMicrosoftDataDb={useMicrosoftDataDb}";
IncludeAllHttpSpans = true;
await TryStartApp();
Expand All @@ -282,8 +296,15 @@ await VerifyHelper.VerifySpans(spansFiltered, settings)
[InlineData("Microsoft.Data.Sqlite")]
public async Task TestIastStoredSqliRequest(string database)
{
var filename = "Iast.StoredSqli.AspNetCore5." + (IastEnabled ? "IastEnabled" : "IastDisabled");
var useMicrosoftDataDb = database == "Microsoft.Data.Sqlite";
#if NETCOREAPP3_0
if (useMicrosoftDataDb && EnvironmentHelper.IsAlpine())
{
throw new SkipException();
}
#endif

var filename = "Iast.StoredSqli.AspNetCore5." + (IastEnabled ? "IastEnabled" : "IastDisabled");
var url = $"/Iast/StoredSqli?useMicrosoftDataDb={useMicrosoftDataDb}";
IncludeAllHttpSpans = true;
await TryStartApp();
Expand Down

0 comments on commit eeb569f

Please sign in to comment.