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

Commit e84c645

Browse files
v3(tests): stub uaa request for org creation in services lifecycle tests
1 parent 3568e89 commit e84c645

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

spec/request/lifecycle/services_synoptic_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
stub_request(:put, %r{\Ahttp://example.org/amazing-service-broker/v2/service_instances/.+\z}).
1616
with(basic_auth: %w(admin password)).
1717
to_return(status: 201, body: {}.to_json, headers: {})
18+
19+
stub_request(:post, 'https://uaa.service.cf.internal/oauth/token').
20+
with(body: 'grant_type=client_credentials').
21+
to_return(status: 200, body: "{ token_type: 'Bearer', access_token: 'dXNlcm5hbWVfbG9va3VwX2NsaWVudF9uYW1lOnVzZXJuYW1lX2xvb2t1cF9zZWNyZXQ=' }", headers: {})
1822
end
1923

2024
it 'works end to end' do

0 commit comments

Comments
 (0)