Skip to content

Commit

Permalink
update examples and integratino test for new endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan <[email protected]>
  • Loading branch information
JonahFarc committed Mar 7, 2024
1 parent 271287a commit bd6ea26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bd6ea26

Please sign in to comment.