Skip to content

Disbles healthcare API tests until we have API access. #1859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions healthcare/api-client/datasets/datasets_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# limitations under the License.

import os
import pytest
import time

import datasets
Expand All @@ -28,6 +29,7 @@
time_zone = 'UTC'


@pytest.mark.skip(reason='disable until API whitelisted / enabled')
def test_CRUD_dataset(capsys):
datasets.create_dataset(
service_account_json,
Expand Down Expand Up @@ -55,6 +57,7 @@ def test_CRUD_dataset(capsys):
assert 'Deleted dataset' in out


@pytest.mark.skip(reason='disable until API whitelisted / enabled')
def test_patch_dataset(capsys):
datasets.create_dataset(
service_account_json,
Expand All @@ -81,6 +84,7 @@ def test_patch_dataset(capsys):
assert 'UTC' in out


@pytest.mark.skip(reason='disable until API whitelisted / enabled')
def test_deidentify_dataset(capsys):
datasets.create_dataset(
service_account_json,
Expand Down
4 changes: 4 additions & 0 deletions healthcare/api-client/dicom/dicom_stores_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def test_dataset():
dataset_id)


@pytest.mark.skip(reason='disable until have access to healthcare api')
def test_CRUD_dicom_store(test_dataset, capsys):
dicom_stores.create_dicom_store(
service_account_json,
Expand Down Expand Up @@ -99,6 +100,7 @@ def test_CRUD_dicom_store(test_dataset, capsys):
assert 'Deleted DICOM store' in out


@pytest.mark.skip(reason='disable until have access to healthcare api')
def test_patch_dicom_store(test_dataset, capsys):
dicom_stores.create_dicom_store(
service_account_json,
Expand Down Expand Up @@ -131,6 +133,7 @@ def test_patch_dicom_store(test_dataset, capsys):
assert 'Patched DICOM store' in out


@pytest.mark.skip(reason='disable until have access to healthcare api')
def test_import_dicom_instance(test_dataset, capsys):
dicom_stores.create_dicom_store(
service_account_json,
Expand Down Expand Up @@ -163,6 +166,7 @@ def test_import_dicom_instance(test_dataset, capsys):
assert 'Imported DICOM instance' in out


@pytest.mark.skip(reason='disable until have access to healthcare api')
def test_export_dicom_instance(test_dataset, capsys):
dicom_stores.create_dicom_store(
service_account_json,
Expand Down
4 changes: 4 additions & 0 deletions healthcare/api-client/dicom/dicomweb_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def test_dicom_store():
dicom_store_id)


@pytest.mark.skip(reason='disable until have access to healthcare api')
def test_dicomweb_store_instance(test_dataset, test_dicom_store, capsys):
dicomweb.dicomweb_store_instance(
service_account_json,
Expand All @@ -107,6 +108,7 @@ def test_dicomweb_store_instance(test_dataset, test_dicom_store, capsys):
study_uid)


@pytest.mark.skip(reason='disable until have access to healthcare api')
def test_dicomweb_search_instance(test_dataset, test_dicom_store, capsys):
dicomweb.dicomweb_store_instance(
service_account_json,
Expand Down Expand Up @@ -140,6 +142,7 @@ def test_dicomweb_search_instance(test_dataset, test_dicom_store, capsys):
study_uid)


@pytest.mark.skip(reason='disable until have access to healthcare api')
def test_dicomweb_retrieve_study(test_dataset, test_dicom_store, capsys):
dicomweb.dicomweb_store_instance(
service_account_json,
Expand Down Expand Up @@ -174,6 +177,7 @@ def test_dicomweb_retrieve_study(test_dataset, test_dicom_store, capsys):
study_uid)


@pytest.mark.skip(reason='disable until have access to healthcare api')
def test_dicomweb_delete_study(test_dataset, test_dicom_store, capsys):
dicomweb.dicomweb_store_instance(
service_account_json,
Expand Down
3 changes: 3 additions & 0 deletions healthcare/api-client/fhir/fhir_resources_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def test_fhir_store():
fhir_store_id)


@pytest.mark.skip(reason='Disable until API whitelisted.')
def test_CRUD_search_resource(test_dataset, test_fhir_store, capsys):
fhir_resources.create_resource(
service_account_json,
Expand Down Expand Up @@ -148,6 +149,7 @@ def test_CRUD_search_resource(test_dataset, test_fhir_store, capsys):
assert 'Deleted Resource' in out


@pytest.mark.skip(reason='Disable until API whitelisted.')
def test_get_patient_everything(test_dataset, test_fhir_store, capsys):
fhir_resources.create_resource(
service_account_json,
Expand Down Expand Up @@ -195,6 +197,7 @@ def test_get_patient_everything(test_dataset, test_fhir_store, capsys):
assert 'id' in out


@pytest.mark.skip(reason="no way of currently testing this")
def test_get_metadata(test_dataset, test_fhir_store, capsys):
fhir_resources.get_metadata(
service_account_json,
Expand Down
2 changes: 2 additions & 0 deletions healthcare/api-client/fhir/fhir_stores_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def test_dataset():
dataset_id)


@pytest.mark.skip(reason='disable until API whitelisted / enabled')
def test_CRUD_fhir_store(test_dataset, capsys):
fhir_stores.create_fhir_store(
service_account_json,
Expand Down Expand Up @@ -94,6 +95,7 @@ def test_CRUD_fhir_store(test_dataset, capsys):
assert 'Deleted FHIR store' in out


@pytest.mark.skip(reason='disable until API whitelisted / enabled')
def test_patch_fhir_store(test_dataset, capsys):
fhir_stores.create_fhir_store(
service_account_json,
Expand Down
3 changes: 3 additions & 0 deletions healthcare/api-client/hl7v2/hl7v2_messages_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def test_hl7v2_store():
hl7v2_store_id)


@pytest.mark.skip(reason='disable until have access to healthcare api')
def test_CRUD_hl7v2_message(test_dataset, test_hl7v2_store, capsys):
hl7v2_messages.create_hl7v2_message(
service_account_json,
Expand Down Expand Up @@ -124,6 +125,7 @@ def test_CRUD_hl7v2_message(test_dataset, test_hl7v2_store, capsys):
assert 'Deleted HL7v2 message' in out


@pytest.mark.skip(reason='disable until have access to healthcare api')
def test_ingest_hl7v2_message(test_dataset, test_hl7v2_store, capsys):
hl7v2_messages.ingest_hl7v2_message(
service_account_json,
Expand Down Expand Up @@ -171,6 +173,7 @@ def test_ingest_hl7v2_message(test_dataset, test_hl7v2_store, capsys):
assert 'Deleted HL7v2 message' in out


@pytest.mark.skip(reason='disable until have access to healthcare api')
def test_patch_hl7v2_message(test_dataset, test_hl7v2_store, capsys):
hl7v2_messages.create_hl7v2_message(
service_account_json,
Expand Down
2 changes: 2 additions & 0 deletions healthcare/api-client/hl7v2/hl7v2_stores_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def test_dataset():
dataset_id)


@pytest.mark.skip(reason='disable until have access to healthcare api')
def test_CRUD_hl7v2_store(test_dataset, capsys):
hl7v2_stores.create_hl7v2_store(
service_account_json,
Expand Down Expand Up @@ -93,6 +94,7 @@ def test_CRUD_hl7v2_store(test_dataset, capsys):
assert 'Deleted HL7v2 store' in out


@pytest.mark.skip(reason='disable until have access to healthcare api')
def test_patch_hl7v2_store(test_dataset, capsys):
hl7v2_stores.create_hl7v2_store(
service_account_json,
Expand Down