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_search_service closes #240 #257

Merged
merged 13 commits into from
Aug 12, 2021
Merged

Add table azure_search_service closes #240 #257

merged 13 commits into from
Aug 12, 2021

Conversation

ParthaI
Copy link
Contributor

@ParthaI ParthaI commented Aug 11, 2021

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

PRETEST: tests/azure_search_service

TEST: tests/azure_search_service
Running terraform
data.azurerm_client_config.current: Refreshing state...
data.null_data_source.resource: Refreshing state...
azurerm_resource_group.named_test_resource: Creating...
azurerm_resource_group.named_test_resource: Creation complete after 3s [id=/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest99778]
azurerm_search_service.named_test_resource: Creating...
azurerm_search_service.named_test_resource: Still creating... [10s elapsed]
azurerm_search_service.named_test_resource: Creation complete after 16s [id=/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest99778/providers/Microsoft.Search/searchServices/turbottest99778]

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


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

Outputs:

location = eastus
resource_aka = azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest99778/providers/Microsoft.Search/searchServices/turbottest99778
resource_aka_lower = azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourcegroups/turbottest99778/providers/microsoft.search/searchservices/turbottest99778
resource_id = /subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest99778/providers/Microsoft.Search/searchServices/turbottest99778
resource_name = turbottest99778
subscription_id = d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8

Running SQL query: test-get-query.sql
[
  {
    "id": "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest99778/providers/Microsoft.Search/searchServices/turbottest99778",
    "name": "turbottest99778",
    "provisioning_state": "succeeded",
    "region": "east us",
    "resource_group": "turbottest99778",
    "sku_name": "standard",
    "status": "running",
    "subscription_id": "d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8",
    "tags_src": {},
    "type": "Microsoft.Search/searchServices"
  }
]
✔ PASSED

Running SQL query: test-hydrate-query.sql
[
  {
    "name": "turbottest99778",
    "network_rule_set": {
      "ipRules": []
    },
    "partition_count": 1,
    "replica_count": 1
  }
]
✔ PASSED

Running SQL query: test-list-query.sql
[
  {
    "id": "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest99778/providers/Microsoft.Search/searchServices/turbottest99778",
    "name": "turbottest99778",
    "region": "east us"
  }
]
✔ 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/turbottest99778/providers/Microsoft.Search/searchServices/turbottest99778",
      "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourcegroups/turbottest99778/providers/microsoft.search/searchservices/turbottest99778"
    ],
    "name": "turbottest99778",
    "title": "turbottest99778"
  }
]
✔ PASSED

POSTTEST: tests/azure_search_service

TEARDOWN: tests/azure_search_service

SUMMARY:

1/1 passed.

Example query results

Results

Basic Info

select
  name,
  id,
  type,
  provisioning_state,
  status,
  sku_name,
  replica_count
from
  azure_search_service;
+---------------+--------------------------------------------------------------------------------------------------------------------------------------+---------------------------------+------------------
| name          | id                                                                                                                                   | type                            | provisioning_stat
+---------------+--------------------------------------------------------------------------------------------------------------------------------------+---------------------------------+------------------
| my-service-23 | /subscriptions/d46d7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/turbot_rg/providers/Microsoft.Search/searchServices/my-service-23 | Microsoft.Search/searchServices | succeeded        
+---------------+--------------------------------------------------------------------------------------------------------------------------------------+---------------------------------+------------------

> select
  name,
  id,
  public_network_access
from
  azure_search_service
where
  public_network_access = 'Enabled';
+--------+-----------------------------------------------------------------------------------------------------------------------------------+-----------------------+
| name   | id                                                                                                                                | public_network_access |
+--------+-----------------------------------------------------------------------------------------------------------------------------------+-----------------------+
| test43 | /subscriptions/000000-f95f-00bbb5-000000/resourceGroups/hipaa-hitrust/providers/Microsoft.Search/searchServices/test43 | Enabled               |
+--------+-----------------------------------------------------------------------------------------------------------------------------------+-----------------------+

@ParthaI ParthaI requested a review from khushboo9024 August 11, 2021 13:14
@ParthaI ParthaI self-assigned this Aug 11, 2021
@ParthaI ParthaI linked an issue Aug 11, 2021 that may be closed by this pull request
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.

Add diagnosticSettings details for search service.

Copy link
Contributor

@bigdatasourav bigdatasourav left a comment

Choose a reason for hiding this comment

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

LGTM

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 207b2d5 into main Aug 12, 2021
@bigdatasourav bigdatasourav deleted the issue-240 branch August 12, 2021 13:11
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_search_service
4 participants