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_recovery_services_vault. Closes #241 #243

Merged
merged 7 commits into from
Aug 10, 2021
Merged

Conversation

bigdatasourav
Copy link
Contributor

Integration test logs

Logs
SETUP: tests/azure_recovery_services_vault []

PRETEST: tests/azure_recovery_services_vault

TEST: tests/azure_recovery_services_vault
Running terraform
azurerm_resource_group.named_test_resource: Creating...
azurerm_resource_group.named_test_resource: Creation complete after 2s [id=/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest69642]
azurerm_recovery_services_vault.named_test_resource: Creating...
azurerm_recovery_services_vault.named_test_resource: Creation complete after 7s [id=/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest69642/providers/Microsoft.RecoveryServices/vaults/turbottest69642]

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:

location = "eastus"
resource_aka = "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest69642/providers/Microsoft.RecoveryServices/vaults/turbottest69642"
resource_aka_lower = "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourcegroups/turbottest69642/providers/microsoft.recoveryservices/vaults/turbottest69642"
resource_id = "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest69642/providers/Microsoft.RecoveryServices/vaults/turbottest69642"
resource_name = "turbottest69642"
subscription_id = "d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8"

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

Running SQL query: test-list-query.sql
[
  {
    "id": "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest69642/providers/Microsoft.RecoveryServices/vaults/turbottest69642",
    "name": "turbottest69642",
    "type": "Microsoft.RecoveryServices/vaults"
  }
]
✔ 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/turbottest69642/providers/Microsoft.RecoveryServices/vaults/turbottest69642",
      "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourcegroups/turbottest69642/providers/microsoft.recoveryservices/vaults/turbottest69642"
    ],
    "name": "turbottest69642",
    "title": "turbottest69642"
  }
]
✔ PASSED

POSTTEST: tests/azure_recovery_services_vault

TEARDOWN: tests/azure_recovery_services_vault

SUMMARY:

1/1 passed.

Example query results

Results
> select
  name,
  id,
  region,
  type
from
  azure_recovery_services_vault;
+---------+----------------------------------------------------------------------------------------------------------------------------------+--------+-----------------------------------+
| name    | id                                                                                                                               | region | type                              |
+---------+----------------------------------------------------------------------------------------------------------------------------------+--------+-----------------------------------+
| erterst | /subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbot_rg/providers/Microsoft.RecoveryServices/vaults/erterst | westus | Microsoft.RecoveryServices/vaults |
+---------+----------------------------------------------------------------------------------------------------------------------------------+--------+-----------------------------------+
> select
  name,
  id,
  type,
  provisioning_state,
  region
from
  azure_recovery_services_vault
where
provisioning_state = 'Failed';
+------+----+------+--------------------+--------+
| name | id | type | provisioning_state | region |
+------+----+------+--------------------+--------+
+------+----+------+--------------------+--------+
> select
  name,
  id,
  type,
  provisioning_state,
  region
from
  azure_recovery_services_vault
where
provisioning_state = 'Succeeded';
+---------+----------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------+-----
| name    | id                                                                                                                               | type                              | provisioning_state | regi
+---------+----------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------+-----
| erterst | /subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbot_rg/providers/Microsoft.RecoveryServices/vaults/erterst | Microsoft.RecoveryServices/vaults | Succeeded          | west
+---------+----------------------------------------------------------------------------------------------------------------------------------+-----------------------------------+--------------------+-----

bigdatasourav added 2 commits August 9, 2021 19:15
@bigdatasourav bigdatasourav self-assigned this Aug 9, 2021
@bigdatasourav bigdatasourav linked an issue Aug 9, 2021 that may be closed by this pull request
from
azure_recovery_services_vault
where
provisioning_state = 'Failed';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
provisioning_state = 'Failed';
provisioning_state = 'Failed';

Copy link
Contributor

@khushboo9024 khushboo9024 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 added 2 commits August 10, 2021 14:19
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 ff91b51 into main Aug 10, 2021
@bigdatasourav bigdatasourav deleted the issue-241 branch August 10, 2021 10:21
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_recovery_services_vault
3 participants