From 8ef815dc6a943e660dfcc64e1d9a221261a064ce Mon Sep 17 00:00:00 2001 From: George Arama <50641385+gearama@users.noreply.github.com> Date: Wed, 21 Feb 2024 10:58:35 -0800 Subject: [PATCH] Install test proxy and enable all tests (#5365) * mroe quotes * dssf * compact the tests in the proper folder * 2 more tests * eqwq * enabled all except http * endline * fhg * oops * new teests * update * update defaults * hdg --- eng/pipelines/templates/jobs/perf.yml | 6 ++++++ sdk/core/perf-tests.yml | 11 +++++++++++ sdk/core/perf.yml | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/eng/pipelines/templates/jobs/perf.yml b/eng/pipelines/templates/jobs/perf.yml index 3b4a7cf3e..fd75af681 100644 --- a/eng/pipelines/templates/jobs/perf.yml +++ b/eng/pipelines/templates/jobs/perf.yml @@ -44,6 +44,12 @@ extends: targetType: 'inline' script: sudo apt install valgrind -y displayName: Install valgrind + - template: /eng/common/testproxy/test-proxy-tool.yml + parameters: + runProxy: true + rootFolder: '$(Build.SourcesDirectory)/sdk/${{parameters.ServiceDirectory}}' + templateFolder: '$(Build.SourcesDirectory)/sdk/${{parameters.ServiceDirectory}}' + ServiceDirectory: ${{ parameters.ServiceDirectory }} PackageVersions: ${{ parameters.PackageVersions }} Tests: ${{ parameters.Tests }} diff --git a/sdk/core/perf-tests.yml b/sdk/core/perf-tests.yml index 2ee262626..156d00b6d 100644 --- a/sdk/core/perf-tests.yml +++ b/sdk/core/perf-tests.yml @@ -21,6 +21,12 @@ Tests: Class: extendedOptions Arguments: - --e 1 + + - Test: httpTransport + Class: httpTransport + Arguments: + - --test-proxies http://127.0.0.1:5000 --method GET --transport curl + - --test-proxies http://127.0.0.1:5000 --method POST --transport curl - Test: json Class: json @@ -38,6 +44,11 @@ Tests: Arguments: - --e 1 + - Test: pipelineBase + Class: pipelineBase + Arguments: + - --test-proxies http://127.0.0.1:5000 --count 100 --policies LogPolicy,TestPolicy + - Test: uuid Class: uuid Arguments: diff --git a/sdk/core/perf.yml b/sdk/core/perf.yml index c8941aa70..b022eaf47 100644 --- a/sdk/core/perf.yml +++ b/sdk/core/perf.yml @@ -6,7 +6,7 @@ parameters: - name: Tests displayName: Tests (regex of tests to run) type: string - default: '^(delay|exception|extendedOptions|json|noop|nullable|uuid)$' + default: '.*' - name: Arguments displayName: Arguments (regex of arguments to run) type: string