diff --git a/internal/utils/flux_apply_test.go b/internal/utils/flux_apply_test.go index 59c3eb2..2203fdf 100644 --- a/internal/utils/flux_apply_test.go +++ b/internal/utils/flux_apply_test.go @@ -117,7 +117,7 @@ kind: Kustomization resources: - deployment.yaml` require.NoError(t, os.WriteFile(kustomizationPath, []byte(content), 0644)) - + deploymentPath := filepath.Join(dir, "deployment.yaml") deploymentContent := `apiVersion: apps/v1 kind: Deployment @@ -133,9 +133,9 @@ metadata: for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { root, manifestPath := tt.setupFile(t) - + objects, err := readObjects(root, manifestPath) - + if tt.expectError { require.Error(t, err) assert.Nil(t, objects) @@ -145,4 +145,4 @@ metadata: } }) } -} \ No newline at end of file +} diff --git a/shared/steps/setup/add_flux_sync_for_repository.go b/shared/steps/setup/add_flux_sync_for_repository.go index a31dd7f..6a40b34 100644 --- a/shared/steps/setup/add_flux_sync_for_repository.go +++ b/shared/steps/setup/add_flux_sync_for_repository.go @@ -10,9 +10,9 @@ import ( "testing" "time" - kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1beta2" + kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1" "github.com/fluxcd/pkg/apis/meta" - sourcev1 "github.com/fluxcd/source-controller/api/v1beta2" + sourcev1 "github.com/fluxcd/source-controller/api/v1" corev1 "k8s.io/api/core/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/e2e-framework/klient/k8s/resources"