Skip to content

Commit

Permalink
set sp and sp name in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
kathap committed Feb 13, 2025
1 parent 93828d8 commit 7665514
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions app/controllers/v3/service_instances_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -438,13 +438,13 @@ def unprocessable_service_plan!
end

def unavailable_service_plan!(service_plan, service_plan_guid)
unprocessable!("Invalid service plan. The service plan #{service_plan} with guid #{service_plan_guid} has been removed from the service broker's catalog." \
unprocessable!("Invalid service plan. The service plan '#{service_plan}' with guid '#{service_plan_guid}' has been removed from the service broker's catalog." \
'It is not possible to create new service instances using this plan.')
end

def service_plan_not_visible_in_space!(service_plan, service_plan_guid, space_name, space_guid)
unprocessable!("Invalid service plan. Ensure that the service plan #{service_plan} with guid #{service_plan_guid} \
is visible in your current space #{space_name} with guid #{space_guid}.")
unprocessable!("Invalid service plan. Ensure that the service plan '#{service_plan}' with guid '#{service_plan_guid}' \
is visible in your current space '#{space_name}' with guid '#{space_guid}'.")
end

def invalid_service_plan_relation!
Expand Down
8 changes: 4 additions & 4 deletions spec/request/service_instances_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1260,8 +1260,8 @@ def check_filtered_instances(*instances)
expect(last_response).to have_status_code(422)
expect(parsed_response['errors']).to include(
include({
'detail' => "Invalid service plan. Ensure that the service plan #{service_plan.name} with \
guid #{service_plan_guid} is visible in your current space #{space.name} with guid #{space.guid}.",
'detail' => "Invalid service plan. Ensure that the service plan '#{service_plan.name}' with \
guid '#{service_plan_guid}' is visible in your current space '#{space.name}' with guid '#{space.guid}'.",
'title' => 'CF-UnprocessableEntity',
'code' => 10_008
})
Expand All @@ -1277,7 +1277,7 @@ def check_filtered_instances(*instances)
expect(last_response).to have_status_code(422)
expect(parsed_response['errors']).to include(
include({
'detail' => "Invalid service plan. The service plan #{service_plan.name} with guid #{service_plan.guid} " \
'detail' => "Invalid service plan. The service plan '#{service_plan.name}' with guid '#{service_plan.guid}' " \
"has been removed from the service broker's catalog." \
'It is not possible to create new service instances using this plan.',
'title' => 'CF-UnprocessableEntity',
Expand Down Expand Up @@ -2416,7 +2416,7 @@ def check_filtered_instances(*instances)
expect(last_response).to have_status_code(422)
expect(parsed_response['errors']).to include(
include({
'detail' => "Invalid service plan. The service plan #{service_plan.name} with guid #{service_plan.guid} " \
'detail' => "Invalid service plan. The service plan '#{service_plan.name}' with guid '#{service_plan.guid}' " \
"has been removed from the service broker's catalog." \
'It is not possible to create new service instances using this plan.',
'title' => 'CF-UnprocessableEntity',
Expand Down

0 comments on commit 7665514

Please sign in to comment.