mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 23:16:23 +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
|
end
|
||||||
|
|
||||||
def test_contact_info_of_another_registar_should_be_hidden
|
def test_contact_info_of_another_registar_should_be_hidden
|
||||||
|
ENV["shunter_default_threshold"] = '1'
|
||||||
|
ENV["shunter_enabled"] = 'true'
|
||||||
contact = contacts(:jack)
|
contact = contacts(:jack)
|
||||||
assert_equal 'jack-001', contact.code
|
assert_equal 'jack-001', contact.code
|
||||||
assert_equal [Contact::OK, Contact::LINKED], contact.statuses
|
assert_equal [Contact::OK, Contact::LINKED], contact.statuses
|
||||||
assert_equal 'jack@inbox.test', contact.email
|
assert_equal 'jack@inbox.test', contact.email
|
||||||
assert_equal '+555.555', contact.phone
|
assert_equal '+555.555', contact.phone
|
||||||
|
|
||||||
contact.update(code: contact.code.upcase)
|
# https://github.com/internetee/registry/issues/415
|
||||||
contact.reload
|
contact.update_columns(code: contact.code.upcase)
|
||||||
|
|
||||||
request_xml = <<-XML
|
request_xml = <<-XML
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
@ -223,6 +225,8 @@ class EppContactInfoBaseTest < EppTestCase
|
||||||
.text
|
.text
|
||||||
assert_equal 'No access', response_xml.at_xpath('//contact:voice', contact: xml_schema).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
|
assert_equal 'goodnames', response_xml.at_xpath('//contact:clID', contact: xml_schema).text
|
||||||
|
ENV["shunter_default_threshold"] = '10000'
|
||||||
|
ENV["shunter_enabled"] = 'false'
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue