test(docker): the disk page's images carry the 12-character ids the agent sends (#5305)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user