Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions .azure-pipelines/ultimate-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1710,12 +1710,25 @@ stages:
SampleName: $(IntegrationTestSampleName)

- script: tracer\build.cmd RunIntegrationTests RunWindowsRegressionTests -Framework $(framework) --code-coverage-enabled $(CodeCoverageEnabled)
displayName: Run integration tests
displayName: Run integration tests (Tracer)
condition: ne(variables['area'], 'ASM')
env:
DD_LOGGER_DD_API_KEY: $(ddApiKey)
enable_crash_dumps: true
Filter: $(IntegrationTestFilter)
SampleName: $(IntegrationTestSampleName)
Area: $(area)

- script: tracer\build.cmd RunIntegrationTests RunWindowsRegressionTests -Framework $(framework) --code-coverage-enabled $(CodeCoverageEnabled)
displayName: Run integration tests (ASM)
condition: eq(variables['area'], 'ASM')
retryCountOnTaskFailure: 2
env:
DD_LOGGER_DD_API_KEY: $(ddApiKey)
enable_crash_dumps: true
Filter: $(IntegrationTestFilter)
SampleName: $(IntegrationTestSampleName)
Area: $(area)

# TODO: Re-enable test-agent.windows once VM images are updated (hitting rate limits for docker)
# - script: docker compose -f docker-compose.windows.yml down
Expand Down Expand Up @@ -2272,7 +2285,26 @@ stages:
-e SampleName=$(IntegrationTestSampleName) \
-e Area=$(area) \
IntegrationTests
displayName: docker-compose run IntegrationTests
displayName: docker-compose run IntegrationTests (Tracer)
condition: ne(variables['area'], 'ASM')
env:
DD_LOGGER_DD_API_KEY: $(ddApiKey)
baseImage: $(baseImage) # for interpolation in the docker-compose file

- script: |
docker-compose -f docker-compose.yml -p $(DockerComposeProjectName) \
run --no-deps --rm \
-e baseImage=$(baseImage) \
-e framework=$(publishTargetFramework) \
-e CodeCoverageEnabled=$(CodeCoverageEnabled) \
-e IncludeTestsRequiringDocker=false \
-e Filter=$(IntegrationTestFilter) \
-e SampleName=$(IntegrationTestSampleName) \
-e Area=$(area) \
IntegrationTests
displayName: docker-compose run IntegrationTests (ASM)
condition: eq(variables['area'], 'ASM')
retryCountOnTaskFailure: 2
env:
DD_LOGGER_DD_API_KEY: $(ddApiKey)
baseImage: $(baseImage) # for interpolation in the docker-compose file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public AspNetWebApi(IisFixture iisFixture, ITestOutputHelper output, bool classi
public Task TestSecurity(string test, string url, string body)
{
// if blocking is enabled, request stops before reaching asp net mvc integrations intercepting before action methods, so no more spans are generated
// NOTE: by integrating the latest version of the WAF, blocking was disabled, as it does not support blocking yet
// NOTE: by integrating the latest version of the WAF, blocking was disabled, as it does not support blocking yet.
var sanitisedUrl = VerifyHelper.SanitisePathsForVerify(url);
var settings = VerifyHelper.GetSpanVerifierSettings(test, sanitisedUrl, body);
FilterConnectionHeader(settings);
Expand Down
Loading