-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from Cray-HPE/open-api
added open api tavern coverage
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!-- This file is templated with https://pkg.go.dev/html/template --> | ||
|
||
# Open-API Tavern Coverage Report | ||
<table> | ||
<tbody> | ||
<tr> | ||
<td>Endpoint</td> | ||
<td>Method</td> | ||
<td>Test Case Count</td> | ||
<td>Status</td> | ||
</tr> | ||
{{- range $endpoint := .endpoints }} | ||
<tr> | ||
<td>{{$endpoint.url}}</td> | ||
<td>{{$endpoint.method}}</td> | ||
<td>{{$endpoint.count}}</td> | ||
{{- if eq $endpoint.count 0 }} | ||
<td>:x:</td> | ||
{{- end}} | ||
{{- if eq $endpoint.count 1 }} | ||
<td>:warning:</td> | ||
{{- end}} | ||
{{- if gt $endpoint.count 1 }} | ||
<td>:white_check_mark:</td> | ||
{{- end}} | ||
</tr> | ||
{{- end}} | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: "{bss_base_url}" | ||
|