Skip to content

Commit

Permalink
feat(test): Add tests for 'cloud volume import'
Browse files Browse the repository at this point in the history
Also add test fixtures for working with cpio archives.

Signed-off-by: Cezar Craciunoiu <[email protected]>
  • Loading branch information
craciunoiuc committed Sep 18, 2024
1 parent 065b7a3 commit a893f35
Show file tree
Hide file tree
Showing 14 changed files with 653 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/e2e/cloud/fixtures/import/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2024, Unikraft GmbH and The KraftKit Authors.
# Licensed under the BSD-3-Clause License (the "License").
# You may not use this file except in compliance with the License.

FROM ubuntu:latest AS build

RUN mkdir -p /tmp/build && \
echo "<p>Hello World!</p>" > /tmp/build/hello.txt

FROM scratch AS import

COPY --from=build /tmp/build/hello.txt /index.html
1 change: 1 addition & 0 deletions test/e2e/cloud/fixtures/import/cpio-large/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>Hello World!</p>
1 change: 1 addition & 0 deletions test/e2e/cloud/fixtures/import/cpio-large/soft-link-0
1 change: 1 addition & 0 deletions test/e2e/cloud/fixtures/import/cpio-large/soft-link-1
1 change: 1 addition & 0 deletions test/e2e/cloud/fixtures/import/cpio-large/soft-link-2
1 change: 1 addition & 0 deletions test/e2e/cloud/fixtures/import/cpio-large/soft-link-3
1 change: 1 addition & 0 deletions test/e2e/cloud/fixtures/import/cpio-large/soft-link-4
1 change: 1 addition & 0 deletions test/e2e/cloud/fixtures/import/cpio-large/soft-link-5
1 change: 1 addition & 0 deletions test/e2e/cloud/fixtures/import/cpio-large/soft-link-6
1 change: 1 addition & 0 deletions test/e2e/cloud/fixtures/import/cpio-large/soft-link-7
1 change: 1 addition & 0 deletions test/e2e/cloud/fixtures/import/cpio-large/soft-link-8
1 change: 1 addition & 0 deletions test/e2e/cloud/fixtures/import/cpio-large/soft-link-9
1 change: 1 addition & 0 deletions test/e2e/cloud/fixtures/import/cpio/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>Hello World!</p>
Loading

0 comments on commit a893f35

Please sign in to comment.