mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +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 }
|
||||
|
||||
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)
|
||||
end
|
||||
|
||||
|
@ -55,8 +57,9 @@ class APIDomainAdminContactsTest < ApplicationIntegrationTest
|
|||
headers: { 'HTTP_AUTHORIZATION' => http_auth_key }
|
||||
|
||||
assert_response :ok
|
||||
assert_equal ({ code: 1000, message: 'Command completed successfully', data: { affected_domains: %w[airport.test shop.test],
|
||||
skipped_domains: [] }}),
|
||||
assert_equal ({ code: 1000, message: 'Command completed successfully',
|
||||
data: { affected_domains: %w[airport.test shop.test],
|
||||
skipped_domains: [] } }),
|
||||
JSON.parse(response.body, symbolize_names: true)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue