03:58:01 tests/test_deposit.py ...FF [ 71%] 04:04:01 tests/test_git_loader.py . [ 85%] 04:06:32 tests/test_vault.py . [100%] 04:07:00 04:07:00 =================================== FAILURES =================================== 04:07:00 ______________________ test_create_deposit_with_metadata _______________________ 04:07:00 04:07:00 deposit_host = 04:07:00 04:07:00 def test_create_deposit_with_metadata(deposit_host): 04:07:00 deposit = deposit_host.check_output( 04:07:00 'swh deposit upload --format json --username test --password test ' 04:07:00 '--url http://nginx:5080/deposit/1 ' 04:07:00 '--archive /tmp/archive.tgz ' 04:07:00 '--metadata /tmp/metadata.xml') 04:07:00 deposit = json.loads(deposit) 04:07:00 04:07:00 assert set(deposit.keys()) == {'deposit_id', 'deposit_status', 04:07:00 'deposit_status_detail', 'deposit_date'} 04:07:00 assert deposit['deposit_status'] == 'deposited' 04:07:00 deposit_id = deposit['deposit_id'] 04:07:00 04:07:00 for i in range(60): 04:07:00 status = json.loads(deposit_host.check_output( 04:07:00 'swh deposit status --format json --username test --password test ' 04:07:00 '--url http://nginx:5080/deposit/1 --deposit-id %s' % deposit_id)) 04:07:00 if status['deposit_status'] == 'done': 04:07:00 break 04:07:00 time.sleep(1) 04:07:00 else: 04:07:00 > assert False, "Deposit loading failed" 04:07:00 E AssertionError: Deposit loading failed 04:07:00 E assert False 04:07:00 04:07:00 tests/test_deposit.py:65: AssertionError 04:07:00 ________________________ test_create_deposit_multipart _________________________ 04:07:00 04:07:00 deposit_host = 04:07:00 04:07:00 def test_create_deposit_multipart(deposit_host): 04:07:00 deposit = deposit_host.check_output( 04:07:00 'swh deposit upload --format json --username test --password test ' 04:07:00 '--url http://nginx:5080/deposit/1 ' 04:07:00 '--archive /tmp/archive.tgz ' 04:07:00 '--partial') 04:07:00 deposit = json.loads(deposit) 04:07:00 04:07:00 assert set(deposit.keys()) == {'deposit_id', 'deposit_status', 04:07:00 'deposit_status_detail', 'deposit_date'} 04:07:00 assert deposit['deposit_status'] == 'partial' 04:07:00 deposit_id = deposit['deposit_id'] 04:07:00 04:07:00 deposit = deposit_host.check_output( 04:07:00 'swh deposit upload --format json --username test --password test ' 04:07:00 '--url http://nginx:5080/deposit/1 ' 04:07:00 '--metadata /tmp/metadata.xml ' 04:07:00 '--deposit-id %s' 04:07:00 % deposit_id) 04:07:00 deposit = json.loads(deposit) 04:07:00 assert deposit['deposit_status'] == 'deposited' 04:07:00 assert deposit['deposit_id'] == deposit_id 04:07:00 04:07:00 for i in range(60): 04:07:00 status = json.loads(deposit_host.check_output( 04:07:00 'swh deposit status --format json --username test --password test ' 04:07:00 '--url http://nginx:5080/deposit/1 --deposit-id %s' % deposit_id)) 04:07:00 if status['deposit_status'] == 'done': 04:07:00 break 04:07:00 time.sleep(1) 04:07:00 else: 04:07:00 > assert False, "Deposit loading failed; current status is %s" % status 04:07:00 E AssertionError: Deposit loading failed; current status is {'deposit_id': '3', 'deposit_status': 'rejected', 'deposit_status_detail': '- Mandatory fields are missing (atom:author)', 'deposit_swh_id': None, 'deposit_swh_id_context': None, 'deposit_external_id': None} 04:07:00 E assert False 04:07:00 04:07:00 tests/test_deposit.py:99: AssertionError 04:07:00 =========================== short test summary info ============================ 04:07:00 FAILED tests/test_deposit.py::test_create_deposit_with_metadata - AssertionEr... 04:07:00 FAILED tests/test_deposit.py::test_create_deposit_multipart - AssertionError:...