Skip to content

Commit

Permalink
Add test for lock
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Hazy <mateusz.hazy@snowflake.com>
  • Loading branch information
sfc-gh-mhazy committed Apr 24, 2024
1 parent eb9934f commit 96e8f53
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
11 changes: 9 additions & 2 deletions e2e/smoke/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,18 @@ copy_file(

apko_image(
name = "lock_from_generated",
config = ":apko.yaml",
config = ":apko.generated.yaml",
contents = "@example_lock//:contents",
tag = "lock:latest",
)

build_test(
name = "test_generated_config",
targets = [
":lock_from_generated",
],
)

apko_config_example(
name = "generated_config_with_extra_files",
config = ":apko.yaml",
Expand All @@ -48,7 +55,7 @@ apko_image(
)

build_test(
name = "test_generated_config",
name = "test_generated_config_with_extra_files",
targets = [
":image_from_config_with_extra_files",
],
Expand Down
6 changes: 6 additions & 0 deletions e2e/smoke/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# This file is used by https://github.com/bazel-contrib/.github/blob/master/.github/workflows/bazel.yaml

# We don't check correctness of the lock generation here, but that the target exists and runs successfully.
bazel run //:image_from_config_with_extra_files.lock

0 comments on commit 96e8f53

Please sign in to comment.