diff --git a/e2e/aks-runtime/aks_runtime_test.go b/e2e/aks-runtime/aks_runtime_test.go index c25e27728..b88c35eb6 100644 --- a/e2e/aks-runtime/aks_runtime_test.go +++ b/e2e/aks-runtime/aks_runtime_test.go @@ -95,7 +95,7 @@ func TestAKSRuntime(t *testing.T) { resourceBytes, err := kuberesource.EncodeUnstructured(toWrite) require.NoError(err) require.NoError(os.WriteFile(path.Join(workdir, "resources.yaml"), resourceBytes, 0o644)) - require.NoError(az.KataPolicyGen(t, path.Join(workdir, "resources.yaml"))) + require.NoError(az.KataPolicyGen(path.Join(workdir, "resources.yaml"))) // load in generated resources and patch the runtime handler again resourceBytes, err = os.ReadFile(path.Join(workdir, "resources.yaml")) diff --git a/e2e/internal/az/confcom.go b/e2e/internal/az/confcom.go index ea8d51128..62a1a0ab8 100644 --- a/e2e/internal/az/confcom.go +++ b/e2e/internal/az/confcom.go @@ -8,7 +8,6 @@ package az import ( "os/exec" "strings" - "testing" ) // KataPolicyGenVersion gets the version string of `az confcom katapolicygen`. @@ -21,6 +20,6 @@ func KataPolicyGenVersion() (string, error) { } // KataPolicyGen executes `az confcom katapolicygen --yaml `. -func KataPolicyGen(t *testing.T, resourcePath string) error { +func KataPolicyGen(resourcePath string) error { return exec.Command("az", "confcom", "katapolicygen", "--yaml", resourcePath).Run() } diff --git a/e2e/internal/contrasttest/contrasttest.go b/e2e/internal/contrasttest/contrasttest.go index 1cb2b72e2..249bf3c04 100644 --- a/e2e/internal/contrasttest/contrasttest.go +++ b/e2e/internal/contrasttest/contrasttest.go @@ -372,6 +372,7 @@ func (ct *ContrastTest) FactorPlatformTimeout(timeout time.Duration) time.Durati } } +// MakeNamespace creates a namespace string using a given *testing.T. func MakeNamespace(t *testing.T) string { buf := make([]byte, 4) re := regexp.MustCompile("[a-z0-9-]+") diff --git a/packages/by-name/contrast/package.nix b/packages/by-name/contrast/package.nix index 754975786..fc24cda8e 100644 --- a/packages/by-name/contrast/package.nix +++ b/packages/by-name/contrast/package.nix @@ -32,7 +32,7 @@ let makeWrapper ]; - ldflags = [ + ldflags = [ "-s" ];