From 74254888c536bd9491aa65c505c1a5611e0f662c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Irving=20Mondrag=C3=B3n?= Date: Sun, 23 Aug 2026 03:49:08 +0200 Subject: [PATCH] Declare the e2e registry as insecure for buildpacks builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The e2e tests push to the in-cluster registry over plain HTTP. Newer Paketo builder images (0.3.644, CNB lifecycle 0.21.17) no longer fall back to HTTP for non-localhost registries unless they are listed in CNB_INSECURE_REGISTRIES, which the buildpacks-v3 strategy only sets when the Build declares its output as insecure. Pass --output-insecure=true in the tests that build against that registry. Signed-off-by: Irving Mondragón --- test/e2e/buildrun-gather.bats | 3 ++- test/e2e/log-follow--follow.bats | 3 ++- test/e2e/log-follow-F.bats | 3 ++- test/e2e/run-follow.bats | 3 ++- test/e2e/upload.bats | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/test/e2e/buildrun-gather.bats b/test/e2e/buildrun-gather.bats index 192fde9d4..206893a3a 100644 --- a/test/e2e/buildrun-gather.bats +++ b/test/e2e/buildrun-gather.bats @@ -22,7 +22,8 @@ teardown() { run shp build create ${build_name} \ --source-git-url=https://github.com/shipwright-io/sample-go \ --source-context-dir=source-build \ - --output-image=${output_image} + --output-image=${output_image} \ + --output-insecure=true assert_success run shp buildrun create ${buildrun_name} --buildref-name=${build_name} diff --git a/test/e2e/log-follow--follow.bats b/test/e2e/log-follow--follow.bats index f050cbb98..651294681 100644 --- a/test/e2e/log-follow--follow.bats +++ b/test/e2e/log-follow--follow.bats @@ -23,7 +23,8 @@ teardown() { run shp build create ${build_name} \ --source-git-url=https://github.com/shipwright-io/sample-go \ --source-context-dir=source-build \ - --output-image=${output_image} + --output-image=${output_image} \ + --output-insecure=true assert_success # initiate a BuildRun diff --git a/test/e2e/log-follow-F.bats b/test/e2e/log-follow-F.bats index 6ebab219b..791d72210 100644 --- a/test/e2e/log-follow-F.bats +++ b/test/e2e/log-follow-F.bats @@ -23,7 +23,8 @@ teardown() { run shp build create ${build_name} \ --source-git-url=https://github.com/shipwright-io/sample-go \ --source-context-dir=source-build \ - --output-image=${output_image} + --output-image=${output_image} \ + --output-insecure=true assert_success # initiate a BuildRun diff --git a/test/e2e/run-follow.bats b/test/e2e/run-follow.bats index b3b4be3e5..46db05cf3 100644 --- a/test/e2e/run-follow.bats +++ b/test/e2e/run-follow.bats @@ -23,7 +23,8 @@ teardown() { run shp build create ${build_name} \ --source-git-url=https://github.com/shipwright-io/sample-go \ --source-context-dir=source-build \ - --output-image=${output_image} + --output-image=${output_image} \ + --output-insecure=true assert_success # initiate a BuildRun with -F diff --git a/test/e2e/upload.bats b/test/e2e/upload.bats index 082c7fadf..76a2cb118 100644 --- a/test/e2e/upload.bats +++ b/test/e2e/upload.bats @@ -41,7 +41,8 @@ function assert_shp_upload_follow_output() { run shp build create ${build_name} \ --source-git-url="${source_url}" \ --source-context-dir="source-build" \ - --output-image="${output_image}" + --output-image="${output_image}" \ + --output-insecure=true assert_success # cloning the same repository used for the build in the test temporary directory, this is the