d1_test.replication_tester package

Submodules

d1_test.replication_tester.replication_error module

exception d1_test.replication_tester.replication_error.ReplicationTesterError(value)

Bases: Exception

d1_test.replication_tester.replication_server module

class d1_test.replication_tester.replication_server.TestHTTPServer(options, pid_unknown, pid_not_authorized, pid_known_and_authorized, src_existing_pid_approve, src_existing_pid_deny, queue)

Bases: threading.Thread

run()

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.

stop()
class d1_test.replication_tester.replication_server.Handler(request, client_address, server)

Bases: http.server.SimpleHTTPRequestHandler

do_GET()

Serve a GET request.

do_PUT()

d1_test.replication_tester.replication_tester module

Test replication request handling in source and destination MNs.

RepTest is documented in the Utilities section of the dataone.test_utilities package on PyPI.

d1_test.replication_tester.replication_tester.main()
d1_test.replication_tester.replication_tester.create_test_object_on_mn(base_url, pid)
class d1_test.replication_tester.replication_tester.ReplicationTester(options, pid_unknown, pid_not_authorized, pid_known_and_authorized, src_existing_pid_approve, src_existing_pid_deny, dst_existing_pid)

Bases: object

test_src_mn()
test_dst_mn()

d1_test.replication_tester.run_replication_tester module

d1_test.replication_tester.test_object_generator module

d1_test.replication_tester.test_object_generator.generate_random_ascii(prefix)
d1_test.replication_tester.test_object_generator.generate_science_object_with_sysmeta(pid, include_revision_bool=False)