def test_CRUD_hl7v2_store(test_dataset, capsys): hl7v2_stores.create_hl7v2_store( service_account_json, project_id, cloud_region, dataset_id, hl7v2_store_id) hl7v2_stores.get_hl7v2_store( service_account_json, project_id, cloud_region, dataset_id, hl7v2_store_id) hl7v2_stores.list_hl7v2_stores( service_account_json, project_id, cloud_region, dataset_id) hl7v2_stores.delete_hl7v2_store( service_account_json, project_id, cloud_region, dataset_id, hl7v2_store_id) out, _ = capsys.readouterr() # Check that create/get/list/delete worked assert 'Created HL7v2 store' in out assert 'Name' in out assert 'hl7V2Stores' in out assert 'Deleted HL7v2 store' in out
def test_CRUD_hl7v2_store(test_dataset, crud_hl7v2_store_id, capsys): hl7v2_stores.create_hl7v2_store(project_id, cloud_region, dataset_id, hl7v2_store_id) hl7v2_stores.get_hl7v2_store(project_id, cloud_region, dataset_id, hl7v2_store_id) hl7v2_stores.list_hl7v2_stores(project_id, cloud_region, dataset_id) hl7v2_stores.delete_hl7v2_store(project_id, cloud_region, dataset_id, hl7v2_store_id) out, _ = capsys.readouterr() # Check that create/get/list/delete worked assert "Created HL7v2 store" in out assert "Name" in out assert "hl7V2Stores" in out assert "Deleted HL7v2 store" in out
def test_CRUD_hl7v2_store(test_dataset, crud_hl7v2_store_id, capsys): @backoff.on_exception(backoff.expo, HttpError, max_time=60) def create(): hl7v2_stores.create_hl7v2_store( project_id, location, dataset_id, hl7v2_store_id ) create() hl7v2_stores.get_hl7v2_store(project_id, location, dataset_id, hl7v2_store_id) hl7v2_stores.list_hl7v2_stores(project_id, location, dataset_id) hl7v2_stores.delete_hl7v2_store(project_id, location, dataset_id, hl7v2_store_id) out, _ = capsys.readouterr() # Check that create/get/list/delete worked assert "Created HL7v2 store" in out assert "Name" in out assert "hl7V2Stores" in out assert "Deleted HL7v2 store" in out