From 1f2c24d3c97d4cf0cf87bfa3106f5dd4447c030d Mon Sep 17 00:00:00 2001 From: kukkok3 <93382903+kukkok3@users.noreply.github.com> Date: Thu, 29 Feb 2024 10:15:11 +0100 Subject: [PATCH] feat: adds fuzzer api --- .config/dictionaries/project.dic | 1 + .github/workflows/generate-allure-report.yml | 13 +++++++++++-- catalyst-gateway/tests/Earthfile | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.config/dictionaries/project.dic b/.config/dictionaries/project.dic index 1c5cd186a80..b8cbd556acd 100644 --- a/.config/dictionaries/project.dic +++ b/.config/dictionaries/project.dic @@ -44,6 +44,7 @@ fmtfix fontawesome formz Formz +fuzzer gapless gcloud genhtml diff --git a/.github/workflows/generate-allure-report.yml b/.github/workflows/generate-allure-report.yml index 210edffe42a..b38554aa115 100644 --- a/.github/workflows/generate-allure-report.yml +++ b/.github/workflows/generate-allure-report.yml @@ -37,7 +37,6 @@ jobs: - name: Get unit test report uses: input-output-hk/catalyst-ci/actions/run@master - id: build with: earthfile: ./catalyst-gateway/ flags: @@ -46,11 +45,21 @@ jobs: runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }} artifact: "false" + - name: Get fuzzer api test report + uses: input-output-hk/catalyst-ci/actions/run@master + with: + earthfile: ./catalyst-gateway/tests/ + flags: + targets: test-fuzzer-api + target_flags: + runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }} + artifact: "false" + - name: Setup Allure results run: | mkdir -p ${{ env.ALLURE_RESULTS_PATH }} mv catalyst-gateway/cat-gateway.junit-report.xml ${{ env.ALLURE_RESULTS_PATH }} - # mv junit-report.xml allure-results + mv catalyst-gateway/tests/schemathesis.junit-report.xml ${{ env.ALLURE_RESULTS_PATH }} - name: Checkout gh-pages uses: actions/checkout@v3 diff --git a/catalyst-gateway/tests/Earthfile b/catalyst-gateway/tests/Earthfile index a4640b478ce..72b95421a0e 100644 --- a/catalyst-gateway/tests/Earthfile +++ b/catalyst-gateway/tests/Earthfile @@ -38,7 +38,7 @@ test-fuzzer-api: docker cp st:/results/junit-report.xml junit-report.xml END WAIT - SAVE ARTIFACT junit-report.xml AS LOCAL junit-report.xml + SAVE ARTIFACT junit-report.xml AS LOCAL schemathesis-report.xml SAVE ARTIFACT cat-gateway.log AS LOCAL cat-gateway.log END IF [ -f fail ]