mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 22:16:19 +02:00
added shunter to test
This commit is contained in:
parent
2ee77fc8e9
commit
88ed185558
1 changed files with 6 additions and 2 deletions
|
@ -189,14 +189,16 @@ class EppContactInfoBaseTest < EppTestCase
|
|||
end
|
||||
|
||||
def test_contact_info_of_another_registar_should_be_hidden
|
||||
ENV["shunter_default_threshold"] = '1'
|
||||
ENV["shunter_enabled"] = 'true'
|
||||
contact = contacts(:jack)
|
||||
assert_equal 'jack-001', contact.code
|
||||
assert_equal [Contact::OK, Contact::LINKED], contact.statuses
|
||||
assert_equal 'jack@inbox.test', contact.email
|
||||
assert_equal '+555.555', contact.phone
|
||||
|
||||
contact.update(code: contact.code.upcase)
|
||||
contact.reload
|
||||
# https://github.com/internetee/registry/issues/415
|
||||
contact.update_columns(code: contact.code.upcase)
|
||||
|
||||
request_xml = <<-XML
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
|
@ -223,6 +225,8 @@ class EppContactInfoBaseTest < EppTestCase
|
|||
.text
|
||||
assert_equal 'No access', response_xml.at_xpath('//contact:voice', contact: xml_schema).text
|
||||
assert_equal 'goodnames', response_xml.at_xpath('//contact:clID', contact: xml_schema).text
|
||||
ENV["shunter_default_threshold"] = '10000'
|
||||
ENV["shunter_enabled"] = 'false'
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue