Skip to content

Commit

Permalink
[ASM] Skip integration tests Microsoft.Data.Sqlite on net 3.0 (#6342)
Browse files Browse the repository at this point in the history
## Summary of changes

Skip integration tests using `Microsoft.Data.Sqlite` on `netcoreapp3.0`.

## Reason for change

On the CI, the tests using the sqlite databse using
`Microsoft.Data.Sqlite` on `netcoreapp3.0` were failing.
  • Loading branch information
e-n-0 authored Nov 26, 2024
1 parent 79b28b3 commit b15c82c
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 b15c82c

Please sign in to comment.