コード例 #1
0
def test_bad_policy_upload():
    """Test if the policy server is down."""
    try_good_upload('good', 'FAILED', 'Policy Validation', 0)
コード例 #2
0
def test_bad_tarfile_upload():
    """Test if the metadata is down."""
    try_good_upload('bad-tarfile', 'FAILED', 'Bad tarfile', 0)
コード例 #3
0
def test_bad_archiveinterface_upload():
    """Test if the archive interface is down."""
    try_good_upload('good', 'FAILED', 'ingest files', 0, 10)
コード例 #4
0
def test_bad_json_upload():
    """Test if the metadata is down."""
    try_good_upload('bad-json', 'FAILED', 'load metadata', 0)
コード例 #5
0
def test_bad_metadata_upload():
    """Test if the metadata is down."""
    try_good_upload('bad-mimetype', 'FAILED', 'ingest metadata', 0)
コード例 #6
0
def test_bad_hashsum_upload():
    """Test if the metadata is down."""
    try_good_upload('bad-hashsum', 'FAILED', 'ingest files', 0)
コード例 #7
0
def test_bad_proposal_upload():
    """Test if the metadata is down."""
    try_good_upload('bad-proposal', 'FAILED', 'Policy Validation', 0)
コード例 #8
0
def test_good_upload():
    """Test the good upload."""
    try_good_upload('good', 'OK', 'ingest metadata', 100)