Skip to content

Commit

Permalink
Update test docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerdahl committed Feb 6, 2019
1 parent bc72b79 commit f9b8d9d
Show file tree
Hide file tree
Showing 15 changed files with 7,632 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" ?>
<ns1:log count="0" start="0" total="0" xmlns:ns1="http://ns.dataone.org/service/types/v1"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" ?>
<ns1:log count="0" start="0" total="0" xmlns:ns1="http://ns.dataone.org/service/types/v2.0"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" ?>
<ns1:log count="3" start="0" total="3" xmlns:ns1="http://ns.dataone.org/service/types/v1">
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_3</identifier>
<ipAddress>&lt;NotAuthorized&gt;</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>&lt;NotAuthorized&gt;</subject>
<event>create</event>
<dateLogged>1977-05-30T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_4</identifier>
<ipAddress>127.0.0.1</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>trusted_subj</subject>
<event>create</event>
<dateLogged>1977-05-31T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_5</identifier>
<ipAddress>127.0.0.1</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>trusted_subj</subject>
<event>create</event>
<dateLogged>1977-06-01T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
</ns1:log>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" ?>
<ns1:log count="3" start="0" total="3" xmlns:ns1="http://ns.dataone.org/service/types/v2.0">
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_3</identifier>
<ipAddress>&lt;NotAuthorized&gt;</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>&lt;NotAuthorized&gt;</subject>
<event>create</event>
<dateLogged>1977-05-30T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_4</identifier>
<ipAddress>127.0.0.1</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>trusted_subj</subject>
<event>create</event>
<dateLogged>1977-05-31T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_5</identifier>
<ipAddress>127.0.0.1</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>trusted_subj</subject>
<event>create</event>
<dateLogged>1977-06-01T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
</ns1:log>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" ?>
<ns1:log count="3" start="0" total="3" xmlns:ns1="http://ns.dataone.org/service/types/v1">
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_3</identifier>
<ipAddress>&lt;NotAuthorized&gt;</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>&lt;NotAuthorized&gt;</subject>
<event>create</event>
<dateLogged>1977-05-30T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_4</identifier>
<ipAddress>&lt;NotAuthorized&gt;</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>&lt;NotAuthorized&gt;</subject>
<event>create</event>
<dateLogged>1977-05-31T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_5</identifier>
<ipAddress>&lt;NotAuthorized&gt;</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>&lt;NotAuthorized&gt;</subject>
<event>create</event>
<dateLogged>1977-06-01T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
</ns1:log>
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" ?>
<ns1:log count="3" start="0" total="3" xmlns:ns1="http://ns.dataone.org/service/types/v2.0">
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_3</identifier>
<ipAddress>&lt;NotAuthorized&gt;</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>&lt;NotAuthorized&gt;</subject>
<event>create</event>
<dateLogged>1977-05-30T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_4</identifier>
<ipAddress>&lt;NotAuthorized&gt;</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>&lt;NotAuthorized&gt;</subject>
<event>create</event>
<dateLogged>1977-05-31T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_5</identifier>
<ipAddress>&lt;NotAuthorized&gt;</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>&lt;NotAuthorized&gt;</subject>
<event>create</event>
<dateLogged>1977-06-01T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
</ns1:log>
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" ?>
<ns1:log count="4" start="0" total="4" xmlns:ns1="http://ns.dataone.org/service/types/v1">
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_2</identifier>
<ipAddress>127.0.0.1</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>trusted_subj</subject>
<event>create</event>
<dateLogged>1977-05-29T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_3</identifier>
<ipAddress>127.0.0.1</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>trusted_subj</subject>
<event>create</event>
<dateLogged>1977-05-30T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_4</identifier>
<ipAddress>127.0.0.1</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>trusted_subj</subject>
<event>create</event>
<dateLogged>1977-05-31T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_5</identifier>
<ipAddress>&lt;NotAuthorized&gt;</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>&lt;NotAuthorized&gt;</subject>
<event>create</event>
<dateLogged>1977-06-01T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
</ns1:log>
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" ?>
<ns1:log count="4" start="0" total="4" xmlns:ns1="http://ns.dataone.org/service/types/v2.0">
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_2</identifier>
<ipAddress>127.0.0.1</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>trusted_subj</subject>
<event>create</event>
<dateLogged>1977-05-29T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_3</identifier>
<ipAddress>127.0.0.1</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>trusted_subj</subject>
<event>create</event>
<dateLogged>1977-05-30T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_4</identifier>
<ipAddress>127.0.0.1</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>trusted_subj</subject>
<event>create</event>
<dateLogged>1977-05-31T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>[ENTRY-ID]</entryId>
<identifier>glr_authz_5</identifier>
<ipAddress>&lt;NotAuthorized&gt;</ipAddress>
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
<subject>&lt;NotAuthorized&gt;</subject>
<event>create</event>
<dateLogged>1977-06-01T00:00:00Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
</ns1:log>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/templates/home.xsl"?>
<error detailCode="0" errorCode="400" name="InvalidRequest"
nodeId="urn:node:KNB">
<description>Requested a non-existing slice. start=100000 count=100
total=1826
</description>
</error>
103 changes: 103 additions & 0 deletions test_utilities/src/d1_test/test_docs/xml/log_v1_10_items.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/xsl" href="/static/xslt/dataone_types.xsl"?>
<ns1:log count="1000" start="2000" total="4000" xmlns:ns1="http://ns.dataone.org/service/types/v1">
<logEntry>
<entryId>3298</entryId>
<identifier>ark:/13030/m50000sp/3/cadwsap-s3600587-002.xml-long-long-long-long-long-long-long-long-long-long-long-long-long-long-long-long-long-long-long-long-long-long-long-long-long-long</identifier>
<ipAddress>128.48.120.79</ipAddress>
<userAgent>user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-user-</userAgent>
<subject>public</subject>
<event>create</event>
<dateLogged>2013-09-10T00:39:09.389Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>3299</entryId>
<identifier>ark:/13030/m50000sp/3/mrt-dataone-map.rdf</identifier>
<ipAddress>128.48.120.79</ipAddress>
<userAgent>N/A</userAgent>
<subject>public</subject>
<event>read</event>
<dateLogged>2013-09-10T00:39:33.067Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>3300</entryId>
<identifier>ark:/13030/m50000sp/3/mrt-dataone-map.rdf</identifier>
<ipAddress>128.48.120.79</ipAddress>
<userAgent>N/A</userAgent>
<subject>public</subject>
<event>read</event>
<dateLogged>2013-09-10T00:40:02.532Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>3301</entryId>
<identifier>ark:/13030/m50000sp/3/cadwsap-s3600587-002-main.csv</identifier>
<ipAddress>128.48.120.79</ipAddress>
<userAgent>N/A</userAgent>
<subject>public</subject>
<event>read</event>
<dateLogged>2013-09-10T18:44:27.285Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>3302</entryId>
<identifier>ark:/13030/m50000sp/3/cadwsap-s3600587-002.pdf</identifier>
<ipAddress>128.48.120.79</ipAddress>
<userAgent>N/A</userAgent>
<subject>public</subject>
<event>read</event>
<dateLogged>2013-09-10T18:44:27.378Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>3303</entryId>
<identifier>ark:/13030/m50000sp/3/cadwsap-s3600587-002-vuln.csv</identifier>
<ipAddress>128.48.120.79</ipAddress>
<userAgent>N/A</userAgent>
<subject>public</subject>
<event>read</event>
<dateLogged>2013-09-10T18:44:27.473Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>3304</entryId>
<identifier>ark:/13030/m50000sp/3/cadwsap-s3600587-002.xml</identifier>
<ipAddress>128.48.120.79</ipAddress>
<userAgent>N/A</userAgent>
<subject>public</subject>
<event>read</event>
<dateLogged>2013-09-10T18:44:27.667Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>3305</entryId>
<identifier>ark:/13030/m50000sp/3/mrt-dataone-map.rdf</identifier>
<ipAddress>128.48.120.79</ipAddress>
<userAgent>N/A</userAgent>
<subject>public</subject>
<event>read</event>
<dateLogged>2013-09-10T18:44:27.748Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>3306</entryId>
<identifier>ark:/13030/m50000sp/3/cadwsap-s3600587-002.xml</identifier>
<ipAddress>128.48.120.79</ipAddress>
<userAgent>N/A</userAgent>
<subject>public</subject>
<event>read</event>
<dateLogged>2013-09-10T23:00:11.425Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
<logEntry>
<entryId>3307</entryId>
<identifier>ark:/13030/m50000sp/3/mrt-dataone-map.rdf</identifier>
<ipAddress>128.48.120.79</ipAddress>
<userAgent>N/A</userAgent>
<subject>public</subject>
<event>read</event>
<dateLogged>2013-09-10T23:00:11.794Z</dateLogged>
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
</logEntry>
</ns1:log>
46 changes: 46 additions & 0 deletions test_utilities/src/d1_test/test_docs/xml/node_v1_complete.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<v1:node replicate="false" synchronize="true" type="cn" state="up" xmlns:v1="http://ns.dataone.org/service/types/v1">
<identifier>string</identifier>
<name>string</name>
<description>string</description>
<baseURL>http://www.any.org/ventos/verrantque</baseURL>
<!--Optional:-->
<services>
<!--1 or more repetitions:-->
<service name="MNCore" version="v1" available="true"/>
<service name="MNRead" version="v1" available="true"/>
<service name="MNAuthorization" version="v1" available="false"/>
<service name="MNStorage" version="v1" available="false"/>
<service name="MNReplication" version="v1" available="false">
<!--Zero or more repetitions:-->
<restriction methodName="string">
<!--Zero or more repetitions:-->
<subject>string</subject>
</restriction>
</service>
</services>
<!--Optional:-->
<synchronization>
<schedule hour="*" mday="*" min="0/3" mon="1" sec="0" wday="?" year="*"/>
<!--Optional:-->
<lastHarvested>2009-05-16T06:42:28</lastHarvested>
<!--Optional:-->
<lastCompleteHarvest>2003-08-08T18:18:37-06:00</lastCompleteHarvest>
</synchronization>
<!--Optional:-->
<nodeReplicationPolicy>
<!--Optional:-->
<maxObjectSize>11</maxObjectSize>
<!--Optional:-->
<spaceAllocated>11</spaceAllocated>
<!--Zero or more repetitions:-->
<allowedNode>string</allowedNode>
<!--Zero or more repetitions:-->
<allowedObjectFormat>string</allowedObjectFormat>
</nodeReplicationPolicy>
<!--Optional:-->
<ping success="false" lastSuccess="2002-06-24T09:46:32-06:00"/>
<!--Zero or more repetitions:-->
<subject>string</subject>
<!--1 or more repetitions:-->
<contactSubject>string</contactSubject>
</v1:node>
Loading

0 comments on commit f9b8d9d

Please sign in to comment.