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_analytics_account. Closes #245 #253

Merged
merged 5 commits into from
Aug 12, 2021

Conversation

bigdatasourav
Copy link
Contributor

@bigdatasourav bigdatasourav commented Aug 11, 2021

Integration test logs

Logs
SETUP: tests/azure_data_lake_analytics_account []

PRETEST: tests/azure_data_lake_analytics_account

TEST: tests/azure_data_lake_analytics_account
Running terraform
azurerm_resource_group.named_test_resource: Creating...
azurerm_resource_group.named_test_resource: Creation complete after 3s [id=/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest34520]
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 1m14s [id=/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest34520/providers/Microsoft.DataLakeStore/accounts/turbottest34520]
azurerm_data_lake_analytics_account.named_test_resource: Creating...
azurerm_data_lake_analytics_account.named_test_resource: Still creating... [10s elapsed]
azurerm_data_lake_analytics_account.named_test_resource: Still creating... [20s elapsed]
azurerm_data_lake_analytics_account.named_test_resource: Still creating... [30s elapsed]
azurerm_data_lake_analytics_account.named_test_resource: Still creating... [40s elapsed]
azurerm_data_lake_analytics_account.named_test_resource: Still creating... [50s elapsed]
azurerm_data_lake_analytics_account.named_test_resource: Still creating... [1m0s elapsed]
azurerm_data_lake_analytics_account.named_test_resource: Still creating... [1m10s elapsed]
azurerm_data_lake_analytics_account.named_test_resource: Creation complete after 1m12s [id=/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest34520/providers/Microsoft.DataLakeAnalytics/accounts/turbottest34520]

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: 3 added, 0 changed, 0 destroyed.

Outputs:

resource_aka = "azure:///subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest34520/providers/Microsoft.DataLakeAnalytics/accounts/turbottest34520"
resource_aka_lower = "azure:///subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourcegroups/turbottest34520/providers/microsoft.datalakeanalytics/accounts/turbottest34520"
resource_id = "/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest34520/providers/Microsoft.DataLakeAnalytics/accounts/turbottest34520"
resource_name = "turbottest34520"
subscription_id = "d46d7416-f95f-4771-bbb5-529d4c76659c"

Running SQL query: test-get-query.sql
[
  {
    "id": "/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest34520/providers/Microsoft.DataLakeAnalytics/accounts/turbottest34520",
    "name": "turbottest34520",
    "resource_group": "turbottest34520",
    "subscription_id": "d46d7416-f95f-4771-bbb5-529d4c76659c",
    "type": "Microsoft.DataLakeAnalytics/accounts"
  }
]
✔ PASSED

Running SQL query: test-list-query.sql
[
  {
    "id": "/subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest34520/providers/Microsoft.DataLakeAnalytics/accounts/turbottest34520",
    "name": "turbottest34520",
    "type": "Microsoft.DataLakeAnalytics/accounts"
  }
]
✔ 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/turbottest34520/providers/Microsoft.DataLakeAnalytics/accounts/turbottest34520",
      "azure:///subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourcegroups/turbottest34520/providers/microsoft.datalakeanalytics/accounts/turbottest34520"
    ],
    "title": "turbottest34520"
  }
]
✔ PASSED

POSTTEST: tests/azure_data_lake_analytics_account

TEARDOWN: tests/azure_data_lake_analytics_account

SUMMARY:

1/1 passed.

Example query results

Results
> select
  name,
  id,
  type,
  provisioning_state
from
  azure_data_lake_analytics_account;
+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------
| name            | id                                                                                                                                                | type                                
+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------
| turbottest67826 | /subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest67826/providers/Microsoft.DataLakeAnalytics/accounts/turbottest67826 | Microsoft.DataLakeAnalytics/accounts
+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------
> select
  name,
  id,
  type,
  state,
  provisioning_state
from
  azure_data_lake_analytics_account
where
  state = 'Suspended';
+------+----+------+-------+--------------------+
| name | id | type | state | provisioning_state |
+------+----+------+-------+--------------------+
+------+----+------+-------+--------------------+
> select
  name,
  id,
  type,
  state,
  provisioning_state
from
  azure_data_lake_analytics_account
where
  state = 'Active';
+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------
| name            | id                                                                                                                                                | type                                
+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------
| turbottest67826 | /subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest67826/providers/Microsoft.DataLakeAnalytics/accounts/turbottest67826 | Microsoft.DataLakeAnalytics/accounts
+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------
> select
  name,
  id,
  type,
  provisioning_state
from
  azure_data_lake_analytics_account
where
  firewall_state = 'Disabled';
+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------
| name            | id                                                                                                                                                | type                                
+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------
| turbottest67826 | /subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbottest67826/providers/Microsoft.DataLakeAnalytics/accounts/turbottest67826 | Microsoft.DataLakeAnalytics/accounts
+-----------------+---------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------

@bigdatasourav bigdatasourav self-assigned this Aug 11, 2021
@bigdatasourav bigdatasourav linked an issue Aug 11, 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 61c11a5 into main Aug 12, 2021
@bigdatasourav bigdatasourav deleted the issue-245 branch August 12, 2021 08:25
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_analytics_account
3 participants