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_cdn_frontdoor_profile Closes #764 #777

Merged
merged 2 commits into from
Jun 14, 2024
Merged

Add table azure_cdn_frontdoor_profile Closes #764 #777

merged 2 commits into from
Jun 14, 2024

Conversation

ParthaI
Copy link
Contributor

@ParthaI ParthaI commented Jun 13, 2024

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_cdn_frontdoor_profile []

PRETEST: tests/azure_cdn_frontdoor_profile

TEST: tests/azure_cdn_frontdoor_profile
Running terraform

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # azurerm_cdn_frontdoor_profile.named_test_resource will be created
  + resource "azurerm_cdn_frontdoor_profile" "named_test_resource" {
      + id                       = (known after apply)
      + name                     = "turbottest4074"
      + resource_group_name      = "turbottest4074"
      + resource_guid            = (known after apply)
      + response_timeout_seconds = 120
      + sku_name                 = "Standard_AzureFrontDoor"
      + tags                     = {
          + "environment" = "Production"
        }
    }

  # azurerm_resource_group.named_test_resource will be created
  + resource "azurerm_resource_group" "named_test_resource" {
      + id       = (known after apply)
      + location = "eastus"
      + name     = "turbottest4074"
    }

Plan: 2 to add, 0 to change, 0 to destroy.

Changes to Outputs:
  + resource_aka       = (known after apply)
  + resource_aka_lower = (known after apply)
  + resource_id        = (known after apply)
  + resource_name      = "turbottest4074"
  + subscription_id    = "****-****-****-****-************"
azurerm_resource_group.named_test_resource: Creating...
azurerm_resource_group.named_test_resource: Still creating... [10s elapsed]
azurerm_resource_group.named_test_resource: Creation complete after 17s [id=/subscriptions/****-****-****-****-************/resourceGroups/turbottest4074]
azurerm_cdn_frontdoor_profile.named_test_resource: Creating...
azurerm_cdn_frontdoor_profile.named_test_resource: Still creating... [10s elapsed]
azurerm_cdn_frontdoor_profile.named_test_resource: Still creating... [20s elapsed]
azurerm_cdn_frontdoor_profile.named_test_resource: Still creating... [30s elapsed]
azurerm_cdn_frontdoor_profile.named_test_resource: Still creating... [40s elapsed]
azurerm_cdn_frontdoor_profile.named_test_resource: Still creating... [50s elapsed]
azurerm_cdn_frontdoor_profile.named_test_resource: Still creating... [1m0s elapsed]
azurerm_cdn_frontdoor_profile.named_test_resource: Still creating... [1m10s elapsed]
azurerm_cdn_frontdoor_profile.named_test_resource: Creation complete after 1m18s [id=/subscriptions/****-****-****-****-************/resourceGroups/turbottest4074/providers/Microsoft.Cdn/profiles/turbottest4074]

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

Outputs:

resource_aka = "azure:///subscriptions/****-****-****-****-************/resourcegroups/turbottest4074/providers/Microsoft.Cdn/profiles/turbottest4074"
resource_aka_lower = "azure:///subscriptions/****-****-****-****-************/resourcegroups/turbottest4074/providers/microsoft.cdn/profiles/turbottest4074"
resource_id = "/subscriptions/****-****-****-****-************/resourcegroups/turbottest4074/providers/Microsoft.Cdn/profiles/turbottest4074"
resource_name = "turbottest4074"
subscription_id = "****-****-****-****-************"

Running SQL query: test-get-query.sql

Time: 2.8s. Rows returned: 1. Rows fetched: 1. Hydrate calls: 1.

Scans:
  1) azure_cdn_frontdoor_profile.azure: Time: 2.6s. Fetched: 1. Hydrates: 1. Quals: name=turbottest4074, resource_group=turbottest4074.

[
  {
    "id": "/subscriptions/****-****-****-****-************/resourcegroups/turbottest4074/providers/Microsoft.Cdn/profiles/turbottest4074",
    "name": "turbottest4074",
    "resource_group": "turbottest4074",
    "subscription_id": "****-****-****-****-************",
    "type": "Microsoft.Cdn/profiles"
  }
]
✔ PASSED

Running SQL query: test-list-query.sql

Time: 2.2s. Rows returned: 1. Rows fetched: 2. Hydrate calls: 2.

Scans:
  1) azure_cdn_frontdoor_profile.azure: Time: 1.8s. Fetched: 2. Hydrates: 2. Quals: id=/subscriptions/****-****-****-****-************/resourcegroups/turbottest4074/providers/Microsoft.Cdn/profiles/turbottest4074.

[
  {
    "id": "/subscriptions/****-****-****-****-************/resourcegroups/turbottest4074/providers/Microsoft.Cdn/profiles/turbottest4074",
    "name": "turbottest4074",
    "resource_group": "turbottest4074",
    "subscription_id": "****-****-****-****-************",
    "type": "Microsoft.Cdn/profiles"
  }
]
✔ PASSED

Running SQL query: test-not-found-query.sql

Time: 1.7s. Rows returned: 0.
[]
✔ PASSED

Running SQL query: test-turbot-query.sql

Time: 1.8s. Rows returned: 1. Rows fetched: 1. Hydrate calls: 0.

Scans:
  1) azure_cdn_frontdoor_profile.azure: Time: 1.4s. Fetched: 1. Hydrates: 0. Quals: name=turbottest4074, resource_group=turbottest4074.

[
  {
    "akas": [
      "azure:///subscriptions/****-****-****-****-************/resourcegroups/turbottest4074/providers/Microsoft.Cdn/profiles/turbottest4074",
      "azure:///subscriptions/****-****-****-****-************/resourcegroups/turbottest4074/providers/microsoft.cdn/profiles/turbottest4074"
    ],
    "name": "turbottest4074",
    "title": "turbottest4074"
  }
]
✔ PASSED

TEARDOWN: tests/azure_cdn_frontdoor_profile

SUMMARY:

1/1 passed.

Example query results

Results
> select * from  azure_cdn_frontdoor_profile
+--------+-----------------------------------------------------------------------------------------------------------------+------------------------+----------+-------------------------+-----------+----------------+-------------------->
| name   | id                                                                                                              | type                   | location | sku_name                | kind      | resource_state | provisioning_state >
+--------+-----------------------------------------------------------------------------------------------------------------+------------------------+----------+-------------------------+-----------+----------------+-------------------->
| test53 | /subscriptions/****-****-****-****-************/resourcegroups/demo/providers/Microsoft.Cdn/profiles/test53 | Microsoft.Cdn/profiles | global   | Standard_AzureFrontDoor | frontdoor | Active         | Succeeded          >
+--------+-----------------------------------------------------------------------------------------------------------------+------------------------+----------+-------------------------+-----------+----------------+-------------------->

Time: 1.0s. Rows returned: 1. Rows fetched: 1. Hydrate calls: 2.

@misraved misraved merged commit dcae814 into main Jun 14, 2024
1 check passed
@misraved misraved deleted the issue-764 branch June 14, 2024 20:33
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.

Azure Standard Front Door resource details not listed in Steampipe Azure plugin
2 participants