mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
feat(ql3): add unified cluster operator cli
This commit is contained in:
@@ -26,6 +26,7 @@ test('accepts the reviewed native CI and digest release contracts', () => {
|
||||
images: ['control', 'control-ai', 'admin', 'local'],
|
||||
nativeArchitectures: ['amd64', 'arm64'],
|
||||
runtimeInventory: true,
|
||||
clusterAdminProductFacade: true,
|
||||
ociAttestations: true,
|
||||
osVulnerabilityScan: {
|
||||
scanner: 'trivy@0.70.0',
|
||||
@@ -98,6 +99,17 @@ test('rejects removal of the native arm64 image gate', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('rejects removal of the native Cluster Admin product facade gate', () => {
|
||||
const mutated = ciSource.replace(
|
||||
"QL3_CLUSTER_ADMIN_PRODUCT_LIVE: '1'",
|
||||
"QL3_CLUSTER_ADMIN_PRODUCT_LIVE: '0'",
|
||||
);
|
||||
assert.throws(
|
||||
() => auditClusterImageCiWorkflow(mutated),
|
||||
/bounded product facade contract/,
|
||||
);
|
||||
});
|
||||
|
||||
test('rejects removal of the native cluster-admin image gate', () => {
|
||||
const mutated = ciSource.replace(
|
||||
'image_arch: arm64\n image: admin',
|
||||
|
||||
Reference in New Issue
Block a user