Skip to content

Commit 1800d90

Browse files
committed
fix: fix breaking ocm api change
1 parent 67ce937 commit 1800d90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/ocm/ocm_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func TestClient_GetResourceFromNestedComponent(t *testing.T) {
135135
Name: component,
136136
Version: "v0.0.1",
137137
References: map[string]ocm.ComponentReference{
138-
`{"name":"nested-1"}`: {
138+
string(ocmmetav1.Identity{"name": "nested-1"}.Digest()): {
139139
ElementMeta: compdesc.ElementMeta{
140140
Version: "v0.0.1",
141141
Name: component,
@@ -149,7 +149,7 @@ func TestClient_GetResourceFromNestedComponent(t *testing.T) {
149149
Name: component2,
150150
Version: "v0.0.1",
151151
References: map[string]ocm.ComponentReference{
152-
`{"name":"nested-2"}`: {
152+
string(ocmmetav1.Identity{"name": "nested-2"}.Digest()): {
153153
ElementMeta: compdesc.ElementMeta{
154154
Version: "v0.0.1",
155155
Name: component2,

0 commit comments

Comments
 (0)