From 3d9a763f32c52a22e125346829379acdb74c478b Mon Sep 17 00:00:00 2001 From: Oleg Hasjanov Date: Fri, 18 Jun 2021 12:46:05 +0300 Subject: [PATCH 1/3] fixed bag, added test --- app/models/depp/contact.rb | 3 ++- app/models/depp/domain.rb | 22 ++++++------------- .../registrar_area/domain/domain_test.rb | 20 +++++++++++++++++ 3 files changed, 29 insertions(+), 16 deletions(-) create mode 100644 test/system/registrar_area/domain/domain_test.rb diff --git a/app/models/depp/contact.rb b/app/models/depp/contact.rb index 2d85d1459..db67c20ed 100644 --- a/app/models/depp/contact.rb +++ b/app/models/depp/contact.rb @@ -77,7 +77,8 @@ module Depp def user=(user) @user = user - @epp_xml = EppXml::Contact.new(cl_trid_prefix: user.tag) + @epp_xml = EppXml::Contact.new(cl_trid_prefix: user.tag, schema_prefix: 'contact-ee', + schema_version: '1.1') end def info_xml(id, password = nil) diff --git a/app/models/depp/domain.rb b/app/models/depp/domain.rb index f9e065241..e75bdd420 100644 --- a/app/models/depp/domain.rb +++ b/app/models/depp/domain.rb @@ -53,11 +53,6 @@ module Depp current_user.request(xml) end - def hostname_present - domain_params[:nameservers_attributes] - .select { |_key, value| value['hostname'].present? }.any? - end - def create(domain_params) dns_hash = {} keys = Domain.create_dnskeys_hash(domain_params) @@ -66,16 +61,16 @@ module Depp period = domain_params[:period].to_i.to_s period_unit = domain_params[:period][-1].to_s - xml = if hostname_present - epp_xml.create({ + xml = if domain_params[:nameservers_attributes].select { |key, value| value['hostname'].present? }.any? + epp_xml.create({ name: { value: domain_params[:name] }, period: { value: period, attrs: { unit: period_unit } }, ns: Domain.create_nameservers_hash(domain_params), registrant: { value: domain_params[:registrant] }, _anonymus: Domain.create_contacts_hash(domain_params) }, dns_hash, Domain.construct_custom_params_hash(domain_params)) - else - epp_xml.create({ + else + epp_xml.create({ name: { value: domain_params[:name] }, period: { value: period, attrs: { unit: period_unit } }, registrant: { value: domain_params[:registrant] }, @@ -242,12 +237,9 @@ module Depp rem_arr << { ns: rem_ns } if rem_ns.any? rem_arr << { _anonymus: rem_anon } if rem_anon.any? - return if domain_params[:registrant] == old_domain_params[:registrant] - - chg = [{ registrant: { value: domain_params[:registrant] } }] - if domain_params[:verified].blank? && (domain_params[:verified]) - chg = [{ registrant: { value: domain_params[:registrant], - attrs: { verified: 'yes' } } }] + if domain_params[:registrant] != old_domain_params[:registrant] + chg = [{ registrant: { value: domain_params[:registrant] } }] unless domain_params[:verified].present? + chg = [{ registrant: { value: domain_params[:registrant], attrs: { verified: 'yes' } } }] if domain_params[:verified] end add_arr = nil if add_arr.none? diff --git a/test/system/registrar_area/domain/domain_test.rb b/test/system/registrar_area/domain/domain_test.rb new file mode 100644 index 000000000..fc6cf9e89 --- /dev/null +++ b/test/system/registrar_area/domain/domain_test.rb @@ -0,0 +1,20 @@ +require 'application_system_test_case' + +class Domainest < ApplicationSystemTestCase + setup do + @user = users(:api_bestnames) + @contact = contacts(:jack) + + @domain = domains(:shop) + + sign_in @user + end + + def test_update_tech_contact + visit edit_registrar_domains_path + "?domain_name=#{@domain.name}" + fill_in 'domain_contacts_attributes_0_code_helper', with: "#{@contact.code} #{@contact.name}" + click_on 'Save' + + assert_redirect_to info_registrar_domains_url(domain_name: @domain_params[:name]) + end +end From 285eb28ac689c421e31e144840572a470856fa91 Mon Sep 17 00:00:00 2001 From: Oleg Hasjanov Date: Fri, 18 Jun 2021 13:54:28 +0300 Subject: [PATCH 2/3] refactoring, added webclient for system tests --- app/models/depp/contact.rb | 12 ++--- app/models/depp/domain.rb | 28 +++++----- .../files/webclient/webclient.crt.pem | 35 +++++++++++++ .../files/webclient/webclient.key.pem | 51 +++++++++++++++++++ .../registrar_area/domain/domain_test.rb | 2 +- 5 files changed, 107 insertions(+), 21 deletions(-) create mode 100644 test/fixtures/files/webclient/webclient.crt.pem create mode 100644 test/fixtures/files/webclient/webclient.key.pem diff --git a/app/models/depp/contact.rb b/app/models/depp/contact.rb index db67c20ed..33b7545b7 100644 --- a/app/models/depp/contact.rb +++ b/app/models/depp/contact.rb @@ -3,9 +3,9 @@ module Depp include ActiveModel::Model attr_accessor :id, :name, :email, :phone, :org_name, - :ident, :ident_type, :ident_country_code, - :street, :city, :zip, :state, :country_code, - :password, :legal_document, :statuses, :code + :ident, :ident_type, :ident_country_code, + :street, :city, :zip, :state, :country_code, + :password, :legal_document, :statuses, :code DISABLED = 'Disabled' DISCLOSURE_TYPES = [DISABLED, '1', '0'] @@ -78,7 +78,7 @@ module Depp def user=(user) @user = user @epp_xml = EppXml::Contact.new(cl_trid_prefix: user.tag, schema_prefix: 'contact-ee', - schema_version: '1.1') + schema_version: '1.1') end def info_xml(id, password = nil) @@ -237,11 +237,11 @@ module Depp case action when :create - ident = ident_xml[:_anonymus].try(:first) + ident = ident_xml[:_anonymus].try(:first) when :update # detect if any ident has changed, nb! ident and self.ident is not always same if !(ident == self.ident && ident == self.ident_type && ident_country_code == self.ident_country_code) - ident = ident_xml[:_anonymus].try(:first) + ident = ident_xml[:_anonymus].try(:first) end end diff --git a/app/models/depp/domain.rb b/app/models/depp/domain.rb index e75bdd420..451cfa458 100644 --- a/app/models/depp/domain.rb +++ b/app/models/depp/domain.rb @@ -62,20 +62,20 @@ module Depp period_unit = domain_params[:period][-1].to_s xml = if domain_params[:nameservers_attributes].select { |key, value| value['hostname'].present? }.any? - epp_xml.create({ - name: { value: domain_params[:name] }, - period: { value: period, attrs: { unit: period_unit } }, - ns: Domain.create_nameservers_hash(domain_params), - registrant: { value: domain_params[:registrant] }, - _anonymus: Domain.create_contacts_hash(domain_params) - }, dns_hash, Domain.construct_custom_params_hash(domain_params)) - else - epp_xml.create({ - name: { value: domain_params[:name] }, - period: { value: period, attrs: { unit: period_unit } }, - registrant: { value: domain_params[:registrant] }, - _anonymus: Domain.create_contacts_hash(domain_params) - }, dns_hash, Domain.construct_custom_params_hash(domain_params)) + epp_xml.create({ + name: { value: domain_params[:name] }, + period: { value: period, attrs: { unit: period_unit } }, + ns: Domain.create_nameservers_hash(domain_params), + registrant: { value: domain_params[:registrant] }, + _anonymus: Domain.create_contacts_hash(domain_params) + }, dns_hash, Domain.construct_custom_params_hash(domain_params)) + else + epp_xml.create({ + name: { value: domain_params[:name] }, + period: { value: period, attrs: { unit: period_unit } }, + registrant: { value: domain_params[:registrant] }, + _anonymus: Domain.create_contacts_hash(domain_params) + }, dns_hash, Domain.construct_custom_params_hash(domain_params)) end current_user.request(xml) diff --git a/test/fixtures/files/webclient/webclient.crt.pem b/test/fixtures/files/webclient/webclient.crt.pem new file mode 100644 index 000000000..2bd2bd098 --- /dev/null +++ b/test/fixtures/files/webclient/webclient.crt.pem @@ -0,0 +1,35 @@ +-----BEGIN CERTIFICATE----- +MIIGJDCCBAygAwIBAgICEAAwDQYJKoZIhvcNAQELBQAwgZcxCzAJBgNVBAYTAkVF +MREwDwYDVQQIDAhIYXJqdW1hYTEQMA4GA1UEBwwHVGFsbGlubjEjMCEGA1UECgwa +RWVzdGkgSW50ZXJuZXRpIFNpaHRhc3V0dXMxDTALBgNVBAsMBE9sZWcxDTALBgNV +BAMMBE9sZWcxIDAeBgkqhkiG9w0BCQEWEWhlbGxvQGludGVybmV0LmVlMB4XDTIx +MDEwNDE0MzIzMFoXDTIyMDEwNDE0MzIzMFowgYUxCzAJBgNVBAYTAkVFMREwDwYD +VQQIDAhIYXJqdW1hYTEjMCEGA1UECgwaRWVzdGkgSW50ZXJuZXRpIFNpaHRhc3V0 +dXMxDTALBgNVBAsMBE9sZWcxDTALBgNVBAMMBE9sZWcxIDAeBgkqhkiG9w0BCQEW +EWhlbGxvQGludGVybmV0LmVlMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKC +AgEAzVhEINjYMjhDMV8LpndKAIS3ympF+Jzjqw/MAIVpF3kh4DuF7qJ95VxNJVQe +0fPm8grGo7LLFkesKmIm69iUPiHJUFwc3loz83twndICAI6DO5G4/CqhMeMzLAn6 +X6GJGClXtVtgWZiIJ5Q5nFhtH5to6OF8fAngA0d+lyo/a8+qqN+Sb6bGxX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OA7n4AeHYoQfmGno4Vwz2zousAdvNfTtBm+ZfJoyALDf0y1EHdkMPVc +WnYVbIFpJEb6xtVtVqqghrtG/EnksS+mBQqk2Er/NCj4T1EewHuUqOb09rqR5WNW +d9MYlPFYxI/4LvAJLQSDPU/456M0dOja75Pz7s1Pxp5CynAh/Yk8svIhakCA7faJ +ltiXZalaNrAD9RplofSbuK/vhzceFcBsozIyiw1/Pd0cgKIr/VMIaTPUxY3cWnX1 +n3hzKVEFFATlUPDTlUxBZzRiEjAr9TqbJKHapxMXEn6mVXkhOTpiZ4+Hxu4xlOPY +/m17qvEipZGubHfIJdBI+iTax0M9/GIkIGbnXP/c92hhBjmAj4Awkg== +-----END CERTIFICATE----- diff --git a/test/fixtures/files/webclient/webclient.key.pem b/test/fixtures/files/webclient/webclient.key.pem new file mode 100644 index 000000000..5b26d1424 --- /dev/null +++ b/test/fixtures/files/webclient/webclient.key.pem @@ -0,0 +1,51 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIJKgIBAAKCAgEAzVhEINjYMjhDMV8LpndKAIS3ympF+Jzjqw/MAIVpF3kh4DuF +7qJ95VxNJVQe0fPm8grGo7LLFkesKmIm69iUPiHJUFwc3loz83twndICAI6DO5G4 +/CqhMeMzLAn6X6GJGClXtVtgWZiIJ5Q5nFhtH5to6OF8fAngA0d+lyo/a8+qqN+S +b6bGxXbCULyXnWHCK2KoReHZNrboPAHJgLD0l6H6ZDhQDFb+2aWebtWLUarswpbB +bcdT6gujLlR9a7a5BHKqPjyAK4ZDZmp7ciXkNfn1jqre3DIBnMKOz3UjK96xtSGx +y5PI3X81oBXy5KiQbLExzHV4L7r3gTKcDPyRXLPafmAGgWyscNFQ5itmHsaavIgx +Q7lHthWXI1am4R/NS2Ovkf32A8W8cZ+gfyuSgK046CBZxnkNjNsmRguPUvFdOU2U +1nrJq+3YKhAPu2QsYyYxd+8hCMkVn9vy3P5s6azv+ErdfPjtplBdVAjOByY2P0zZ +aYdBbY+YG7Q/CB35yCHeJ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fXnQvYqHwuL5eWaDI +ulm1fis4jcB+BBJ6Yiy8foH9YV7FHJ1fabydl+mn3HOOQV7KOtrrRAOzXyUp73xf +5bY/EIu8N+s4ACrGhLzeGttTTylLtNHYgQKCAQEAl2Dsilpn7OSTrg8NJ5tzYIIZ +mCZnCOQuoOJx3Ds5n8VP8y+ecaBey8nq2TdeayYCzHy1jaBbKxjz5IN9pH7f6NKy +ng00nqmmb4oowwDpBSnufJDpTOB0VncGXzLspSq5suap0DYy3k8bvpNLesIMNjXl +aCmjVBZSWxbqvmbVTkL7PX7bdtLiNEDx1EV69k0ElKz6q4aCuYP8z2IyLUU+awtZ +OERvJMOgIxZL5pCUy92XqEcUMFuSXmr1HtBKXIsy5wsw2x6Ioc9t+ROVpdaMtbU2 +Yky5MI/nWamfc3ZAhN6nA86JR2JB6E36lNew0Na5SOt368gPtSmfERBOpGoRpw== +-----END RSA PRIVATE KEY----- diff --git a/test/system/registrar_area/domain/domain_test.rb b/test/system/registrar_area/domain/domain_test.rb index fc6cf9e89..3e5ce91db 100644 --- a/test/system/registrar_area/domain/domain_test.rb +++ b/test/system/registrar_area/domain/domain_test.rb @@ -14,7 +14,7 @@ class Domainest < ApplicationSystemTestCase visit edit_registrar_domains_path + "?domain_name=#{@domain.name}" fill_in 'domain_contacts_attributes_0_code_helper', with: "#{@contact.code} #{@contact.name}" click_on 'Save' - + assert_redirect_to info_registrar_domains_url(domain_name: @domain_params[:name]) end end From 72b3fdebad3fe6fd4eb22643db6e9bd554085791 Mon Sep 17 00:00:00 2001 From: Oleg Hasjanov Date: Fri, 18 Jun 2021 14:04:27 +0300 Subject: [PATCH 3/3] updated application yml sample file for system tests --- app/models/depp/domain.rb | 29 ++++++++++--------- config/application.yml.sample | 13 +++++++++ .../registrar_area/domain/domain_test.rb | 20 ------------- 3 files changed, 29 insertions(+), 33 deletions(-) delete mode 100644 test/system/registrar_area/domain/domain_test.rb diff --git a/app/models/depp/domain.rb b/app/models/depp/domain.rb index 451cfa458..398839f80 100644 --- a/app/models/depp/domain.rb +++ b/app/models/depp/domain.rb @@ -61,21 +61,22 @@ module Depp period = domain_params[:period].to_i.to_s period_unit = domain_params[:period][-1].to_s - xml = if domain_params[:nameservers_attributes].select { |key, value| value['hostname'].present? }.any? + xml = if domain_params[:nameservers_attributes] + .select { |_key, value| value['hostname'].present? }.any? epp_xml.create({ - name: { value: domain_params[:name] }, - period: { value: period, attrs: { unit: period_unit } }, - ns: Domain.create_nameservers_hash(domain_params), - registrant: { value: domain_params[:registrant] }, - _anonymus: Domain.create_contacts_hash(domain_params) - }, dns_hash, Domain.construct_custom_params_hash(domain_params)) + name: { value: domain_params[:name] }, + period: { value: period, attrs: { unit: period_unit } }, + ns: Domain.create_nameservers_hash(domain_params), + registrant: { value: domain_params[:registrant] }, + _anonymus: Domain.create_contacts_hash(domain_params) + }, dns_hash, Domain.construct_custom_params_hash(domain_params)) else epp_xml.create({ - name: { value: domain_params[:name] }, - period: { value: period, attrs: { unit: period_unit } }, - registrant: { value: domain_params[:registrant] }, - _anonymus: Domain.create_contacts_hash(domain_params) - }, dns_hash, Domain.construct_custom_params_hash(domain_params)) + name: { value: domain_params[:name] }, + period: { value: period, attrs: { unit: period_unit } }, + registrant: { value: domain_params[:registrant] }, + _anonymus: Domain.create_contacts_hash(domain_params) + }, dns_hash, Domain.construct_custom_params_hash(domain_params)) end current_user.request(xml) @@ -239,7 +240,9 @@ module Depp if domain_params[:registrant] != old_domain_params[:registrant] chg = [{ registrant: { value: domain_params[:registrant] } }] unless domain_params[:verified].present? - chg = [{ registrant: { value: domain_params[:registrant], attrs: { verified: 'yes' } } }] if domain_params[:verified] + if domain_params[:verified] + chg = [{ registrant: { value: domain_params[:registrant], attrs: { verified: 'yes' } } }] + end end add_arr = nil if add_arr.none? diff --git a/config/application.yml.sample b/config/application.yml.sample index 02396aad3..70bb4a1b5 100644 --- a/config/application.yml.sample +++ b/config/application.yml.sample @@ -198,6 +198,19 @@ test: cdns_scanner_output_file: 'test/fixtures/files/cdns_output.txt' dnssec_resolver_ips: 8.8.8.8, 8.8.4.4 legal_documents_dir: 'test/fixtures/files' + + openssl_config_path: 'test/fixtures/files/test_ca/openssl.cnf' + crl_dir: 'test/fixtures/files/test_ca/crl' + crl_path: 'test/fixtures/files/test_ca/crl/crl.pem' + ca_cert_path: 'test/fixtures/files/test_ca/certs/ca.crt.pem' + ca_key_path: 'test/fixtures/files/test_ca/private/ca.key.pem' + ca_key_password: 'password' + + cert_path: 'test/fixtures/files/webclient/webclient.crt.pem' + key_path: 'test/fixtures/files/webclient/webclient.key.pem' + epp_hostname: 'epp_proxy' + epp_port: '700' + epp_sessions_per_registrar: '4' # Airbrake // Errbit: airbrake_host: "https://your-errbit-host.ee" diff --git a/test/system/registrar_area/domain/domain_test.rb b/test/system/registrar_area/domain/domain_test.rb deleted file mode 100644 index 3e5ce91db..000000000 --- a/test/system/registrar_area/domain/domain_test.rb +++ /dev/null @@ -1,20 +0,0 @@ -require 'application_system_test_case' - -class Domainest < ApplicationSystemTestCase - setup do - @user = users(:api_bestnames) - @contact = contacts(:jack) - - @domain = domains(:shop) - - sign_in @user - end - - def test_update_tech_contact - visit edit_registrar_domains_path + "?domain_name=#{@domain.name}" - fill_in 'domain_contacts_attributes_0_code_helper', with: "#{@contact.code} #{@contact.name}" - click_on 'Save' - - assert_redirect_to info_registrar_domains_url(domain_name: @domain_params[:name]) - end -end