ey_services_fake 0.3.12 → 0.3.13
Sign up to get free protection for your applications and to get access to all the features.
@@ -25,7 +25,7 @@ module EyServicesFake
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
delete '/api/1/
|
28
|
+
delete '/api/1/account/:account_id' do |account_id|
|
29
29
|
content_type :json
|
30
30
|
if parent.service_account_cancel_handler
|
31
31
|
instance_eval(&parent.service_account_cancel_handler)
|
@@ -40,12 +40,12 @@ module EyServicesFake
|
|
40
40
|
instance_eval(&parent.service_account_creation_handler)
|
41
41
|
else
|
42
42
|
service_account = EY::ServicesAPI::ServiceAccountCreation.from_request(request.body.read)
|
43
|
-
response_params = parent.service_account_creation_params
|
43
|
+
response_params = parent.service_account_creation_params(123)
|
44
44
|
EY::ServicesAPI::ServiceAccountResponse.new(response_params).to_hash.to_json
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
-
post '/api/1/provisioned_services_callback' do
|
48
|
+
post '/api/1/account/:account_id/provisioned_services_callback' do |account_id|
|
49
49
|
content_type :json
|
50
50
|
if parent.service_provisioning_handler
|
51
51
|
instance_eval(&parent.service_provisioning_handler)
|
@@ -56,7 +56,7 @@ module EyServicesFake
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
get '/sso/
|
59
|
+
get '/sso/account/:account_id' do |account_id|
|
60
60
|
parent.account_sso_hook(params)
|
61
61
|
"SSO Hello Service Account"
|
62
62
|
end
|
@@ -121,14 +121,14 @@ module EyServicesFake
|
|
121
121
|
}
|
122
122
|
end
|
123
123
|
|
124
|
-
def service_account_creation_params
|
125
|
-
self.class.service_account_creation_params
|
124
|
+
def service_account_creation_params(account_id)
|
125
|
+
self.class.service_account_creation_params(account_id)
|
126
126
|
end
|
127
|
-
def self.service_account_creation_params
|
127
|
+
def self.service_account_creation_params(account_id)
|
128
128
|
{
|
129
|
-
:provisioned_services_url => "#{base_url}api/1/provisioned_services_callback",
|
130
|
-
:url => "#{base_url}api/1/
|
131
|
-
:configuration_url => "#{base_url}sso/
|
129
|
+
:provisioned_services_url => "#{base_url}api/1/account/#{account_id}/provisioned_services_callback",
|
130
|
+
:url => "#{base_url}api/1/account/#{account_id}",
|
131
|
+
:configuration_url => "#{base_url}sso/account/#{account_id}",
|
132
132
|
:configuration_required => false,
|
133
133
|
:message => EY::ServicesAPI::Message.new(:message_type => "status", :subject => "some messages"),
|
134
134
|
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ey_services_fake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 13
|
10
|
+
version: 0.3.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jacob Burkhart & Josh Lane
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-05-
|
18
|
+
date: 2012-05-11 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: sinatra
|