Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JSCU-CNI committed Sep 23, 2024
1 parent 628e570 commit 2963645
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/plugins/child/test_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@

def test_plugins_child_docker(target_linux_docker: Target) -> None:
target_linux_docker.add_plugin(DockerChildTargetPlugin)
children = list(target_linux_docker.list_children())
children = sorted(list(target_linux_docker.list_children()), key=lambda r: r.path)

assert len(children) == 3
assert children[0].type == "docker"
assert (
children[0].path
== "/var/lib/docker/image/overlay2/layerdb/mounts/f988f88e221d97930a665712cf16ab520f7e2c5af395660c145df93aebedf071" # noqa: E501
)

assert [c.path for c in children] == [
"/var/lib/docker/image/overlay2/layerdb/mounts/01b646bc043eb4ad72f3a64b4ffd9be2cbeb399e0a07497d749d724460ccad3a",
"/var/lib/docker/image/overlay2/layerdb/mounts/589135d12011921ac6ce69753569da5f206f4bc792a9133727ddae860997ee66",
"/var/lib/docker/image/overlay2/layerdb/mounts/f988f88e221d97930a665712cf16ab520f7e2c5af395660c145df93aebedf071",
] # noqa: E501

0 comments on commit 2963645

Please sign in to comment.