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

Stamp e2e tests #2000

Merged
merged 1 commit into from
Apr 13, 2022
Merged
Changes from all 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
10 changes: 5 additions & 5 deletions testing/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,12 @@ function test_new_container_push_with_stamp() {
cid=$(docker run --rm -d -p 5000:5000 --name registry registry:2)

# Push a legacy image with stamp substitution
bazel run tests/container:new_push_stamped_test_legacy
EXPECT_CONTAINS "$(bazel run @io_bazel_rules_docker//tests/container:new_push_stamped_test_legacy 2>&1)" "Successfully pushed Docker image"
bazel run --stamp tests/container:new_push_stamped_test_legacy
EXPECT_CONTAINS "$(bazel run --stamp @io_bazel_rules_docker//tests/container:new_push_stamped_test_legacy 2>&1)" "Successfully pushed Docker image"

# Push a oci image with stamp substitution
bazel run tests/container:new_push_stamped_test_oci
EXPECT_CONTAINS "$(bazel run @io_bazel_rules_docker//tests/container:new_push_stamped_test_oci 2>&1)" "Successfully pushed OCI image"
bazel run --stamp tests/container:new_push_stamped_test_oci
EXPECT_CONTAINS "$(bazel run --stamp @io_bazel_rules_docker//tests/container:new_push_stamped_test_oci 2>&1)" "Successfully pushed OCI image"
docker stop -t 0 $cid
}

Expand Down Expand Up @@ -371,7 +371,7 @@ function test_container_push_with_stamp() {
cd "${ROOT}"
clear_docker_full
cid=$(docker run --rm -d -p 5000:5000 --name registry registry:2)
bazel run tests/container:push_stamped_test
bazel run --stamp tests/container:push_stamped_test
docker stop -t 0 $cid
}

Expand Down