Commit 98a4526
committed
test(dind): assert public-mode passthrough actually copies a public host image (issue #96)
The host-image passthrough test only asserted the negative path for the
default public mode: a locally-built fixture (no RepoDigest) is skipped.
The positive path the feature exists for - a genuinely public image
(carrying a RepoDigest from an allowlisted registry) IS copied into the
inner daemon - was structurally untested. The throwaway host daemon was
seeded with only the offline fixture, so public mode had no eligible
image at all and a 'public copies nothing' regression would ship green.
Seed the throwaway host daemon with a real pulled alpine:3.20 (pulling is
what records a RepoDigest; docker save/load does not preserve one) and
assert in the public-mode block that the image lands in the inner daemon
and is logged as loaded. Closes the false-positive gap downstream
(link-assistant/hive-mind#1879) relies on.
Also drop the stray root .gitkeep PR-creation artifact.
Fixes #961 parent 8cf872c commit 98a4526
3 files changed
Lines changed: 30 additions & 2 deletions
File tree
- .changeset
- tests/dind
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
148 | 159 | | |
149 | 160 | | |
150 | 161 | | |
| |||
174 | 185 | | |
175 | 186 | | |
176 | 187 | | |
177 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
178 | 202 | | |
179 | 203 | | |
0 commit comments