forked from wangziqi/gongxue-base
chore: require PNVS SMS smoke launch evidence
This commit is contained in:
@@ -119,6 +119,29 @@ assert.ok(
|
||||
'missing artifact should be reported as a blocker',
|
||||
);
|
||||
|
||||
const missingSmsPnvsSmoke = runGate(tempDir => {
|
||||
const evidence = createEvidence(tempDir);
|
||||
evidence.checks = evidence.checks.filter(item => item.id !== 'auth.sms-pnvs-remote-smoke');
|
||||
return evidence;
|
||||
});
|
||||
assert.notEqual(missingSmsPnvsSmoke.status, 0, 'missing PNVS SMS smoke should fail launch gate');
|
||||
assert.ok(
|
||||
missingSmsPnvsSmoke.payload.checks?.some(item => item.id === 'check.auth.sms-pnvs-remote-smoke' && item.status === 'blocker'),
|
||||
'missing PNVS SMS smoke should be reported as a blocker',
|
||||
);
|
||||
|
||||
const wrongSmsProviderSmoke = runGate(tempDir => {
|
||||
const evidence = createEvidence(tempDir);
|
||||
const item = evidence.checks.find(check => check.id === 'auth.sms-pnvs-remote-smoke');
|
||||
item.summary.provider = 'aliyun';
|
||||
return evidence;
|
||||
});
|
||||
assert.notEqual(wrongSmsProviderSmoke.status, 0, 'non-PNVS SMS smoke should fail launch gate');
|
||||
assert.ok(
|
||||
wrongSmsProviderSmoke.payload.checks?.some(item => item.id === 'check.auth.sms-pnvs-remote-smoke.summary' && item.status === 'blocker'),
|
||||
'non-PNVS SMS smoke should be reported as a blocker',
|
||||
);
|
||||
|
||||
const wrongMigrationProfile = runGate(tempDir => {
|
||||
const evidence = createEvidence(tempDir);
|
||||
const item = evidence.checks.find(check => check.id === 'migration.pb-production-dry-run');
|
||||
|
||||
Reference in New Issue
Block a user