Skip to content

Commit 526f9f9

Browse files
committed
add identity to kcp test
1 parent 438094c commit 526f9f9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

contrib/kcp/test/e2e/binding.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"testing"
2222
"time"
2323

24+
"github.com/google/uuid"
2425
"github.com/stretchr/testify/require"
2526
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2627
"k8s.io/apimachinery/pkg/util/wait"
@@ -46,13 +47,19 @@ func performBinding(
4647
// 1. Get APIServiceExportRequest from provider
4748
c := framework.GetKubeBindRestClient(t, kubeBindConfig)
4849

50+
identity, err := uuid.NewUUID()
51+
require.NoError(t, err)
52+
4953
bindResponse, err := c.Bind(t.Context(), &kubebindv1alpha2.BindableResourcesRequest{
5054
ObjectMeta: metav1.ObjectMeta{
5155
Name: "test-binding",
5256
},
5357
TemplateRef: kubebindv1alpha2.APIServiceExportTemplateRef{
5458
Name: templateRef,
5559
},
60+
ClusterIdentity: kubebindv1alpha2.ClusterIdentity{
61+
Identity: identity.String(),
62+
},
5663
})
5764
require.NoError(t, err)
5865
require.NotNil(t, bindResponse)

0 commit comments

Comments
 (0)