Adjust test, only check for external_id as admin-only property

This commit is contained in:
mvdbeek
2021-04-26 12:24:37 +02:00
parent a1ccd5bb8f
commit 8e67d140fe
+2 -2
View File
@@ -38,7 +38,7 @@ class JobsApiTestCase(ApiTestCase, TestsTools):
self.__history_with_new_dataset(history_id)
jobs = self.__jobs_index(admin=False)
job = jobs[0]
self._assert_not_has_keys(job, "command_line", "external_id")
self._assert_not_has_keys(job, "external_id")
jobs = self.__jobs_index(admin=True)
job = jobs[0]
@@ -142,7 +142,7 @@ class JobsApiTestCase(ApiTestCase, TestsTools):
assert not job_lock_response.json()["active"]
show_jobs_response = self._get("jobs/%s" % job_id, admin=False)
self._assert_not_has_keys(show_jobs_response.json(), "command_line", "external_id")
self._assert_not_has_keys(show_jobs_response.json(), "external_id")
# TODO: Re-activate test case when API accepts privacy settings
# with self._different_user():