From 83237b1a1b01dc27c1fd6dbab9d6d4635146cb81 Mon Sep 17 00:00:00 2001 From: Austin Abro Date: Mon, 16 Dec 2024 17:47:46 +0000 Subject: [PATCH] comments Signed-off-by: Austin Abro --- src/pkg/lint/lint_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pkg/lint/lint_test.go b/src/pkg/lint/lint_test.go index d1702be3d7..6974a4114f 100644 --- a/src/pkg/lint/lint_test.go +++ b/src/pkg/lint/lint_test.go @@ -120,6 +120,7 @@ func TestLintPackageWithImports(t *testing.T) { PackagePathOverride: ".", Severity: SevWarn, }, + // Test imported skeleton package lints properly { YqPath: ".components.[0].images.[0]", Description: "Image not pinned with digest", @@ -128,6 +129,7 @@ func TestLintPackageWithImports(t *testing.T) { PackagePathOverride: "oci://ghcr.io/zarf-dev/packages/dos-games:1.1.0", Severity: SevWarn, }, + // Test local import lints properly { YqPath: ".components.[1].images.[0]", Description: "Image not pinned with digest", @@ -136,6 +138,7 @@ func TestLintPackageWithImports(t *testing.T) { PackagePathOverride: "linted-import", Severity: SevWarn, }, + // Test flavors { YqPath: ".components.[4].images.[0]", Description: "Image not pinned with digest",