Merge branch 'pipelines/run-20261112-1047-notify-only-on-unexpected-run-failures-64a9'
This commit is contained in:
@@ -98,6 +98,12 @@ void main() {
|
||||
),
|
||||
AttentionKind.failed,
|
||||
);
|
||||
expect(
|
||||
attentionKindForRun(
|
||||
run({'status': 'failed', 'failure_kind': 'expected'}),
|
||||
),
|
||||
isNull,
|
||||
);
|
||||
});
|
||||
|
||||
test(
|
||||
@@ -151,6 +157,26 @@ void main() {
|
||||
attentionDetail(AttentionKind.failed, run({'diagnostic': null})),
|
||||
'Run failed',
|
||||
);
|
||||
expect(
|
||||
attentionDetail(
|
||||
AttentionKind.failed,
|
||||
run({
|
||||
'diagnostic': 'generic diagnostic',
|
||||
'failure_reason': 'Provider authentication failed',
|
||||
}),
|
||||
),
|
||||
'Provider authentication failed',
|
||||
);
|
||||
expect(
|
||||
attentionDetail(
|
||||
AttentionKind.failed,
|
||||
run({
|
||||
'diagnostic': 'generic diagnostic',
|
||||
'failure_reason': ' ',
|
||||
}),
|
||||
),
|
||||
'generic diagnostic',
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user