Skip to content

Commit a49a543

Browse files
committed
Update test sample docs
1 parent 65c1a94 commit a49a543

6 files changed

+77
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<new sample file>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ContextManager: disable_auth()
2+
Request kwargs:
3+
{"headers":{"Charset":"utf-8","User-Agent":"DataONE-Python/[VERSION]
4+
+http://dataone.org/"},"params":{},"stream":false,"timeout":60.0,"verify":"/etc/ssl/certs/ca-certificates.crt"}
5+
Received callback. url="http://gmn.client/node/v2/error"
6+
Calling Django test client. base_url="http://gmn.client/node" url_path="/v2/error"
7+
Calling view: func_name="post_error", method="POST", args="()", kwargs="{'allowed_method_list': ['POST']}", url="/v2/error"
8+
Received notification of synchronization error from CN but was unable to deserialize the DataONE Exception passed by the CN.
9+
received_exception_xml="invalid xml doc" deserialize_error="Deserialization failed. error="Unable to deserialize XML to PyXB.
10+
error="<unknown>:1:0: syntax error" xml="invalid xml doc"" doc="invalid xml doc""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ContextManager: disable_auth()
2+
Request kwargs:
3+
{"headers":{"Charset":"utf-8","User-Agent":"DataONE-Python/[VERSION]
4+
+http://dataone.org/"},"params":{},"stream":false,"timeout":60.0,"verify":"/etc/ssl/certs/ca-certificates.crt"}
5+
Received callback. url="http://gmn.client/node/v1/error"
6+
Calling Django test client. base_url="http://gmn.client/node" url_path="/v1/error"
7+
Calling view: func_name="post_error", method="POST", args="()", kwargs="{'allowed_method_list': ['POST']}", url="/v1/error"
8+
Received notification of synchronization error from CN but was unable to deserialize the DataONE Exception passed by the CN.
9+
received_exception_xml="invalid xml doc" deserialize_error="Deserialization failed. error="Unable to deserialize XML to PyXB.
10+
error="<unknown>:1:0: syntax error" xml="invalid xml doc"" doc="invalid xml doc""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
ContextManager: disable_auth()
2+
Request kwargs:
3+
{"headers":{"Charset":"utf-8","User-Agent":"DataONE-Python/[VERSION]
4+
+http://dataone.org/"},"params":{},"stream":false,"timeout":60.0,"verify":"/etc/ssl/certs/ca-certificates.crt"}
5+
Received callback. url="http://gmn.client/node/v2/error"
6+
Calling Django test client. base_url="http://gmn.client/node" url_path="/v2/error"
7+
Calling view: func_name="post_error", method="POST", args="()", kwargs="{'allowed_method_list': ['POST']}", url="/v2/error"
8+
Received notification of synchronization error from CN but was unable to deserialize the DataONE Exception passed by the CN.
9+
received_exception_xml="invalid xml doc" deserialize_error="Deserialization failed. error="Unable to deserialize XML to PyXB.
10+
error="<unknown>:1:0: syntax error" xml="invalid xml doc"" doc="invalid xml doc""
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" ?>
2+
<ns1:log count="2" start="0" total="2" xmlns:ns1="http://ns.dataone.org/service/types/v1">
3+
<logEntry>
4+
<entryId>[ENTRY-ID]</entryId>
5+
<identifier>PID_rygfhjvahioa</identifier>
6+
<ipAddress>127.0.0.1</ipAddress>
7+
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
8+
<subject>trusted_subj</subject>
9+
<event>synchronization_failed</event>
10+
<dateLogged>1945-04-02T00:00:00Z</dateLogged>
11+
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
12+
</logEntry>
13+
<logEntry>
14+
<entryId>[ENTRY-ID]</entryId>
15+
<identifier>PID_rygfhjvahioa</identifier>
16+
<ipAddress>127.0.0.1</ipAddress>
17+
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
18+
<subject>trusted_subj</subject>
19+
<event>create</event>
20+
<dateLogged>2025-06-12T10:51:34Z</dateLogged>
21+
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
22+
</logEntry>
23+
</ns1:log>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" ?>
2+
<ns1:log count="2" start="0" total="2" xmlns:ns1="http://ns.dataone.org/service/types/v2.0">
3+
<logEntry>
4+
<entryId>[ENTRY-ID]</entryId>
5+
<identifier>PID_rygfhjvahioa</identifier>
6+
<ipAddress>127.0.0.1</ipAddress>
7+
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
8+
<subject>trusted_subj</subject>
9+
<event>synchronization_failed</event>
10+
<dateLogged>1945-04-02T00:00:00Z</dateLogged>
11+
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
12+
</logEntry>
13+
<logEntry>
14+
<entryId>[ENTRY-ID]</entryId>
15+
<identifier>PID_rygfhjvahioa</identifier>
16+
<ipAddress>127.0.0.1</ipAddress>
17+
<userAgent>DataONE-Python/[VERSION] +http://dataone.org/</userAgent>
18+
<subject>trusted_subj</subject>
19+
<event>create</event>
20+
<dateLogged>2025-06-12T10:51:34Z</dateLogged>
21+
<nodeIdentifier>urn:node:GMNUnitTestInstance</nodeIdentifier>
22+
</logEntry>
23+
</ns1:log>

0 commit comments

Comments
 (0)