mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
fixed integration test
This commit is contained in:
parent
bc01dfaa3a
commit
8ccfaef699
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ class ReppV1WhiteIpsCreateTest < ActionDispatch::IntegrationTest
|
||||||
refute ActionMailer::Base.deliveries.last
|
refute ActionMailer::Base.deliveries.last
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_validates_ip_max_count
|
def test_validates_ipv6_range
|
||||||
request_body = {
|
request_body = {
|
||||||
white_ip: {
|
white_ip: {
|
||||||
address: '2001:db8::/120',
|
address: '2001:db8::/120',
|
||||||
|
@ -73,7 +73,7 @@ class ReppV1WhiteIpsCreateTest < ActionDispatch::IntegrationTest
|
||||||
json = JSON.parse(response.body, symbolize_names: true)
|
json = JSON.parse(response.body, symbolize_names: true)
|
||||||
|
|
||||||
assert_response :bad_request
|
assert_response :bad_request
|
||||||
assert json[:message].include? 'IP address limit exceeded'
|
assert json[:message].include? 'IPv6 address must be either a single address or a /64 range'
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_returns_error_response_if_throttled
|
def test_returns_error_response_if_throttled
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue