Updated integration test

This commit is contained in:
Sergei Tsõganov 2022-07-07 14:02:11 +03:00
parent c1c2feae08
commit c7701ce1b1

View file

@ -22,7 +22,9 @@ class APIDomainAdminContactsTest < ApplicationIntegrationTest
headers: { 'HTTP_AUTHORIZATION' => http_auth_key } headers: { 'HTTP_AUTHORIZATION' => http_auth_key }
assert_response :bad_request assert_response :bad_request
assert_equal ({ code: 2304, message: 'Admin contacts must be identical', data: {} }), assert_equal ({ code: 2304,
message: 'New and current admin contacts ident data must be identical',
data: {} }),
JSON.parse(response.body, symbolize_names: true) JSON.parse(response.body, symbolize_names: true)
end end
@ -55,8 +57,9 @@ class APIDomainAdminContactsTest < ApplicationIntegrationTest
headers: { 'HTTP_AUTHORIZATION' => http_auth_key } headers: { 'HTTP_AUTHORIZATION' => http_auth_key }
assert_response :ok assert_response :ok
assert_equal ({ code: 1000, message: 'Command completed successfully', data: { affected_domains: %w[airport.test shop.test], assert_equal ({ code: 1000, message: 'Command completed successfully',
skipped_domains: [] }}), data: { affected_domains: %w[airport.test shop.test],
skipped_domains: [] } }),
JSON.parse(response.body, symbolize_names: true) JSON.parse(response.body, symbolize_names: true)
end end