Skip to content
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

Add table azure_healthcare_service closes #297 #345

Merged
merged 8 commits into from
Sep 28, 2021
Merged

Conversation

ParthaI
Copy link
Contributor

@ParthaI ParthaI commented Sep 27, 2021

Integration test logs

Logs
No env file present for the current environment:  staging 
 Falling back to .env config
No env file present for the current environment:  staging
customEnv TURBOT_TEST_EXPECTED_TIMEOUT undefined

SETUP: tests/azure_healthcare_service []

PRETEST: tests/azure_healthcare_service

TEST: tests/azure_healthcare_service
Running terraform
data.azurerm_client_config.current: Refreshing state...
azurerm_resource_group.named_test_resource: Refreshing state... [id=/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest79657]
data.null_data_source.resource: Refreshing state...
azurerm_healthcare_service.named_test_resource: Refreshing state... [id=/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest79657/providers/Microsoft.HealthcareApis/services/turbottest79657]
azurerm_healthcare_service.named_test_resource: Destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest79657/providers/Microsoft.HealthcareApis/services/turbottest79657]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 10s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 20s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 30s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 40s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 50s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 1m0s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 1m10s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 1m20s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 1m30s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 1m40s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 1m50s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 2m0s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 2m10s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 2m20s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 2m30s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 2m40s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 2m50s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 3m0s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 3m10s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 3m20s elapsed]
azurerm_healthcare_service.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...ealthcareApis/services/turbottest79657, 3m30s elapsed]
azurerm_healthcare_service.named_test_resource: Destruction complete after 3m34s
azurerm_resource_group.named_test_resource: Destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest79657]
azurerm_resource_group.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...c76659c/resourceGroups/turbottest79657, 10s elapsed]
azurerm_resource_group.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...c76659c/resourceGroups/turbottest79657, 20s elapsed]
azurerm_resource_group.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...c76659c/resourceGroups/turbottest79657, 30s elapsed]
azurerm_resource_group.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...c76659c/resourceGroups/turbottest79657, 40s elapsed]
azurerm_resource_group.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...c76659c/resourceGroups/turbottest79657, 50s elapsed]
azurerm_resource_group.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...c76659c/resourceGroups/turbottest79657, 1m0s elapsed]
azurerm_resource_group.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...c76659c/resourceGroups/turbottest79657, 1m10s elapsed]
azurerm_resource_group.named_test_resource: Still destroying... [id=/subscriptions/d46d7416-f95f-4771-bbb5-...c76659c/resourceGroups/turbottest79657, 1m20s elapsed]
azurerm_resource_group.named_test_resource: Destruction complete after 1m23s
azurerm_resource_group.named_test_resource: Creating...
azurerm_resource_group.named_test_resource: Creation complete after 1s [id=/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest50660]
azurerm_healthcare_service.named_test_resource: Creating...
azurerm_healthcare_service.named_test_resource: Still creating... [10s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [20s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [30s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [40s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [50s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [1m0s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [1m10s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [1m20s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [1m30s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [1m40s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [1m50s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [2m0s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [2m10s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [2m20s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [2m30s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [2m40s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [2m50s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [3m0s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [3m10s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [3m20s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [3m30s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [3m40s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [3m50s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [4m0s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [4m10s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [4m20s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [4m30s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [4m40s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [4m50s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [5m0s elapsed]
azurerm_healthcare_service.named_test_resource: Still creating... [5m10s elapsed]
azurerm_healthcare_service.named_test_resource: Creation complete after 5m14s [id=/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest50660/providers/Microsoft.HealthcareApis/services/turbottest50660]

Warning: Deprecated Resource

The null_data_source was historically used to construct intermediate values to
re-use elsewhere in configuration, the same can now be achieved using locals


Apply complete! Resources: 2 added, 0 changed, 2 destroyed.

Outputs:

resource_aka = azure:///subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest50660/providers/Microsoft.HealthcareApis/services/turbottest50660
resource_aka_lower = azure:///subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourcegroups/turbottest50660/providers/microsoft.healthcareapis/services/turbottest50660
resource_id = /subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest50660/providers/Microsoft.HealthcareApis/services/turbottest50660
resource_name = turbottest50660
subscription_id = d46d7416-f95f-4771-bbb5-529d4c76659c

Running SQL query: test-get-query.sql
[
  {
    "id": "/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest50660/providers/Microsoft.HealthcareApis/services/turbottest50660",
    "kind": "fhir-R4",
    "name": "turbottest50660",
    "region": "eastus",
    "type": "Microsoft.HealthcareApis/services"
  }
]
✔ PASSED

Running SQL query: test-list-query.sql
[
  {
    "id": "/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest50660/providers/Microsoft.HealthcareApis/services/turbottest50660",
    "name": "turbottest50660"
  }
]
✔ PASSED

Running SQL query: test-not-found-query.sql
null
✔ PASSED

Running SQL query: test-turbot-query.sql
[
  {
    "akas": [
      "azure:///subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest50660/providers/Microsoft.HealthcareApis/services/turbottest50660",
      "azure:///subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourcegroups/turbottest50660/providers/microsoft.healthcareapis/services/turbottest50660"
    ],
    "name": "turbottest50660",
    "tags": {
      "name": "turbottest50660"
    },
    "title": "turbottest50660"
  }
]
✔ PASSED

POSTTEST: tests/azure_healthcare_service

TEARDOWN: tests/azure_healthcare_service

SUMMARY:

1/1 passed.

Example query results

Results

Basic info

select
  name,
  id,
  kind,
  type,
  allow_credentials,
  audience,
  authority
from
  azure_healthcare_service;
+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------+---------+------------------------------
| name            | id                                                                                                                                             | kind    | type                         
+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------+---------+------------------------------
| test12we        | /subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/hipaa-hitrust/providers/Microsoft.HealthcareApis/services/test12we          | fhir-R4 | Microsoft.HealthcareApis/serv
| turbottest50660 | /subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest50660/providers/Microsoft.HealthcareApis/services/turbottest50660 | fhir-R4 | Microsoft.HealthcareApis/serv
+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------+---------+------------------------------

List private endpoint connection details for healthcare service

select
  name,
  id,
  p ->> 'PrivateEndpointConnectionId' as private_endpoint_connection_id,
  p ->> 'ProvisioningState' as private_endpoint_provisioning_state,
  p ->> 'PrivateEndpointConnectionName' as private_endpoint_connection_name,
  p ->> 'PrivateEndpointConnectionType' as private_endpoint_connection_type
from
  azure_healthcare_service,
  jsonb_array_elements(private_endpoint_connections) as p;
+----------+---------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------
| name     | id                                                                                                                                    | private_endpoint_connection_id                         
+----------+---------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------
| test12we | /subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/hipaa-hitrust/providers/Microsoft.HealthcareApis/services/test12we | /subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/res
+----------+---------------------------------------------------------------------------------------------------------------------------------------+--------------------------------------------------------

@ParthaI ParthaI self-assigned this Sep 27, 2021
@ParthaI ParthaI linked an issue Sep 27, 2021 that may be closed by this pull request
Copy link
Contributor

@bigdatasourav bigdatasourav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bigdatasourav bigdatasourav merged commit 191cd37 into main Sep 28, 2021
@bigdatasourav bigdatasourav deleted the issue-297 branch September 28, 2021 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add table azure_healthcare_service
2 participants