Skip to content

Commit

Permalink
disable jwt/cognito-dependent tests
Browse files Browse the repository at this point in the history
see #364
  • Loading branch information
alexdunnjpl committed Sep 16, 2022
1 parent ab95176 commit 9857349
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pds_doi_service/api/test/test_dois_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ def test_get_dois(self):

self.assert400(response, "Response body is : " + response.data.decode("utf-8"))

@unittest.skipIf(os.environ.get("CI") == "true", "Test is currently broken in Github Actions workflow. See #364")
@patch.object(pds_doi_service.api.controllers.dois_controller.DOICoreActionList, "run", list_action_run_patch)
@patch.object(pds_doi_service.api.controllers.dois_controller.DOICoreActionUpdate, "run", update_action_run_patch)
def test_post_dois_update_w_url(self):
Expand Down Expand Up @@ -345,6 +346,7 @@ def test_post_dois_update_w_url(self):
self.assertEqual(update_record.update_date, datetime.fromisoformat("2020-10-20T14:04:12.560568-07:00"))
self.assertEqual(update_record.status, DoiStatus.Draft)

@unittest.skipIf(os.environ.get("CI") == "true", "Test is currently broken in Github Actions workflow. See #364")
@patch.object(pds_doi_service.api.controllers.dois_controller.DOICoreActionList, "run", list_action_run_patch)
@patch.object(pds_doi_service.api.controllers.dois_controller.DOICoreActionUpdate, "run", update_action_run_patch)
def test_post_dois_update_w_payload(self):
Expand Down Expand Up @@ -385,6 +387,7 @@ def test_post_dois_update_w_payload(self):
self.assertEqual(update_record.update_date, datetime.fromisoformat("2020-10-20T14:04:12.560568-07:00"))
self.assertEqual(update_record.status, DoiStatus.Draft)

@unittest.skipIf(os.environ.get("CI") == "true", "Test is currently broken in Github Actions workflow. See #364")
@patch.object(pds_doi_service.api.controllers.dois_controller.DOICoreActionList, "run", list_action_run_patch)
@patch.object(pds_doi_service.api.controllers.dois_controller.DOICoreActionReserve, "run", reserve_action_run_patch)
def test_post_dois_reserve(self):
Expand Down Expand Up @@ -432,6 +435,7 @@ def test_post_dois_reserve(self):
self.assertEqual(reserve_record.identifier, "urn:nasa:pds:insight_cameras::2.0")
self.assertEqual(reserve_record.status, DoiStatus.Draft)

@unittest.skipIf(os.environ.get("CI") == "true", "Test is currently broken in Github Actions workflow. See #364")
def test_post_dois_invalid_requests(self):
"""Test invalid POST requests"""

Expand Down

0 comments on commit 9857349

Please sign in to comment.