@pzy560117/opentest 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/assets/manifest.json
CHANGED
|
@@ -58,6 +58,12 @@ result_is_archivable() {
|
|
|
58
58
|
[ "$result" = "pass" ] || [ "$result" = "risk-accepted" ]
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
result_is_verify_exit() {
|
|
62
|
+
local result
|
|
63
|
+
result=$(yaml_field verification_result)
|
|
64
|
+
[ "$result" = "pass" ] || [ "$result" = "risk-accepted" ] || [ "$result" = "fail" ]
|
|
65
|
+
}
|
|
66
|
+
|
|
61
67
|
guard_plan() {
|
|
62
68
|
check_path "plan exists" "$(yaml_field plan)"
|
|
63
69
|
check_path "matrix exists" "$(yaml_field matrix)"
|
|
@@ -93,7 +99,7 @@ guard_accept() {
|
|
|
93
99
|
|
|
94
100
|
guard_verify() {
|
|
95
101
|
check_path "verification report exists" "$(yaml_field verification_report)"
|
|
96
|
-
check_result "verification result is
|
|
102
|
+
check_result "verification result is pass, risk-accepted, or fail" result_is_verify_exit
|
|
97
103
|
}
|
|
98
104
|
|
|
99
105
|
guard_heal() {
|