Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit 4171192

Browse files
v3(services): stub uaa request when creating orgs in lifecycle test
1 parent fd8d71c commit 4171192

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

spec/request/lifecycle/service_route_bindings_synoptic_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
with(basic_auth: %w(admin password)).
2525
to_return(status: 410, body: '', headers: {})
2626
VCAP::CloudController::Config.config.set(:kubernetes, nil)
27+
28+
stub_request(:post, "https://uaa.service.cf.internal/oauth/token").
29+
with(body: "grant_type=client_credentials").
30+
to_return(status: 200, body: "{ token_type: 'Bearer', access_token: 'dXNlcm5hbWVfbG9va3VwX2NsaWVudF9uYW1lOnVzZXJuYW1lX2xvb2t1cF9zZWNyZXQ=' }", headers: {})
2731
end
2832

2933
it 'works end to end' do

0 commit comments

Comments
 (0)