Skip to content

Commit

Permalink
Fix invalid data-sets for catalog unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vpodorozh committed Apr 8, 2024
1 parent 7fe9866 commit 1f00b03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
'<?xml version="1.0"?><config><option name="name_one" renderer="123true"><inputType name="name_one"/>' .
'</option></config>',
[
"Element 'option', attribute 'renderer': '123true' is not a valid value of the atomic type 'modelName'.\n" .
"Element 'option', attribute 'renderer': [facet 'pattern'] The value '123true' is not accepted by the pattern '([\\\]?[a-zA-Z_][a-zA-Z0-9_]*)+'.\n" .
"Line: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n1:<config><option name=\"name_one\" " .
"renderer=\"123true\"><inputType name=\"name_one\"/></option></config>\n2:\n"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
'type_modelinstance_invalid_value' => [
'<?xml version="1.0"?><config><type name="some_name" modelInstance="123" /></config>',
[
"Element 'type', attribute 'modelInstance': '123' is not a valid value of the atomic type 'modelName'.\n" .
"Element 'type', attribute 'modelInstance': [facet 'pattern'] The value '123' is not accepted by the pattern '([\\\]?[a-zA-Z_][a-zA-Z0-9_]*)+'.\n" .
"Line: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n1:<config><type name=\"some_name\" " .
"modelInstance=\"123\"/></config>\n2:\n"
],
Expand Down Expand Up @@ -71,16 +71,16 @@
'type_pricemodel_instance_invalid_value' => [
'<?xml version="1.0"?><config><type name="some_name"><priceModel instance="123123" /></type></config>',
[
"Element 'priceModel', attribute 'instance': '123123' is not a valid value of the atomic " .
"type 'modelName'.\nLine: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n1:<config><type " .
"Element 'priceModel', attribute 'instance': [facet 'pattern'] The value '123123' is not accepted by the pattern '([\\\]?[a-zA-Z_][a-zA-Z0-9_]*)+'.\n" .
"Line: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n1:<config><type " .
"name=\"some_name\"><priceModel instance=\"123123\"/></type></config>\n2:\n"
],
],
'type_indexermodel_instance_invalid_value' => [
'<?xml version="1.0"?><config><type name="some_name"><indexerModel instance="123" /></type></config>',
[
"Element 'indexerModel', attribute 'instance': '123' is not a valid value of the atomic type " .
"'modelName'.\nLine: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n1:<config><type " .
"Element 'indexerModel', attribute 'instance': [facet 'pattern'] The value '123' is not accepted by the pattern '([\\\\]?[a-zA-Z_][a-zA-Z0-9_]*)+'.\n" .
"Line: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n1:<config><type " .
"name=\"some_name\"><indexerModel instance=\"123\"/></type></config>\n2:\n"
],
],
Expand All @@ -102,8 +102,8 @@
'stockindexermodel_instance_invalid_value' => [
'<?xml version="1.0"?><config><type name="some_name"><stockIndexerModel instance="1234"/></type></config>',
[
"Element 'stockIndexerModel', attribute 'instance': '1234' is not a valid value of the atomic type " .
"'modelName'.\nLine: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n1:<config><type " .
"Element 'stockIndexerModel', attribute 'instance': [facet 'pattern'] The value '1234' is not accepted by the pattern '([\\\\]?[a-zA-Z_][a-zA-Z0-9_]*)+'.\n" .
"Line: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n1:<config><type " .
"name=\"some_name\"><stockIndexerModel instance=\"1234\"/></type></config>\n2:\n"
],
],
Expand Down

0 comments on commit 1f00b03

Please sign in to comment.