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 Diagnostic settings details in table azure_eventhub_namespace. Closes #212 #226

Merged
merged 2 commits into from
Aug 3, 2021

Conversation

bigdatasourav
Copy link
Contributor

@bigdatasourav bigdatasourav commented Aug 3, 2021

Integration test logs

Logs
SETUP: tests/azure_eventhub_namespace []

PRETEST: tests/azure_eventhub_namespace

TEST: tests/azure_eventhub_namespace
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/turbottest24299]
azurerm_eventhub_namespace.named_test_resource: Creating...
azurerm_eventhub_namespace.named_test_resource: Still creating... [10s elapsed]
azurerm_eventhub_namespace.named_test_resource: Still creating... [20s elapsed]
azurerm_eventhub_namespace.named_test_resource: Still creating... [30s elapsed]
azurerm_eventhub_namespace.named_test_resource: Still creating... [40s elapsed]
azurerm_eventhub_namespace.named_test_resource: Still creating... [50s elapsed]
azurerm_eventhub_namespace.named_test_resource: Still creating... [1m0s elapsed]
azurerm_eventhub_namespace.named_test_resource: Still creating... [1m10s elapsed]
azurerm_eventhub_namespace.named_test_resource: Creation complete after 1m17s [id=/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest24299/providers/Microsoft.EventHub/namespaces/turbottest24299]

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 = "westus"
resource_aka = "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest24299/providers/Microsoft.EventHub/namespaces/turbottest24299"
resource_aka_lower = "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourcegroups/turbottest24299/providers/microsoft.eventhub/namespaces/turbottest24299"
resource_id = "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest24299/providers/Microsoft.EventHub/namespaces/turbottest24299"
resource_name = "turbottest24299"
subscription_id = "d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8"

Running SQL query: test-get-query.sql
[
  {
    "id": "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest24299/providers/Microsoft.EventHub/namespaces/turbottest24299",
    "is_auto_inflate_enabled": false,
    "kafka_enabled": true,
    "name": "turbottest24299",
    "region": "westus",
    "resource_group": "turbottest24299",
    "type": "Microsoft.EventHub/Namespaces"
  }
]
✔ PASSED

Running SQL query: test-hydrate-query.sql
[
  {
    "akas": [
      "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest24299/providers/Microsoft.EventHub/namespaces/turbottest24299",
      "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourcegroups/turbottest24299/providers/microsoft.eventhub/namespaces/turbottest24299"
    ],
    "name": "turbottest24299",
    "tags": {
      "name": "turbottest24299"
    },
    "title": "turbottest24299"
  }
]
✔ PASSED

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

POSTTEST: tests/azure_eventhub_namespace

TEARDOWN: tests/azure_eventhub_namespace

SUMMARY:

1/1 passed.

Example query results

Results
> select name,diagnostic_settings from azure_eventhub_namespace
+--------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| name   | diagnostic_settings                                                                                                                                                                              
+--------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| wqerer | [{"id":"/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourcegroups/turbot_rg/providers/microsoft.eventhub/namespaces/wqerer/providers/microsoft.insights/diagnosticSettings/rewr","name":
|        | /d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbot_rg/providers/Microsoft.Storage/storageAccounts/tertq"},"type":"Microsoft.Insights/diagnosticSettings"}]                              
+--------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

@bigdatasourav bigdatasourav self-assigned this Aug 3, 2021
@bigdatasourav bigdatasourav linked an issue Aug 3, 2021 that may be closed by this pull request
@bigdatasourav bigdatasourav merged commit 7c1279b into main Aug 3, 2021
@bigdatasourav bigdatasourav deleted the issue-212 branch August 3, 2021 06:05
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 Diagnostic settings details in table azure_eventhub_namespace
2 participants