From 5545cf02a174f8abca7982431eff067d99cccd7a Mon Sep 17 00:00:00 2001 From: dinsmol Date: Thu, 7 Oct 2021 15:55:54 +0300 Subject: [PATCH] fixed test --- .../registrar_area/xml_consoles_test.rb | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/test/system/registrar_area/xml_consoles_test.rb b/test/system/registrar_area/xml_consoles_test.rb index 7c4a074a98..a6555ce717 100644 --- a/test/system/registrar_area/xml_consoles_test.rb +++ b/test/system/registrar_area/xml_consoles_test.rb @@ -16,6 +16,14 @@ def test_epp_server_does_not_response def test_update_dnskey @domain = domains(:shop) + @dnskey = dnskeys(:one) + @dnskeynew = dnskeys(:two) + visit registrar_xml_console_path + fill_in 'payload', with: schema_dnskey_rem(@dnskey) + click_on 'Send EPP Request' + fill_in 'payload', with: schema_dnskey_rem(@dnskeynew) + click_on 'Send EPP Request' + visit registrar_xml_console_path fill_in 'payload', with: schema_dnskey_add click_on 'Send EPP Request' @@ -39,8 +47,35 @@ def test_update_dnskey private + def schema_dnskey_rem(key) + <<~XML + + + + + + shop.test + + + + + + + #{key.flags} + #{key.protocol} + #{key.alg} + #{key.public_key} + + + + + 0.04946500 1632965705 + + + XML + end + def schema_dnskey_add - @dnskey = dnskeys(:one) <<~XML