Skip to content

Commit

Permalink
chore: add structure_test for custom registry example (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle authored Feb 25, 2023
1 parent 27b6aef commit 0da3922
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions e2e/custom_registry/WORKSPACE
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
workspace(name = "custom_registry_example")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

local_repository(
Expand Down
8 changes: 7 additions & 1 deletion e2e/custom_registry/app/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@aspect_bazel_lib//lib:transitions.bzl", "platform_transition_filegroup")
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@contrib_rules_oci//oci:defs.bzl", "oci_image", "oci_tarball")
load("@contrib_rules_oci//oci:defs.bzl", "oci_image", "oci_tarball", "structure_test")
load("@rules_pkg//:pkg.bzl", "pkg_tar")

go_library(
Expand Down Expand Up @@ -55,3 +55,9 @@ oci_tarball(
image = ":image",
repotags = ["gcr.io/example:latest"],
)

structure_test(
name = "test",
config = ["test.yaml"],
image = ":image",
)
5 changes: 5 additions & 0 deletions e2e/custom_registry/app/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
schemaVersion: 2.0.0
commandTests:
- name: "test"
command: "/app"
expectedOutput: ['"Hello World"']

0 comments on commit 0da3922

Please sign in to comment.