Skip to content

Commit

Permalink
[Backport release/1.7] CASMINST-7101 update dst script to work with r…
Browse files Browse the repository at this point in the history
…ecent pipeline changes (#653)

CASMINST-7101 update dst script to work with recent pipeline changes
including:

- `.test_artifacts` and `.id` keys
- skipping pit-related tests

Signed-off-by: Jacob Salmela <jacob.salmela@hpe.com>
(cherry picked from commit b422a6c)

Co-authored-by: Jacob Salmela <jacob.salmela@hpe.com>
  • Loading branch information
github-actions[bot] and jacobsalmela authored Jan 7, 2025
1 parent 1905113 commit cc7af3a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions goss-testing/automated/dst-ct-results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,12 @@ gather_goss_commands() {
goss_vars_file="${BASH_REMATCH[3]}"
# format the goss command to run directly
# add the goss command to the array of commands to run
GOSS_COMMANDS+=("${goss_command} -g ${goss_file} --vars ${goss_vars_file} validate -f ${format}")
if [[ "$goss_file" =~ preflight ]] || [[ "$goss_file" =~ ncn-storage-tests ]]; then
# skip these tests
continue
else
GOSS_COMMANDS+=("${goss_command} -g ${goss_file} --vars ${goss_vars_file} validate -f ${format}")
fi
fi
done
else
Expand Down Expand Up @@ -314,8 +319,10 @@ format_goss_results_for_dst() {
"release_version": "",
"output": (if .successful then "omitted" else .stderr end),
"status": (if .successful then "pass" else "fail" end),
"label": ."resource-id",
"label": ."resource-type",
"test_name": .title,
"id": ."resource-id",
"test_artifacts": .,
}),
triage: {}
}' < "${aggregated_goss_results_file}" > "$dst_results_file"
Expand Down Expand Up @@ -377,4 +384,3 @@ if [[ "${BASH_SOURCE[0]}" -ef "${0}" ]]; then
# if the script is run directly, run the main function
main "$@"
fi

0 comments on commit cc7af3a

Please sign in to comment.