Skip to content

Commit 697953e

Browse files
committed
[WIP] Empty index
Signed-off-by: Brandon Mitchell <[email protected]>
1 parent 5a5fa61 commit 697953e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

conformance2/run.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,20 @@ func (r *runner) GenerateData() error {
178178
return fmt.Errorf("failed to generate test data: %w", err)
179179
}
180180
}
181+
// empty index
182+
if r.Config.Data.Index {
183+
tdName = "empty-index"
184+
r.State.Data[tdName] = newTestData("Empty Index")
185+
r.State.DataStatus[tdName] = statusUnknown
186+
dataTests = append(dataTests, tdName)
187+
_, err = r.State.Data[tdName].genIndexFull(
188+
genWithTag("index"),
189+
genWithPlatforms([]*image.Platform{}),
190+
)
191+
if err != nil {
192+
return fmt.Errorf("failed to generate test data: %w", err)
193+
}
194+
}
181195
// artifact manifest
182196
if r.Config.Data.Artifact {
183197
tdName = "artifact"

0 commit comments

Comments
 (0)