Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(e2e): add doc for ZOT test data #1100

Merged
merged 4 commits into from
Sep 1, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 43 additions & 5 deletions test/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ graph TD;
E1["test.sbom.file(artifact)"] -- subject --> C1
E2["test.signature.file(artifact)"] -- subject --> E1
direction TB
D1["test.sbom.file(image)"] -- subject --> C1
D2["test.signature.file(image)"] -- subject --> D1
D1["test/sbom.file(image)"] -- subject --> C1
D2["test/signature.file(image)"] -- subject --> D1
end
subgraph "file: artifacts_index.tar.gz"
direction TB
Expand All @@ -139,14 +139,52 @@ graph TD;
A1-- foo2 -->A2(blob1)
A1-- bar -->A3(blob2)

E1["test.sbom.file(image)"] -- subject --> A1
E2["test.signature.file(image)"] -- subject --> E1
E1["test/sbom.file(image)"] -- subject --> A1
E2["test/signature.file(image)"] -- subject --> E1
end
end
```

##### Test Data for ZOT
Still WIP. Currently test data is partial, will update this section after all the specs in command suite are migrated to ZOT.
```mermaid
graph TD;
qweeah marked this conversation as resolved.
Show resolved Hide resolved
subgraph "repository: command/images"
direction TB
A0>tag: multi]-..->A1[oci index]
A1--linux/amd64-->A2[oci image]
A1--linux/arm64-->A3[oci image]
A1--linux/arm/v7-->A4[oci image]
A2-->A5(config1)
A3-->A6(config2)
A4-->A7(config3)
A2-- hello.tar -->A8(blob)
A3-- hello.tar -->A8(blob)
A4-- hello.tar -->A8(blob)

B0>tag: foobar]-..->B1[oci image]
B1-- foo1 -->B2(blob1)
B1-- foo2 -->B2(blob1)
B1-- bar -->B3(blob2)
end

subgraph "repository: command/artifacts"
direction TB
C0>tag: foobar]-..->C1[oci image]

direction TB
direction TB
D1["test.sbom.file(image)"] -- subject --> C1
D2["test.signature.file(image)"] -- subject --> D1
direction TB
F0>tag: multi]-..->F1[oci index]
F1--linux/amd64-->F2[oci image]
F1--linux/arm64-->F3[oci image]
F1--linux/arm/v7-->F4[oci image]
G1["referrer.index(image)"] -- subject --> F1
G2["referrer.image(image)"] -- subject --> F2
G3["index"] -- subject --> F1
end
```

#### 9.2 Scenario Suite
Test files used by scenario-based specs are placed in `$REPO_ROOT/test/e2e/testdata/files`.
Loading