Skip to content

Commit

Permalink
refactor: Remove old FQDN (#2103)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeelaChacha authored Dec 10, 2024
1 parent 89743f5 commit 2adf01d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions internal/manifest/img/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/kyma-project/lifecycle-manager/api/v1beta2"
"github.com/kyma-project/lifecycle-manager/internal/descriptor/provider"
"github.com/kyma-project/lifecycle-manager/internal/manifest/img"
"github.com/kyma-project/lifecycle-manager/pkg/testutils"
"github.com/kyma-project/lifecycle-manager/pkg/testutils/builder"
)

Expand All @@ -24,7 +25,7 @@ func TestParse(t *testing.T) {
LayerName: "raw-manifest",
LayerRepresentation: &img.OCI{
Repo: "europe-west3-docker.pkg.dev/sap-kyma-jellyfish-dev/template-operator/component-descriptors",
Name: "kyma-project.io/module/template-operator",
Name: testutils.DefaultFQDN,
Ref: "sha256:d2cc278224a71384b04963a83e784da311a268a2b3fa8732bc31e70ca0c5bc52",
Type: "oci-dir",
},
Expand All @@ -36,7 +37,7 @@ func TestParse(t *testing.T) {
LayerName: "raw-manifest",
LayerRepresentation: &img.OCI{
Repo: "europe-west3-docker.pkg.dev/sap-kyma-jellyfish-dev/template-operator/component-descriptors",
Name: "kyma-project.io/module/template-operator",
Name: testutils.DefaultFQDN,
Ref: "sha256:1ea2baf45791beafabfee533031b715af8f7a4ffdfbbf30d318f52f7652c36ca",
Type: "oci-ref",
},
Expand Down
5 changes: 3 additions & 2 deletions internal/manifest/img/pathextractor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/kyma-project/lifecycle-manager/internal/manifest/img"
"github.com/kyma-project/lifecycle-manager/pkg/testutils"
)

func TestPathExtractor_ExtractLayer(t *testing.T) {
Expand Down Expand Up @@ -78,7 +79,7 @@ func TestPathExtractor_FetchLayerToFile(t *testing.T) {
LayerName: "raw-manifest",
LayerRepresentation: &img.OCI{
Repo: "europe-west3-docker.pkg.dev/sap-kyma-jellyfish-dev/template-operator/component-descriptors",
Name: "kyma-project.io/module/template-operator",
Name: testutils.DefaultFQDN,
Ref: "sha256:d2cc278224a71384b04963a83e784da311a268a2b3fa8732bc31e70ca0c5bc52",
Type: "oci-dir",
},
Expand All @@ -91,7 +92,7 @@ func TestPathExtractor_FetchLayerToFile(t *testing.T) {
LayerName: "raw-manifest",
LayerRepresentation: &img.OCI{
Repo: "europe-west3-docker.pkg.dev/sap-kyma-jellyfish-dev/template-operator/component-descriptors",
Name: "kyma-project.io/module/template-operator",
Name: testutils.DefaultFQDN,
Ref: "sha256:1ea2baf45791beafabfee533031b715af8f7a4ffdfbbf30d318f52f7652c36ca",
Type: "oci-ref",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
- name: oci-registry-cred
value:
operator.kyma-project.io/oci-registry-cred: operator-regcred
name: kyma-project.io/template-operator
name: kyma-project.io/module/template-operator
provider: internal
repositoryContexts:
- baseUrl: europe-west3-docker.pkg.dev/sap-kyma-jellyfish-dev/template-operator
Expand Down

0 comments on commit 2adf01d

Please sign in to comment.