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)