From 1c25a0693172ca14c8db87ad7ae60de6504b60ec Mon Sep 17 00:00:00 2001 From: dinsmol Date: Tue, 28 Sep 2021 18:05:32 +0300 Subject: [PATCH] added tests --- .../epp/domain/create/base_test.rb | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/test/integration/epp/domain/create/base_test.rb b/test/integration/epp/domain/create/base_test.rb index 63212d2fa..4932c6989 100644 --- a/test/integration/epp/domain/create/base_test.rb +++ b/test/integration/epp/domain/create/base_test.rb @@ -814,4 +814,42 @@ class EppDomainCreateBaseTest < EppTestCase assert_correct_against_schema response_xml assert_epp_response :billing_failure end + + def test_registers_disputed_domain_with_password + now = Time.zone.parse('2010-07-05') + travel_to now + disputed_domain = disputes(:active) + password = disputed_domain.password + + request_xml = <<-XML + + + + + + #{disputed_domain.domain_name} + #{contacts(:john).code} + + + + + #{'test' * 2000} + + #{password} + + + + + + XML + + assert_difference 'Domain.count' do + post epp_create_path, params: { frame: request_xml }, + headers: { 'HTTP_COOKIE' => 'session=api_bestnames' } + end + response_xml = Nokogiri::XML(response.body) + + assert_correct_against_schema response_xml + assert_epp_response :completed_successfully + end end