Merge pull request #2057 from internetee/2046-request-and-response-should-have-same-schema

request and response have the same domain schema
This commit is contained in:
Timo Võhmar 2021-06-22 14:25:29 +03:00 committed by GitHub
commit 2ce12bd543
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 8 deletions

View file

@ -77,12 +77,12 @@ class EppDomainInfoBaseTest < EppTestCase
post epp_info_path, params: { frame: request_xml },
headers: { 'HTTP_COOKIE' => 'session=api_bestnames' }
response_xml = Nokogiri::XML(response.body)
assert_epp_response :completed_successfully
schema = EPP_ALL_SCHEMA
schema_validation_errors = schema.validate(response_xml)
assert_equal 0, schema_validation_errors.size
res = parsing_schemas_prefix_and_version(response.body)
assert_equal res[:prefix], 'domain-eis'
assert_equal res[:version], '1.0'
end
def test_returns_valid_response_if_disputed