Skip to content

Commit

Permalink
Merge pull request veraPDF#118 from georgetarazevich/update-policy-fi…
Browse files Browse the repository at this point in the history
…le-#821

Update policy file
  • Loading branch information
MaximPlusov authored Nov 3, 2023
2 parents 5bd11d9 + 6ad10ab commit 6944f60
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions PDF_A-2a/821/loop-7.sch
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

<sch:pattern name = "Checking the taskException">
<sch:rule context="/report/jobs/job/taskException">
<sch:assert test='contains(exceptionMessage, "Exception: Caught unexpected runtime exception during validation caused by exception: Loop inside number tree")'>
Failed check, Expected Error: Exception: Caught unexpected runtime exception during validation caused by exception: Loop inside number tree
<sch:assert test='contains(exceptionMessage, "Exception: Caught unexpected runtime exception during validation caused by exception: Wrapped org.verapdf.exceptions.LoopedException: Loop inside number tree (unnamed script#1) caused by exception: Loop inside number tree")'>
Failed check, Expected Error: Exception: Caught unexpected runtime exception during validation caused by exception: Wrapped org.verapdf.exceptions.LoopedException: Loop inside number tree (unnamed script#1) caused by exception: Loop inside number tree
</sch:assert>
</sch:rule>
</sch:pattern>
Expand All @@ -34,12 +34,10 @@
</sch:rule>

<sch:rule context="/report/jobs/job/logs/logMessage">
<sch:assert test='
(contains(., "Exception caught when validating item") and @occurrences = "1" and @level = "WARNING") or
(contains(., "Undefined color space /g in a content stream") and @occurrences = "1" and @level = "SEVERE")
'>Invalid logs, Expected:
'WARNING: Exception caught when validating item' with 1 occurrences or
'SEVERE: Undefined color space /g in a content stream' with 1 occurrences</sch:assert>
<sch:assert test='(contains(., "Undefined color space /g in a content stream") and @occurrences = "1" and @level = "SEVERE") or
(contains(., "Exception caught when validating item") and @occurrences = "1" and @level = "WARNING")'>Invalid logs, Expected:
'SEVERE: Undefined color space /g in a content stream' with 1 occurrences, or
'WARNING: Exception caught when validating item' with 1 occurrences</sch:assert>
</sch:rule>
</sch:pattern>

Expand Down

0 comments on commit 6944f60

Please sign in to comment.