diff --git a/tracer/test/Datadog.Trace.Security.IntegrationTests/IAST/AspNetCore5IastTests.cs b/tracer/test/Datadog.Trace.Security.IntegrationTests/IAST/AspNetCore5IastTests.cs index df41591988ac..1c603ab6b6bf 100644 --- a/tracer/test/Datadog.Trace.Security.IntegrationTests/IAST/AspNetCore5IastTests.cs +++ b/tracer/test/Datadog.Trace.Security.IntegrationTests/IAST/AspNetCore5IastTests.cs @@ -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"; } @@ -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}"; @@ -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}";