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_servicebus_namespace. Closes #215 #225

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

PRETEST: tests/azure_servicebus_namespace

TEST: tests/azure_servicebus_namespace
Running terraform
azurerm_resource_group.named_test_resource: Creating...
azurerm_resource_group.named_test_resource: Creation complete after 5s [id=/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest35576]
azurerm_servicebus_namespace.named_test_resource: Creating...
azurerm_servicebus_namespace.named_test_resource: Still creating... [10s elapsed]
azurerm_servicebus_namespace.named_test_resource: Still creating... [20s elapsed]
azurerm_servicebus_namespace.named_test_resource: Still creating... [30s elapsed]
azurerm_servicebus_namespace.named_test_resource: Still creating... [40s elapsed]
azurerm_servicebus_namespace.named_test_resource: Still creating... [50s elapsed]
azurerm_servicebus_namespace.named_test_resource: Still creating... [1m0s elapsed]
azurerm_servicebus_namespace.named_test_resource: Still creating... [1m10s elapsed]
azurerm_servicebus_namespace.named_test_resource: Creation complete after 1m15s [id=/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest35576/providers/Microsoft.ServiceBus/namespaces/turbottest35576]

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 = "=2.41.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/turbottest35576/providers/Microsoft.ServiceBus/namespaces/turbottest35576"
resource_aka_lower = "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourcegroups/turbottest35576/providers/microsoft.servicebus/namespaces/turbottest35576"
resource_id = "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest35576/providers/Microsoft.ServiceBus/namespaces/turbottest35576"
resource_name = "turbottest35576"
subscription_id = "d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8"

Running SQL query: test-get-query.sql
[
  {
    "encryption": null,
    "id": "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest35576/providers/Microsoft.ServiceBus/namespaces/turbottest35576",
    "name": "turbottest35576",
    "network_rule_set": {
      "properties": {
        "defaultAction": "Deny",
        "ipRules": [],
        "virtualNetworkRules": []
      }
    },
    "provisioning_state": "Succeeded",
    "servicebus_endpoint": "https://turbottest35576.servicebus.windows.net:443/",
    "sku_name": "Basic",
    "sku_tier": "Basic",
    "type": "Microsoft.ServiceBus/Namespaces",
    "zone_redundant": false
  }
]
✔ PASSED

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

POSTTEST: tests/azure_servicebus_namespace

TEARDOWN: tests/azure_servicebus_namespace

SUMMARY:

1/1 passed.

Example query results

Results
> select name,diagnostic_settings from azure_servicebus_namespace
+--------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| name   | diagnostic_settings                                                                                                                                                                              
+--------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| terteq | [{"id":"/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourcegroups/turbot_rg/providers/microsoft.servicebus/namespaces/terteq/providers/microsoft.insights/diagnosticSettings/test","name
+--------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

@bigdatasourav bigdatasourav self-assigned this Aug 3, 2021
@bigdatasourav bigdatasourav merged commit a602d5a into main Aug 3, 2021
@bigdatasourav bigdatasourav deleted the issue-215 branch August 3, 2021 06:06
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_servicebus_namespace
2 participants