-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from georgetarazevich/Issue-#1357
Add test files Issue #1357
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://purl.oclc.org/dsdl/schematron "> | ||
|
||
<!-- Issue# 1357 --> | ||
<!-- https://github.com/veraPDF/veraPDF-library/issues/1357 --> | ||
<!-- File: SKM_C360i23062710180.pdf --> | ||
|
||
<sch:pattern name = "Checking the validationReport: profile"> | ||
<sch:rule context="/report/jobs/job/validationReport"> | ||
<sch:assert test="(@isCompliant = 'true')">Failed check, Expected: isCompliant=true</sch:assert> | ||
</sch:rule> | ||
</sch:pattern> | ||
|
||
<sch:pattern name = "Checking the logs"> | ||
<sch:rule context="/report/jobs/job"> | ||
<sch:assert test="count(logs) = 1">Failed check, Expected: contains logs</sch:assert> | ||
</sch:rule> | ||
|
||
<sch:rule context="/report/jobs/job/logs"> | ||
<sch:assert test="@logsCount = '1'">Failed check, Expected: 1</sch:assert> | ||
</sch:rule> | ||
|
||
<sch:rule context="/report/jobs/job/logs/logMessage"> | ||
<sch:assert test='(contains(., "Dictionary/Stream contains duplicated key /OutputCondition(object key = 12 0 obj, offset = 10810)") and @occurrences = "1" and @level = "WARNING")'>Invalid logs, Expected: | ||
'WARNING: Dictionary/Stream contains duplicated key /OutputCondition(object key = 12 0 obj, offset = 10810)' with 1 occurrences</sch:assert> | ||
</sch:rule> | ||
</sch:pattern> | ||
|
||
</sch:schema> |