|
7 | 7 | let(:admin_header) { admin_headers_for(user) } |
8 | 8 | let(:org) { VCAP::CloudController::Organization.make(created_at: 3.days.ago) } |
9 | 9 | let(:space) { VCAP::CloudController::Space.make(organization: org) } |
10 | | - let(:app_model) { VCAP::CloudController::AppModel.make(space: space, enable_ssh: true, file_based_service_bindings_enabled: true) } |
| 10 | + let(:app_model) { VCAP::CloudController::AppModel.make(space: space, enable_ssh: true, service_binding_k8s_enabled: true) } |
11 | 11 |
|
12 | 12 | describe 'GET /v3/apps/:guid/features' do |
13 | 13 | context 'getting a list of available features for the app' do |
|
26 | 26 | 'enabled' => true |
27 | 27 | }, |
28 | 28 | { |
29 | | - 'name' => 'file-based-service-bindings', |
30 | | - 'description' => 'Enable file-based service bindings for the app', |
| 29 | + 'name' => 'service-binding-k8s', |
| 30 | + 'description' => 'Enable k8s service bindings for the app', |
31 | 31 | 'enabled' => true |
32 | 32 | } |
33 | 33 | ], |
|
100 | 100 | it_behaves_like 'permissions for single object endpoint', ALL_PERMISSIONS |
101 | 101 | end |
102 | 102 |
|
103 | | - context 'file-based-service-bindings app feature' do |
104 | | - let(:api_call) { ->(user_headers) { get "/v3/apps/#{app_model.guid}/features/file-based-service-bindings", nil, user_headers } } |
| 103 | + context 'service-binding-k8s app feature' do |
| 104 | + let(:api_call) { ->(user_headers) { get "/v3/apps/#{app_model.guid}/features/service-binding-k8s", nil, user_headers } } |
105 | 105 | let(:feature_response_object) do |
106 | 106 | { |
107 | | - 'name' => 'file-based-service-bindings', |
108 | | - 'description' => 'Enable file-based service bindings for the app', |
| 107 | + 'name' => 'service-binding-k8s', |
| 108 | + 'description' => 'Enable k8s service bindings for the app', |
109 | 109 | 'enabled' => true |
110 | 110 | } |
111 | 111 | end |
|
191 | 191 | end |
192 | 192 | end |
193 | 193 |
|
194 | | - context 'file-based-service-bindings app feature' do |
195 | | - let(:api_call) { ->(user_headers) { patch "/v3/apps/#{app_model.guid}/features/file-based-service-bindings", request_body.to_json, user_headers } } |
| 194 | + context 'service-binding-k8s app feature' do |
| 195 | + let(:api_call) { ->(user_headers) { patch "/v3/apps/#{app_model.guid}/features/service-binding-k8s", request_body.to_json, user_headers } } |
196 | 196 | let(:feature_response_object) do |
197 | 197 | { |
198 | | - 'name' => 'file-based-service-bindings', |
199 | | - 'description' => 'Enable file-based service bindings for the app', |
| 198 | + 'name' => 'service-binding-k8s', |
| 199 | + 'description' => 'Enable k8s service bindings for the app', |
200 | 200 | 'enabled' => false |
201 | 201 | } |
202 | 202 | end |
|
0 commit comments