Adoption bed: the machine the predecessor leaves also runs a container with no restart policy
This commit is contained in:
@@ -529,7 +529,7 @@ before(async () => {
|
|||||||
assert.match(ran.said, /--adopted/, `the refusal does not say how to raise it adopted`);
|
assert.match(ran.said, /--adopted/, `the refusal does not say how to raise it adopted`);
|
||||||
// And nothing was changed: the predecessor as it was, no table of the mesh's.
|
// And nothing was changed: the predecessor as it was, no table of the mesh's.
|
||||||
const ps = await must(CONTROL, `docker ps --format '{{.Names}}'`);
|
const ps = await must(CONTROL, `docker ps --format '{{.Names}}'`);
|
||||||
assert.deepEqual(ps.trim().split("\n").sort(), ["hello-web", "predecessor-registry"], `containers changed:\n${ps}`);
|
assert.deepEqual(ps.trim().split("\n").sort(), [SERVICE, NO_POLICY, "predecessor-registry"].sort(), `containers changed:\n${ps}`);
|
||||||
assert.match(await must(CONTROL, `ufw status`), /Status: active/);
|
assert.match(await must(CONTROL, `ufw status`), /Status: active/);
|
||||||
assert.ok(!(await on(CONTROL, `nft list table inet mesh`)).ok, `a mesh table was loaded`);
|
assert.ok(!(await on(CONTROL, `nft list table inet mesh`)).ok, `a mesh table was loaded`);
|
||||||
return ran.said.split("\n").filter((l) => /in use|^\s+- /.test(l)).join("\n");
|
return ran.said.split("\n").filter((l) => /in use|^\s+- /.test(l)).join("\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user