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 451dadc
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,13 @@ await VerifyHelper.VerifySpans(spansFiltered, settings)
[InlineData("Microsoft.Data.Sqlite")]
public async Task TestIastStoredXssRequest(string database)
{
#if NETCOREAPP3_0
if (EnvironmentHelper.IsAlpine())
{
throw new SkipException();
}
#endif

var filename = "Iast.StoredXss.AspNetCore5." + (IastEnabled ? "IastEnabled" : "IastDisabled");
var useMicrosoftDataDb = database == "Microsoft.Data.Sqlite";
if (RedactionEnabled is true) { filename += ".RedactionEnabled"; }
Expand Down Expand Up @@ -255,6 +262,13 @@ await VerifyHelper.VerifySpans(spansFiltered, settings)
[InlineData("Microsoft.Data.Sqlite")]
public async Task TestIastStoredXssEscapedRequest(string database)
{
#if NETCOREAPP3_0
if (EnvironmentHelper.IsAlpine())
{
throw new SkipException();
}
#endif

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

var filename = "Iast.StoredSqli.AspNetCore5." + (IastEnabled ? "IastEnabled" : "IastDisabled");
var useMicrosoftDataDb = database == "Microsoft.Data.Sqlite";
var url = $"/Iast/StoredSqli?useMicrosoftDataDb={useMicrosoftDataDb}";
Expand Down

0 comments on commit 451dadc

Please sign in to comment.