Skip to content

Commit

Permalink
adjusted test files
Browse files Browse the repository at this point in the history
  • Loading branch information
dakbhavesh authored and Bhavesh Shah committed Jun 8, 2024
1 parent 812da70 commit 4916bb8
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 23 deletions.
4 changes: 2 additions & 2 deletions tests/examples/epcisXmlDocHavingEventWithIgnoreFields.hashes
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ni:///sha-256;cec19d047cf3b05d02cf719d9c35bc468e911d7b9f5d415ba67a074a104c28d2?ver=CBV2.0
ni:///sha-256;cec19d047cf3b05d02cf719d9c35bc468e911d7b9f5d415ba67a074a104c28d2?ver=CBV2.0
ni:///sha-256;573a43267f95d2ddbe7e7487ad3ffb89e78ee8c72a296b868d9e5baeb8baef34?ver=CBV2.0
ni:///sha-256;1e6c7bbfc2d3f744e99af09ad8216505b72f0ced383e391f92ab92674dc906c4?ver=CBV2.0
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
eventType=ObjectEventeventTime=2015-03-30T08:58:56.591ZeventTimeZoneOffset=+02:00quantityListquantityElementepcClass=https://id.gs1.org/01/04054739999612/10/2015-03-30aquantity=150uom=KGMaction=ADDbizStep=https://ref.gs1.org/cbv/BizStep-commissioningreadPointid=https://id.gs1.org/414/4054738000050{https://ns.example.com/epcis/}testField2=ABC
eventType=ObjectEventeventTime=2015-03-30T08:58:56.591ZeventTimeZoneOffset=+02:00quantityListquantityElementepcClass=https://id.gs1.org/01/04054739999612/10/2015-03-30aquantity=150uom=KGMaction=ADDbizStep=https://ref.gs1.org/cbv/BizStep-commissioningreadPointid=https://id.gs1.org/414/4054738000050{https://ns.example.com/epcis/}testField2=ABC

eventType=ObjectEventeventTime=2024-06-08T08:58:56.591ZeventTimeZoneOffset=+02:00quantityListquantityElementepcClass=https://id.gs1.org/01/04054739999612/10/2015-03-30aquantity=150uom=KGMaction=ADDbizStep=https://ref.gs1.org/cbv/BizStep-commissioningreadPointid=https://id.gs1.org/414/4054738000050{https://ns.example.com/epcis/}testField4=ABC
eventType=ObjectEventeventTime=2024-06-08T08:58:56.591ZeventTimeZoneOffset=+02:00quantityListquantityElementepcClass=https://id.gs1.org/01/04054739999612/10/2015-03-30aquantity=150uom=KGMaction=ADDbizStep=https://ref.gs1.org/cbv/BizStep-commissioningreadPointid=https://id.gs1.org/414/4054738000050{https://ns.example.com/epcis/}testField3=XYZ
16 changes: 9 additions & 7 deletions tests/examples/epcisXmlDocHavingEventWithIgnoreFields.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
<epcis:EPCISDocument xmlns:epcis="urn:epcglobal:epcis:xsd:2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cbv="https://ref.gs1.org/cbv/"
schemaVersion="2.0"
creationDate="2023-01-11T12:00:00.000+01:00"
creationDate="2024-06-08T12:00:00.000+01:00"
xsi:schemaLocation="urn:epcglobal:epcis:xsd:2 EPCglobal-epcis-2_0.xsd"
xmlns:repository-x="https://repository-x.example.com/"
xmlns:example="https://ns.example.com/epcis/">
<repository-x:ignoreFields>
<example:testField1/>
<example:testField2/>
</repository-x:ignoreFields>
<EPCISBody>
<EventList>
<ObjectEvent>
<eventTime>2015-03-30T10:58:56.591+02:00</eventTime>
<recordTime>2015-03-30T15:38:32.052+02:00</recordTime>
<eventTime>2024-06-08T10:58:56.591+02:00</eventTime>
<recordTime>2024-06-08T15:38:32.052+02:00</recordTime>
<eventTimeZoneOffset>+02:00</eventTimeZoneOffset>
<epcList/>
<action>ADD</action>
Expand All @@ -31,11 +32,11 @@
</quantityList>
</extension>
<example:testField1>123</example:testField1>
<example:testField2>ABC</example:testField2>
<example:testField4>ABC</example:testField4>
</ObjectEvent>
<ObjectEvent>
<eventTime>2015-03-30T10:58:56.591+02:00</eventTime>
<recordTime>2015-03-30T15:38:32.052+02:00</recordTime>
<eventTime>2024-06-08T10:58:56.591+02:00</eventTime>
<recordTime>2024-06-08T15:38:32.052+02:00</recordTime>
<eventTimeZoneOffset>+02:00</eventTimeZoneOffset>
<epcList/>
<action>ADD</action>
Expand All @@ -52,7 +53,8 @@
</quantityElement>
</quantityList>
</extension>
<example:testField2>ABC</example:testField2>
<example:testField2>123</example:testField2>
<example:testField3>XYZ</example:testField3>
</ObjectEvent>
</EventList>
</EPCISBody>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ni:///sha-256;cec19d047cf3b05d02cf719d9c35bc468e911d7b9f5d415ba67a074a104c28d2?ver=CBV2.0
ni:///sha-256;cec19d047cf3b05d02cf719d9c35bc468e911d7b9f5d415ba67a074a104c28d2?ver=CBV2.0
ni:///sha-256;573a43267f95d2ddbe7e7487ad3ffb89e78ee8c72a296b868d9e5baeb8baef34?ver=CBV2.0
ni:///sha-256;1e6c7bbfc2d3f744e99af09ad8216505b72f0ced383e391f92ab92674dc906c4?ver=CBV2.0
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
eventType=ObjectEventeventTime=2015-03-30T08:58:56.591ZeventTimeZoneOffset=+02:00quantityListquantityElementepcClass=https://id.gs1.org/01/04054739999612/10/2015-03-30aquantity=150uom=KGMaction=ADDbizStep=https://ref.gs1.org/cbv/BizStep-commissioningreadPointid=https://id.gs1.org/414/4054738000050{https://ns.example.com/epcis/}testField2=ABC
eventType=ObjectEventeventTime=2015-03-30T08:58:56.591ZeventTimeZoneOffset=+02:00quantityListquantityElementepcClass=https://id.gs1.org/01/04054739999612/10/2015-03-30aquantity=150uom=KGMaction=ADDbizStep=https://ref.gs1.org/cbv/BizStep-commissioningreadPointid=https://id.gs1.org/414/4054738000050{https://ns.example.com/epcis/}testField2=ABC
eventType=ObjectEventeventTime=2024-06-08T08:58:56.591ZeventTimeZoneOffset=+02:00quantityListquantityElementepcClass=https://id.gs1.org/01/04054739999612/10/2015-03-30aquantity=150uom=KGMaction=ADDbizStep=https://ref.gs1.org/cbv/BizStep-commissioningreadPointid=https://id.gs1.org/414/4054738000050{https://ns.example.com/epcis/}testField4=ABC
eventType=ObjectEventeventTime=2024-06-08T08:58:56.591ZeventTimeZoneOffset=+02:00quantityListquantityElementepcClass=https://id.gs1.org/01/04054739999612/10/2015-03-30aquantity=150uom=KGMaction=ADDbizStep=https://ref.gs1.org/cbv/BizStep-commissioningreadPointid=https://id.gs1.org/414/4054738000050{https://ns.example.com/epcis/}testField3=XYZ

16 changes: 9 additions & 7 deletions tests/examples/epcisXmlQueryDocHavingEventWithIgnoreFields.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
xmlns:cbvmda="urn:epcglobal:cbv:mda"
xmlns:sbdh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader"
schemaVersion="2.0"
creationDate="2005-07-11T11:30:47.0Z"
creationDate="2024-06-08T11:30:47.0Z"
xmlns:repository-x="https://repository-x.example.com/"
xmlns:example="https://ns.example.com/epcis/">
<repository-x:ignoreFields>
<example:testField1/>
<example:testField2/>
</repository-x:ignoreFields>
<queryName>SimpleEventQuery</queryName>
<resultsBody>
<EventList>
<ObjectEvent>
<eventTime>2015-03-30T10:58:56.591+02:00</eventTime>
<recordTime>2015-03-30T15:38:32.052+02:00</recordTime>
<eventTime>2024-06-08T10:58:56.591+02:00</eventTime>
<recordTime>2024-06-08T15:38:32.052+02:00</recordTime>
<eventTimeZoneOffset>+02:00</eventTimeZoneOffset>
<epcList/>
<action>ADD</action>
Expand All @@ -32,11 +33,11 @@
</quantityList>
</extension>
<example:testField1>123</example:testField1>
<example:testField2>ABC</example:testField2>
<example:testField4>ABC</example:testField4>
</ObjectEvent>
<ObjectEvent>
<eventTime>2015-03-30T10:58:56.591+02:00</eventTime>
<recordTime>2015-03-30T15:38:32.052+02:00</recordTime>
<eventTime>2024-06-08T10:58:56.591+02:00</eventTime>
<recordTime>2024-06-08T15:38:32.052+02:00</recordTime>
<eventTimeZoneOffset>+02:00</eventTimeZoneOffset>
<epcList/>
<action>ADD</action>
Expand All @@ -53,7 +54,8 @@
</quantityElement>
</quantityList>
</extension>
<example:testField2>ABC</example:testField2>
<example:testField2>123</example:testField2>
<example:testField3>XYZ</example:testField3>
</ObjectEvent>
</EventList>
</resultsBody>
Expand Down

0 comments on commit 4916bb8

Please sign in to comment.