Thanks Mike,
I thought for sure I tried adding the semi-colon on the end, apparently in all the tests I ran I did not.
Chris
Christopher Rizzo
Xerox Corporation
GDG/Discovery/Advance Technology
26600 SW Parkway Ave.
Wilsonville, OR 97070-9251
Phone: (585) 314-6936
Email: Christopher.Rizzo at xerox.com
"The realization came over me with full force that a good part of the remainder of my life was going to be spent in finding errors in my own programs."
-Maurice Wilkes, Memoirs of a Computer Pioneer
From: Michael Sweet <msweet at msweet.org>
Date: Thursday, May 28, 2020 at 2:34 PM
To: Christopher Rizzo <Christopher.Rizzo at xerox.com>
Cc: PWG Self-Certification <ippeveselfcert at pwg.org>, PWG Workgroup <ipp at pwg.org>
Subject: Re: [IPP] [IPP Everywhere Self-Certification] IPP Everywhere v1.1 Printer Self-Certification Tools: Second release candidate posted
Chris,
On May 28, 2020, at 4:59 PM, Rizzo, Christopher <Christopher.Rizzo at xerox.com<mailto:Christopher.Rizzo at xerox.com>> wrote:
Trying to determine the cause of these failures without much luck. I tried to create my own printer-supply test to isolate each of the regex's, but still getting the failure:
EXPECTED: printer-alert WITH-ALL-VALUES /^code=[A-Za-z]+(;index=[0-9]+|;severity=[A-Za-z]+|;training=[A-Za-z]+|;group=[A-Za-z]+|;groupindex=[0-9]+|;location=[0-9]+|;time=[0-9]+){0,};?$/
GOT: printer-alert="code=tonerLow;index=2;severity=warningBinaryChangeEvent;training=trained;group=markerSupplies;groupindex=2;location=956700;time=1590695059"
There is no trailing semicolon...
EXPECTED: printer-supply WITH-ALL-VALUES /^(type=[A-Za-z]+;|maxcapacity=-{0,1}[0-9]+;|level=-{0,1}[0-9]+;|index=[0-9]+;|markerindex=[0-9]+;|class=[A-Za-z]+;|unit=[A-Za-z]+;|colorantindex=[0-9]+;|colorantrole=[A-Za-z]+;|colorantname=[-_.A-Za-z0-9]+;|coloranttonality=[0-9]+;){0,}$/
GOT: printer-supply="type=toner;maxcapacity=5300;level=4717;class=supplyThatIsConsumed;unit=tenthsOfGrams;colorantindex=4;colorantrole=process;colorantname=black;coloranttonality=256"
Ditto...
________________________
Michael Sweet