added shunter to test

This commit is contained in:
olegphenomenon 2022-12-05 15:04:54 +02:00
parent 2ee77fc8e9
commit 88ed185558

View file

@ -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