From b312f2cedbe87657ccc959cb2527b51ff6e4aaa7 Mon Sep 17 00:00:00 2001 From: Andrew Nieuwsma <76961724+anieuwsma-hpe@users.noreply.github.com> Date: Mon, 12 Sep 2022 13:45:18 -0500 Subject: [PATCH] added open api tavern coverage --- .github/open-api-tavern-coverage.md.tpl | 29 +++++++++++++++++++ .../run_open-api-tavern-coverage.yaml | 14 +++++++++ 2 files changed, 43 insertions(+) create mode 100644 .github/open-api-tavern-coverage.md.tpl create mode 100644 .github/workflows/run_open-api-tavern-coverage.yaml diff --git a/.github/open-api-tavern-coverage.md.tpl b/.github/open-api-tavern-coverage.md.tpl new file mode 100644 index 0000000..3dcc1e4 --- /dev/null +++ b/.github/open-api-tavern-coverage.md.tpl @@ -0,0 +1,29 @@ + + +# Open-API Tavern Coverage Report + + + + + + + + +{{- range $endpoint := .endpoints }} + + + + + {{- if eq $endpoint.count 0 }} + + {{- end}} + {{- if eq $endpoint.count 1 }} + + {{- end}} + {{- if gt $endpoint.count 1 }} + + {{- end}} + +{{- end}} + +
EndpointMethodTest Case CountStatus
{{$endpoint.url}}{{$endpoint.method}}{{$endpoint.count}}:x::warning::white_check_mark:
\ No newline at end of file diff --git a/.github/workflows/run_open-api-tavern-coverage.yaml b/.github/workflows/run_open-api-tavern-coverage.yaml new file mode 100644 index 0000000..43fe11e --- /dev/null +++ b/.github/workflows/run_open-api-tavern-coverage.yaml @@ -0,0 +1,14 @@ +name: Run Open-API Tavern Coverage +on: + - push # Perform a build of the contents from the branch + - pull_request # Perform a build after merging with the target branch + - workflow_dispatch +jobs: + build_and_release: + uses: Cray-HPE/open-api-tavern-coverage/.github/workflows/run_open-api-tavern-coverage.yaml@v1 + #the v1 tag exists now + with: + open-api-file: "api/swagger.yaml" + tavern-file-dir: "test/ct/functional" + api-target-urls: "{capmc_base_url}" +