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_data_lake_store. Closes #209 #217

Merged
merged 6 commits into from
Aug 5, 2021
Merged

Conversation

bigdatasourav
Copy link
Contributor

@bigdatasourav bigdatasourav commented Jul 30, 2021

Integration test logs

Logs
SETUP: tests/azure_data_lake_store []

PRETEST: tests/azure_data_lake_store

TEST: tests/azure_data_lake_store
Running terraform
azurerm_resource_group.named_test_resource: Creating...
azurerm_resource_group.named_test_resource: Creation complete after 4s [id=/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest49601]
azurerm_data_lake_store.named_test_resource: Creating...
azurerm_data_lake_store.named_test_resource: Still creating... [10s elapsed]
azurerm_data_lake_store.named_test_resource: Still creating... [20s elapsed]
azurerm_data_lake_store.named_test_resource: Still creating... [30s elapsed]
azurerm_data_lake_store.named_test_resource: Still creating... [40s elapsed]
azurerm_data_lake_store.named_test_resource: Still creating... [50s elapsed]
azurerm_data_lake_store.named_test_resource: Still creating... [1m0s elapsed]
azurerm_data_lake_store.named_test_resource: Still creating... [1m10s elapsed]
azurerm_data_lake_store.named_test_resource: Creation complete after 1m16s [id=/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest49601/providers/Microsoft.DataLakeStore/accounts/turbottest49601]

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


Warning: Version constraints inside provider configuration blocks are deprecated

  on variables.tf line 21, in provider "azurerm":
  21:   version         = "=1.36.0"

Terraform 0.13 and earlier allowed provider version constraints inside the
provider configuration block, but that is now deprecated and will be removed
in a future version of Terraform. To silence this warning, move the provider
version constraint into the required_providers block.


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

Outputs:

resource_aka = "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest49601/providers/Microsoft.DataLakeStore/accounts/turbottest49601"
resource_aka_lower = "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourcegroups/turbottest49601/providers/microsoft.datalakestore/accounts/turbottest49601"
resource_id = "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest49601/providers/Microsoft.DataLakeStore/accounts/turbottest49601"
resource_name = "turbottest49601"
subscription_id = "d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8"

Running SQL query: test-get-query.sql
[
  {
    "id": "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest49601/providers/Microsoft.DataLakeStore/accounts/turbottest49601",
    "name": "turbottest49601",
    "resource_group": "turbottest49601",
    "subscription_id": "d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8",
    "type": "Microsoft.DataLakeStore/accounts"
  }
]
✔ PASSED

Running SQL query: test-list-query.sql
[
  {
    "id": "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest49601/providers/Microsoft.DataLakeStore/accounts/turbottest49601",
    "name": "turbottest49601",
    "type": "Microsoft.DataLakeStore/accounts"
  }
]
✔ PASSED

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

Running SQL query: test-turbot-query.sql
[
  {
    "akas": [
      "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest49601/providers/Microsoft.DataLakeStore/accounts/turbottest49601",
      "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourcegroups/turbottest49601/providers/microsoft.datalakestore/accounts/turbottest49601"
    ],
    "title": "turbottest49601"
  }
]
✔ PASSED

POSTTEST: tests/azure_data_lake_store

TEARDOWN: tests/azure_data_lake_store

SUMMARY:

1/1 passed.

Example query results

Results
> select
  name,
  id,
  type,
  provisioning_state
from
  azure_data_lake_store;
+--------+--------------------------------------------------------------------------------------------------------------------------------+----------------------------------+--------------------+
| name   | id                                                                                                                             | type                             | provisioning_state |
+--------+--------------------------------------------------------------------------------------------------------------------------------+----------------------------------+--------------------+
| eqweer | /subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbot_rg/providers/Microsoft.DataLakeStore/accounts/eqweer | Microsoft.DataLakeStore/accounts | Succeeded          |
| reewrt | /subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbot_rg/providers/Microsoft.DataLakeStore/accounts/reewrt | Microsoft.DataLakeStore/accounts | Succeeded          |
+--------+--------------------------------------------------------------------------------------------------------------------------------+----------------------------------+--------------------+

> select
  name,
  id,
  type,
  provisioning_state
from
  azure_data_lake_store
where
  firewall_state = 'Disabled';
+--------+--------------------------------------------------------------------------------------------------------------------------------+----------------------------------+--------------------+
| name   | id                                                                                                                             | type                             | provisioning_state |
+--------+--------------------------------------------------------------------------------------------------------------------------------+----------------------------------+--------------------+
| eqweer | /subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbot_rg/providers/Microsoft.DataLakeStore/accounts/eqweer | Microsoft.DataLakeStore/accounts | Succeeded          |
| reewrt | /subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbot_rg/providers/Microsoft.DataLakeStore/accounts/reewrt | Microsoft.DataLakeStore/accounts | Succeeded          |
+--------+--------------------------------------------------------------------------------------------------------------------------------+----------------------------------+--------------------+
> select
  name,
  id,
  type,
  provisioning_state
from
  azure_data_lake_store
where
  encryption_state = 'Enabled';
+--------+--------------------------------------------------------------------------------------------------------------------------------+----------------------------------+--------------------+
| name   | id                                                                                                                             | type                             | provisioning_state |
+--------+--------------------------------------------------------------------------------------------------------------------------------+----------------------------------+--------------------+
| eqweer | /subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbot_rg/providers/Microsoft.DataLakeStore/accounts/eqweer | Microsoft.DataLakeStore/accounts | Succeeded          |
| reewrt | /subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbot_rg/providers/Microsoft.DataLakeStore/accounts/reewrt | Microsoft.DataLakeStore/accounts | Succeeded          |
+--------+--------------------------------------------------------------------------------------------------------------------------------+----------------------------------+--------------------+

@bigdatasourav bigdatasourav self-assigned this Aug 2, 2021
@bigdatasourav bigdatasourav linked an issue Aug 3, 2021 that may be closed by this pull request
Copy link
Contributor

@rajlearner17 rajlearner17 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 f4e5356 into main Aug 5, 2021
@bigdatasourav bigdatasourav deleted the issue-209 branch August 5, 2021 12:43
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_data_lake_store
3 participants