mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
Updated integration test
This commit is contained in:
parent
c1c2feae08
commit
c7701ce1b1
1 changed files with 14 additions and 11 deletions
|
@ -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,7 +57,8 @@ 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',
|
||||||
|
data: { affected_domains: %w[airport.test shop.test],
|
||||||
skipped_domains: [] } }),
|
skipped_domains: [] } }),
|
||||||
JSON.parse(response.body, symbolize_names: true)
|
JSON.parse(response.body, symbolize_names: true)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue