mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-23 20:15:19 +08:00
fix(ci): preserve console capacity helper input
This commit is contained in:
@@ -816,11 +816,14 @@ function seedVolume(image, volume, root, files) {
|
|||||||
[
|
[
|
||||||
'run',
|
'run',
|
||||||
'--rm',
|
'--rm',
|
||||||
|
'--interactive',
|
||||||
'--read-only',
|
'--read-only',
|
||||||
'--network',
|
'--network',
|
||||||
'none',
|
'none',
|
||||||
'--cap-drop',
|
'--cap-drop',
|
||||||
'ALL',
|
'ALL',
|
||||||
|
'--cap-add',
|
||||||
|
'CHOWN',
|
||||||
'--security-opt',
|
'--security-opt',
|
||||||
'no-new-privileges',
|
'no-new-privileges',
|
||||||
'--user',
|
'--user',
|
||||||
@@ -842,11 +845,14 @@ function rotateAssertion(image, volume, assertion) {
|
|||||||
[
|
[
|
||||||
'run',
|
'run',
|
||||||
'--rm',
|
'--rm',
|
||||||
|
'--interactive',
|
||||||
'--read-only',
|
'--read-only',
|
||||||
'--network',
|
'--network',
|
||||||
'none',
|
'none',
|
||||||
'--cap-drop',
|
'--cap-drop',
|
||||||
'ALL',
|
'ALL',
|
||||||
|
'--cap-add',
|
||||||
|
'CHOWN',
|
||||||
'--security-opt',
|
'--security-opt',
|
||||||
'no-new-privileges',
|
'no-new-privileges',
|
||||||
'--user',
|
'--user',
|
||||||
|
|||||||
@@ -397,6 +397,8 @@ test('live source freezes native cgroup v2, isolation and assertion rotation mec
|
|||||||
]) {
|
]) {
|
||||||
assert.ok(scriptSource.includes(contract), `missing ${contract}`);
|
assert.ok(scriptSource.includes(contract), `missing ${contract}`);
|
||||||
}
|
}
|
||||||
|
assert.equal(scriptSource.match(/'--interactive'/g)?.length, 2);
|
||||||
|
assert.equal(scriptSource.match(/'--cap-add',\n 'CHOWN'/g)?.length, 2);
|
||||||
assert.doesNotMatch(scriptSource, /run\.cancellation\.(?:rearm|stop|retry)/);
|
assert.doesNotMatch(scriptSource, /run\.cancellation\.(?:rearm|stop|retry)/);
|
||||||
assert.doesNotMatch(scriptSource, /--privileged|--network[= ]host/);
|
assert.doesNotMatch(scriptSource, /--privileged|--network[= ]host/);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user