mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
fix(ci): close clean runner gaps
This commit is contained in:
@@ -60,7 +60,21 @@ test('builds cluster-postgres before the standalone TLS rotation contract', () =
|
||||
'pg_stat_ssl',
|
||||
'pg_is_in_recovery()',
|
||||
"current_setting('transaction_read_only')",
|
||||
'PostgreSQL container logs:',
|
||||
]) {
|
||||
assert.ok(source.includes(required), `missing TLS evidence: ${required}`);
|
||||
}
|
||||
assert.match(source, /const uid = process\.getuid\?\.\(\)/);
|
||||
assert.match(source, /const gid = process\.getgid\?\.\(\)/);
|
||||
const certificateTool = source.match(
|
||||
/function runCertificateTool[\s\S]*?\n}\n/,
|
||||
)?.[0];
|
||||
assert.ok(certificateTool);
|
||||
assert.match(certificateTool, /'--user',\s*`\$\{uid}:\$\{gid}`/);
|
||||
assert.doesNotMatch(certificateTool, /'0:0'/);
|
||||
assert.match(source, /'\/work\/server\.key',\s*'\/work\/active\.crt'/);
|
||||
assert.match(
|
||||
source,
|
||||
/activateServerCertificate\(directory, generation\);\s*preparePostgresFileOwnership\(directory\);\s*docker\(\['kill'/,
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user