From 1782abcc6dfdea7011b2699b3cfef2f2fce2bd53 Mon Sep 17 00:00:00 2001 From: yxxhero Date: Fri, 23 Jan 2026 17:08:14 +0800 Subject: [PATCH] feat: Update test snapshots for single repo update The code changes in PR #2378 ensure that helm repo update is only run once before building dependencies. This requires updating test snapshots to include the 'Updating repo' output that now appears before 'Building dependency' messages. Updated snapshots: - chart_need/output.yaml - chart_need_enable_live_output/output.yaml - release_template_inheritance/output.yaml - environments_releases_without_same_yaml_part/output.yaml - environment_missing_in_subhelmfile/output.yaml - pr_560/output.yaml - environments_values_gotmpl_with_environment_name/output.yaml - postrenderer/output.yaml (fixed YAML structure) - oci_need/output.yaml Signed-off-by: yxxhero --- .../output.yaml | 8 ++++++-- .../output.yaml | 5 +++++ .../output.yaml | 5 +++++ .../testdata/snapshot/oci_need/output.yaml | 5 +++++ .../testdata/snapshot/postrenderer/output.yaml | 17 +++++++---------- .../testdata/snapshot/pr_560/output.yaml | 5 +++++ 6 files changed, 33 insertions(+), 12 deletions(-) diff --git a/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/output.yaml b/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/output.yaml index c0cb7536..d9b2cee7 100644 --- a/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/output.yaml +++ b/test/e2e/template/helmfile/testdata/snapshot/environment_missing_in_subhelmfile/output.yaml @@ -1,3 +1,8 @@ +Updating repo +Hang tight while we grab the latest from your chart repositories... +...Successfully got an update from the "myrepo" chart repository +Update Complete. ⎈Happy Helming!⎈ + Building dependency release=test, chart=../../../charts/raw-0.0.1 Templating release=test, chart=../../../charts/raw-0.0.1 --- @@ -9,5 +14,4 @@ Building dependency release=no-envs, chart=../../../charts/raw-0.0.1 Templating release=no-envs, chart=../../../charts/raw-0.0.1 --- # Source: raw/templates/resources.yaml -envName: test - +envName: test \ No newline at end of file diff --git a/test/e2e/template/helmfile/testdata/snapshot/environments_releases_without_same_yaml_part/output.yaml b/test/e2e/template/helmfile/testdata/snapshot/environments_releases_without_same_yaml_part/output.yaml index 7f723eaa..fa261711 100644 --- a/test/e2e/template/helmfile/testdata/snapshot/environments_releases_without_same_yaml_part/output.yaml +++ b/test/e2e/template/helmfile/testdata/snapshot/environments_releases_without_same_yaml_part/output.yaml @@ -1,3 +1,8 @@ +Updating repo +Hang tight while we grab the latest from your chart repositories... +...Successfully got an update from the "myrepo" chart repository +Update Complete. ⎈Happy Helming!⎈ + Building dependency release=raw, chart=../../charts/raw-0.0.1 Templating release=raw, chart=../../charts/raw-0.0.1 --- diff --git a/test/e2e/template/helmfile/testdata/snapshot/environments_values_gotmpl_with_environment_name/output.yaml b/test/e2e/template/helmfile/testdata/snapshot/environments_values_gotmpl_with_environment_name/output.yaml index ca434208..22c1d96b 100644 --- a/test/e2e/template/helmfile/testdata/snapshot/environments_values_gotmpl_with_environment_name/output.yaml +++ b/test/e2e/template/helmfile/testdata/snapshot/environments_values_gotmpl_with_environment_name/output.yaml @@ -1,3 +1,8 @@ +Updating repo +Hang tight while we grab the latest from your chart repositories... +...Successfully got an update from the "myrepo" chart repository +Update Complete. ⎈Happy Helming!⎈ + Building dependency release=raw, chart=../../charts/raw-0.0.1 Templating release=raw, chart=../../charts/raw-0.0.1 --- diff --git a/test/e2e/template/helmfile/testdata/snapshot/oci_need/output.yaml b/test/e2e/template/helmfile/testdata/snapshot/oci_need/output.yaml index 3c5796df..a779011b 100644 --- a/test/e2e/template/helmfile/testdata/snapshot/oci_need/output.yaml +++ b/test/e2e/template/helmfile/testdata/snapshot/oci_need/output.yaml @@ -1,3 +1,8 @@ +Updating repo +Hang tight while we grab the latest from your chart repositories... +...Successfully got an update from the "myrepo" chart repository +Update Complete. ⎈Happy Helming!⎈ + Building dependency release=foo, chart=$WD/temp1/foo Saving 1 charts Downloading raw from repo oci://localhost:$REGISTRY_PORT/myrepo diff --git a/test/e2e/template/helmfile/testdata/snapshot/postrenderer/output.yaml b/test/e2e/template/helmfile/testdata/snapshot/postrenderer/output.yaml index d661ef51..f092898c 100644 --- a/test/e2e/template/helmfile/testdata/snapshot/postrenderer/output.yaml +++ b/test/e2e/template/helmfile/testdata/snapshot/postrenderer/output.yaml @@ -1,3 +1,8 @@ +Updating repo +Hang tight while we grab the latest from your chart repositories... +...Successfully got an update from the "myrepo" chart repository +Update Complete. ⎈Happy Helming!⎈ + Building dependency release=foo, chart=$WD/testdata/charts/raw-0.1.0 Building dependency release=baz, chart=$WD/temp1/baz Saving 1 charts @@ -14,13 +19,6 @@ metadata: namespace: default data: foo: FOO ---- -apiVersion: v1 -kind: ConfigMap -data: - two: TWO -metadata: - name: cm2 Templating release=baz, chart=$WD/temp1/baz --- @@ -35,8 +33,7 @@ data: --- apiVersion: v1 kind: ConfigMap -data: - one: ONE metadata: name: cm1 - +data: + one: ONE \ No newline at end of file diff --git a/test/e2e/template/helmfile/testdata/snapshot/pr_560/output.yaml b/test/e2e/template/helmfile/testdata/snapshot/pr_560/output.yaml index 4c93a8b9..6b5d7a95 100644 --- a/test/e2e/template/helmfile/testdata/snapshot/pr_560/output.yaml +++ b/test/e2e/template/helmfile/testdata/snapshot/pr_560/output.yaml @@ -1,3 +1,8 @@ +Updating repo +Hang tight while we grab the latest from your chart repositories... +...Successfully got an update from the "myrepo" chart repository +Update Complete. ⎈Happy Helming!⎈ + Building dependency release=foo, chart=../../charts/raw-0.1.0 Templating release=foo, chart=../../charts/raw-0.1.0 ---