Skip to content

Commit

Permalink
improve client_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
uwefreidank committed Oct 8, 2024
1 parent 40c1380 commit dd3da7a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/cf/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ var _ = Describe("CF Client tests", Ordered, func() {
Expect(server.ReceivedRequests()[2].Method).To(Equal("GET"))
Expect(server.ReceivedRequests()[2].URL.Path).To(Equal(spacesURI))

// Discover UAA endpoint
Expect(server.ReceivedRequests()[3].Method).To(Equal("GET"))
Expect(server.ReceivedRequests()[3].URL.Path).To(Equal("/"))
// Get new oAuth token
Expect(server.ReceivedRequests()[4].Method).To(Equal("POST"))
Expect(server.ReceivedRequests()[4].URL.Path).To(Equal(uaaURI))
Expand Down Expand Up @@ -361,6 +364,9 @@ var _ = Describe("CF Client tests", Ordered, func() {
Expect(server.ReceivedRequests()[2].Method).To(Equal("GET"))
Expect(server.ReceivedRequests()[2].URL.Path).To(Equal(instancesURI))

// Discover UAA endpoint
Expect(server.ReceivedRequests()[3].Method).To(Equal("GET"))
Expect(server.ReceivedRequests()[3].URL.Path).To(Equal("/"))
// Get new oAuth token
Expect(server.ReceivedRequests()[4].Method).To(Equal("POST"))
Expect(server.ReceivedRequests()[4].URL.Path).To(Equal(uaaURI))
Expand Down

0 comments on commit dd3da7a

Please sign in to comment.