Skip to content

Commit dc8916a

Browse files
authored
workflows: add test results verification (#399)
* workflows: add test results verification Using the "tnf check results" command.
1 parent 781d8cf commit dc8916a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/pre-main.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,15 @@ jobs:
122122
working-directory: cnf-certification-test
123123

124124
- name: 'Test: Run Smoke Tests in a TNF container'
125-
run: TNF_LOG_LEVEL=${TNF_SMOKE_TESTS_LOG_LEVEL} ./run-tnf-container.sh ${{ env.TESTING_CMD_PARAMS }} -l 'common && !affiliated-certification-container-is-certified-digest'
125+
run: TNF_LOG_LEVEL=${TNF_SMOKE_TESTS_LOG_LEVEL} ./run-tnf-container.sh ${{ env.TESTING_CMD_PARAMS }} -l '!affiliated-certification-container-is-certified-digest && !access-control-security-context'
126+
working-directory: cnf-certification-test
127+
128+
- name: Build the TNF tool
129+
run: make build-tnf-tool
130+
working-directory: cnf-certification-test
131+
132+
- name: Check the smoke test results against the expected results template
133+
run: ./tnf check results --log-file="${TNF_OUTPUT_DIR}"/cnf-certsuite.log
126134
working-directory: cnf-certification-test
127135

128136
- name: Upload container test results as an artifact
@@ -135,4 +143,4 @@ jobs:
135143
${{ env.TNF_OUTPUT_DIR }}/claim.json
136144
${{ env.TNF_OUTPUT_DIR }}/claimjson.js
137145
${{ env.TNF_OUTPUT_DIR }}/results.html
138-
${{ env.TNF_OUTPUT_DIR }}/tnf-execution.log
146+
${{ env.TNF_OUTPUT_DIR }}/cnf-certsuite.log

0 commit comments

Comments
 (0)