test_task_after_documents_upload
automation/tests/docsvc/document_review/test_document_review.py::TestDocumentReview::test_task_after_documents_upload
API test in suite
DocumentReview ·
first seen 2026-08-12 11:31:40 UTC · last seen 2026-11-17 00:21:42 UTC
· ← all runs
failing
Linear issues
| Issue | State | What it means now | Linked | |
|---|---|---|---|---|
| ENG-8844 [Test failure] Document action list now includes Document_Enhance; test expects exact old list (6 tests) | Completed · [email protected] | ENG-8844 is Completed; no run has started since | 2026-11-15 01:43:09 UTC by triage-agent (agent) · for api-tests-master The test is wrong |
api-tests-master — its newest 12 runs, oldest first
What changed when it broke on api-tests-master
reading the deploy trail and the test repo…
api-tests-production — its newest 8 runs, oldest first
Each distinct failure it has had (9)
9eec41cde952
in 0 runs · first
api-tests-master jenkins-597
(2026-11-15 00:26:03 UTC) · last
api-tests-master jenkins-599
(2026-11-17 00:21:42 UTC)
why AssertionError: Upload Pending actionList: ['Document_Download', 'Document_Copy', 'Document_Review', 'Document_eSign', 'Document_Share', 'Document_Comment', 'Document_Reject', 'Document_Assign', 'Document_Annotate', 'Document_Replace', 'Document_Rename', 'Document_Categorize', 'Document_Certify', 'Document_Archive', 'Document_Enhance']
assert ['Document_An...Comment', ...] == ['Document_An...Comment', ...]
At index 8 diff: 'Document_Enhance' != 'Document_Reject'
Left contains one more item: 'Document_eSign'
Full diff:
[
'Document_Annotate',
'Document_Archive',
'Document_Assign',
'Document_Categorize',
'Document_Certify',
'Document_Comment',
'Document_Copy',
'Document_Download',
+ 'Document_Enhance',
'Document_Reject',
'Document_Rename',
'Document_Replace',
'Document_Review',
'Document_Share',
'Document_eSign',
]
traceback
automation/tests/docsvc/document_review/test_document_review.py:78: in test_task_after_documents_upload
assert (
E AssertionError: Upload Pending actionList: ['Document_Download', 'Document_Copy', 'Document_Review', 'Document_eSign', 'Document_Share', 'Document_Comment', 'Document_Reject', 'Document_Assign', 'Document_Annotate', 'Document_Replace', 'Document_Rename', 'Document_Categorize', 'Document_Certify', 'Document_Archive', 'Document_Enhance']
E assert ['Document_An...Comment', ...] == ['Document_An...Comment', ...]
E
E At index 8 diff: 'Document_Enhance' != 'Document_Reject'
E Left contains one more item: 'Document_eSign'
E
E Full diff:
E [
E 'Document_Annotate',
E 'Document_Archive',
E 'Document_Assign',
E 'Document_Categorize',
E 'Document_Certify',
E 'Document_Comment',
E 'Document_Copy',
E 'Document_Download',
E + 'Document_Enhance',
E 'Document_Reject',
E 'Document_Rename',
E 'Document_Replace',
E 'Document_Review',
E 'Document_Share',
E 'Document_eSign',
E ]
ea2d2a339ea6
in 0 runs · first
api-tests-production jenkins-607
(2026-11-04 19:32:30 UTC) · last
api-tests-production jenkins-607
(2026-11-04 19:32:30 UTC)
why AssertionError: Draft actionList: ['Document_Download', 'Document_Copy', 'Document_eSign', 'Document_Share', 'Document_Comment', 'Document_Reject', 'Document_Assign', 'Document_Annotate', 'Document_Replace', 'Document_Rename', 'Document_Categorize', 'Document_Certify', 'Document_Archive']
assert ['Document_An...Comment', ...] == ['Document_Ca...ument_Rename']
At index 0 diff: 'Document_Annotate' != 'Document_Categorize'
Left contains 7 more items, first extra item: 'Document_Copy'
Full diff:
[
+ 'Document_Annotate',
+ 'Document_Archive',
+ 'Document_Assign',
'Document_Categorize',
'Document_Certify',
+ 'Document_Comment',
'Document_Copy',
- 'Document_Delete',
'Document_Download',
+ 'Document_Reject',
'Document_Rename',
+ 'Document_Replace',
+ 'Document_Share',
+ 'Document_eSign',
]
traceback
automation/tests/docsvc/document_review/test_document_review.py:70: in test_task_after_documents_upload
assert sorted(document["actionList"]) == expected_actions, f"Draft actionList: {document['actionList']}"
E AssertionError: Draft actionList: ['Document_Download', 'Document_Copy', 'Document_eSign', 'Document_Share', 'Document_Comment', 'Document_Reject', 'Document_Assign', 'Document_Annotate', 'Document_Replace', 'Document_Rename', 'Document_Categorize', 'Document_Certify', 'Document_Archive']
E assert ['Document_An...Comment', ...] == ['Document_Ca...ument_Rename']
E
E At index 0 diff: 'Document_Annotate' != 'Document_Categorize'
E Left contains 7 more items, first extra item: 'Document_Copy'
E
E Full diff:
E [
E + 'Document_Annotate',
E + 'Document_Archive',
E + 'Document_Assign',
E 'Document_Categorize',
E 'Document_Certify',
E + 'Document_Comment',
E 'Document_Copy',
E - 'Document_Delete',
E 'Document_Download',
E + 'Document_Reject',
E 'Document_Rename',
E + 'Document_Replace',
E + 'Document_Share',
E + 'Document_eSign',
E ]
a99bd6ede45e
in 0 runs · first
api-tests-master jenkins-576
(2026-10-28 00:27:17 UTC) · last
api-tests-production jenkins-601
(2026-11-02 19:30:29 UTC)
why AssertionError: Draft actionList: ['Document_Download', 'Document_Copy', 'Document_Review', 'Document_eSign', 'Document_Share', 'Document_Comment', 'Document_Reject', 'Document_Assign', 'Document_Annotate', 'Document_Replace', 'Document_Rename', 'Document_Categorize', 'Document_Certify', 'Document_Archive']
assert ['Document_An...Comment', ...] == ['Document_Ca...ument_Rename']
At index 0 diff: 'Document_Annotate' != 'Document_Categorize'
Left contains 8 more items, first extra item: 'Document_Copy'
Full diff:
[
+ 'Document_Annotate',
+ 'Document_Archive',
+ 'Document_Assign',
'Document_Categorize',
'Document_Certify',
+ 'Document_Comment',
'Document_Copy',
- 'Document_Delete',
'Document_Download',
+ 'Document_Reject',
'Document_Rename',
+ 'Document_Replace',
+ 'Document_Review',
+ 'Document_Share',
+ 'Document_eSign',
]
traceback
automation/tests/docsvc/document_review/test_document_review.py:70: in test_task_after_documents_upload
assert sorted(document["actionList"]) == expected_actions, f"Draft actionList: {document['actionList']}"
E AssertionError: Draft actionList: ['Document_Download', 'Document_Copy', 'Document_Review', 'Document_eSign', 'Document_Share', 'Document_Comment', 'Document_Reject', 'Document_Assign', 'Document_Annotate', 'Document_Replace', 'Document_Rename', 'Document_Categorize', 'Document_Certify', 'Document_Archive']
E assert ['Document_An...Comment', ...] == ['Document_Ca...ument_Rename']
E
E At index 0 diff: 'Document_Annotate' != 'Document_Categorize'
E Left contains 8 more items, first extra item: 'Document_Copy'
E
E Full diff:
E [
E + 'Document_Annotate',
E + 'Document_Archive',
E + 'Document_Assign',
E 'Document_Categorize',
E 'Document_Certify',
E + 'Document_Comment',
E 'Document_Copy',
E - 'Document_Delete',
E 'Document_Download',
E + 'Document_Reject',
E 'Document_Rename',
E + 'Document_Replace',
E + 'Document_Review',
E + 'Document_Share',
E + 'Document_eSign',
E ]
b1e04d85cb2a
in 0 runs · first
api-tests-production jenkins-600
(2026-11-02 10:31:32 UTC) · last
api-tests-production jenkins-600
(2026-11-02 10:31:32 UTC)
why failed on setup with "KeyError: 'tildaid'"
traceback
automation/tests/fixtures/study_fixtures.py:499: in v2_protocol
result = setup.create_protocol_from_file("protocol_config.json", auto_publish=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
automation/tests/setup/protocol_setup.py:60: in create_protocol_from_file
result = self.creator.create_protocol_from_config(config_path, customize=customizations)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
automation/models/protocol_creator.py:49: in create_protocol_from_config
self._create_protocol(config["protocol"])
automation/models/protocol_creator.py:121: in _create_protocol
self.protocol_id = protocol_data["tildaid"]
^^^^^^^^^^^^^^^^^^^^^^^^
E KeyError: 'tildaid'
b360062659e0
in 0 runs · first
api-tests-production jenkins-599
(2026-11-01 19:23:47 UTC) · last
api-tests-production jenkins-599
(2026-11-01 19:23:47 UTC)
why failed on setup with "RuntimeError: add_site_to_study: study 10fb26c2-b28d-4575-990d-2e58d37f0c62 did not accept afac8a6f-e288-499c-a753-bc9a9b993a79: you do not have access to this resource"
traceback
automation/tests/fixtures/common.py:161: in shared_env
Study(cro_test_headers).add_site_to_study(
automation/models/study.py:63: in add_site_to_study
raise RuntimeError(
E RuntimeError: add_site_to_study: study 10fb26c2-b28d-4575-990d-2e58d37f0c62 did not accept afac8a6f-e288-499c-a753-bc9a9b993a79: you do not have access to this resource
2b69190e293e
in 0 runs · first
api-tests-master jenkins-578
(2026-10-30 00:24:41 UTC) · last
api-tests-master jenkins-578
(2026-10-30 00:24:41 UTC)
why failed on setup with "requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.automation.tilda.pizza/api/trialexec/study/86b92aef-19c6-4b6c-8137-4a5580680ff2/site/d949cc06-931c-4a00-a21b-b18ea39cefbe/studyprotocol"
traceback
automation/tests/fixtures/study_fixtures.py:528: in v2_protocol
study_protocol = StudySite(study_id, test_headers).get_study_procotol(site_id1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
automation/models/study_site.py:16: in get_study_procotol
response.raise_for_status()
.venv/lib/python3.12/site-packages/requests/models.py:1028: in raise_for_status
raise HTTPError(http_error_msg, response=self)
E requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.automation.tilda.pizza/api/trialexec/study/86b92aef-19c6-4b6c-8137-4a5580680ff2/site/d949cc06-931c-4a00-a21b-b18ea39cefbe/studyprotocol
e050857be931
in 0 runs · first
api-tests-production jenkins-527
(2026-08-25 21:09:35 UTC) · last
api-tests-master jenkins-577
(2026-10-29 00:22:03 UTC)
why failed on setup with "requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)"
traceback
.venv/lib/python3.12/site-packages/requests/models.py:978: in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/lib/python3.12/json/__init__.py:346: in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/lib/python3.12/json/decoder.py:338: in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/local/lib/python3.12/json/decoder.py:356: in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
E json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
automation/tests/fixtures/common.py:143: in shared_env
StudyActor(study["tildaid"], cro_test_headers).wait_till_default_actor_added()
automation/models/study_actor.py:171: in wait_till_default_actor_added
all_actors = response.json()
^^^^^^^^^^^^^^^
.venv/lib/python3.12/site-packages/requests/models.py:982: in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
E requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
06bf7c6ebc80
in 0 runs · first
api-tests-master jenkins-547
(2026-10-07 09:55:54 UTC) · last
api-tests-production jenkins-585
(2026-10-19 19:27:15 UTC)
why AssertionError: Expected action Document_Annotate not found in actionList
assert 'Document_Annotate' in ['Document_Download', 'Document_Copy', 'Document_Rename', 'Document_Categorize', 'Document_Certify', 'Document_Delete']
traceback
automation/tests/docsvc/document_review/test_document_review.py:76: in test_task_after_documents_upload
assert action in document["actionList"], f"Expected action {action} not found in actionList"
E AssertionError: Expected action Document_Annotate not found in actionList
E assert 'Document_Annotate' in ['Document_Download', 'Document_Copy', 'Document_Rename', 'Document_Categorize', 'Document_Certify', 'Document_Delete']
55092e6e2d96
in 0 runs · first
api-tests-production jenkins-546
(2026-09-11 19:26:54 UTC) · last
api-tests-production jenkins-569
(2026-10-04 19:23:26 UTC)
why AssertionError: Expected action Document_Archive not found in actionList
assert 'Document_Archive' in ['Document_Download', 'Document_Share', 'Document_Copy', 'Document_Comment', 'Document_Annotate', 'Document_Replace', ...]
traceback
automation/tests/docsvc/document_review/test_document_review.py:85: in test_task_after_documents_upload
assert action in document["actionList"], f"Expected action {action} not found in actionList"
E AssertionError: Expected action Document_Archive not found in actionList
E assert 'Document_Archive' in ['Document_Download', 'Document_Share', 'Document_Copy', 'Document_Comment', 'Document_Annotate', 'Document_Replace', ...]