test(docker): the disk page's images carry the 12-character ids the agent sends (#5305)
CI / lint (push) Successful in 2s
CI / integration (push) Successful in 52s
CI / unit (push) Successful in 1m18s
CI / publish (push) Successful in 1m19s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 20:20:41 -04:00
co-authored by Claude Opus 5.5
parent 8566c8f78e
commit 2ecf4d57cb
+2 -2
View File
@@ -54,9 +54,9 @@ def test_the_disk_page_says_how_much_each_host_grew(app):
s.add(m.DockerDiskUsage(host_id=hid, images_size=30 * gib, containers_size=2 * gib,
volumes_size=10 * gib, build_cache_size=0, images_reclaimable=5 * gib,
images_total=12, images_active=8, updated_at=now))
s.add(m.DockerImage(host_id=hid, image_id="sha256:" + "a" * 64, repo_tag=f"ghcr.io/x/app{tag}:1",
s.add(m.DockerImage(host_id=hid, image_id="a" * 12, repo_tag=f"ghcr.io/x/app{tag}:1",
size=gib, shared_size=0, containers=1, updated_at=now))
s.add(m.DockerImage(host_id=hid, image_id="sha256:" + "b" * 64, repo_tag=f"ghcr.io/x/app{tag}:0",
s.add(m.DockerImage(host_id=hid, image_id="b" * 12, repo_tag=f"ghcr.io/x/app{tag}:0",
size=gib, shared_size=0, containers=0, updated_at=now))
s.add_all([PluginMetric(source_module="docker", resource_name=name, metric_name="disk_total_bytes",
value=float(v * gib), recorded_at=now - timedelta(days=d))