From bd6ea26ee82a2fc750932306b0746bb7b429921e Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 5 Mar 2024 14:47:56 -0600 Subject: [PATCH] update examples and integratino test for new endpoint Signed-off-by: Dylan --- .../context_based_restrictions_v1_examples_test.go | 3 +++ .../context_based_restrictions_v1_integration_test.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/contextbasedrestrictionsv1/context_based_restrictions_v1_examples_test.go b/contextbasedrestrictionsv1/context_based_restrictions_v1_examples_test.go index 7fde9bc4..1d1f218e 100644 --- a/contextbasedrestrictionsv1/context_based_restrictions_v1_examples_test.go +++ b/contextbasedrestrictionsv1/context_based_restrictions_v1_examples_test.go @@ -292,6 +292,8 @@ var _ = Describe(`ContextBasedRestrictionsV1 Examples Tests`, func() { }) It(`GetServicerefTarget request example`, func() { fmt.Println("\nGetServicerefTarget() result:") + tempServiceName := serviceName + serviceName = "containers-kubernetes" // begin-get_serviceref_target getServicerefTargetOptions := contextBasedRestrictionsService.NewGetServicerefTargetOptions( @@ -306,6 +308,7 @@ var _ = Describe(`ContextBasedRestrictionsV1 Examples Tests`, func() { fmt.Println(string(b)) // end-get_serviceref_target + serviceName = tempServiceName Expect(err).To(BeNil()) Expect(response.StatusCode).To(Equal(200)) diff --git a/contextbasedrestrictionsv1/context_based_restrictions_v1_integration_test.go b/contextbasedrestrictionsv1/context_based_restrictions_v1_integration_test.go index 74610f15..0aade69b 100644 --- a/contextbasedrestrictionsv1/context_based_restrictions_v1_integration_test.go +++ b/contextbasedrestrictionsv1/context_based_restrictions_v1_integration_test.go @@ -473,7 +473,7 @@ var _ = Describe(`ContextBasedRestrictionsV1 Integration Tests`, func() { }) It(`GetServicerefTarget(getServicerefTargetOptions *GetServicerefTargetOptions)`, func() { getServicerefTargetOptions := &contextbasedrestrictionsv1.GetServicerefTargetOptions{ - ServiceName: core.StringPtr(testServiceName), + ServiceName: core.StringPtr("containers-kubernetes"), } serviceRefTarget, response, err := contextBasedRestrictionsService.GetServicerefTarget(getServicerefTargetOptions)