Skip to content

Commit

Permalink
proper error json
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusbv committed Nov 5, 2024
1 parent 7977184 commit 1f5c8e4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@
.with({ headers: scc_headers, body: payload.merge({ byos_mode: 'byos' }) })
.and_return(
status: 401,
body: { error: 'Migration target not allowed on this instance type' }.to_json,
body: 'Migration target not allowed on this instance type',
headers: {}
)
request
Expand All @@ -651,7 +651,6 @@

it 'renders an error' do
data = JSON.parse(response.body)
pp data
expect(data['error']).to eq('Migration target not allowed on this instance type')
end
end
Expand Down

0 comments on commit 1f5c8e4

Please sign in to comment.