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_security_center_auto_provisioning. Closes #116 #117

Merged
merged 12 commits into from
May 13, 2021

Conversation

bigdatasourav
Copy link
Contributor

Integration test logs

Logs
SETUP: tests/azure_security_center_auto_provisioning []

PRETEST: tests/azure_security_center_auto_provisioning

TEST: tests/azure_security_center_auto_provisioning
Running terraform
azurerm_security_center_auto_provisioning.named_test_resource: Creating...
azurerm_security_center_auto_provisioning.named_test_resource: Creation complete after 4s [id=/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/providers/Microsoft.Security/autoProvisioningSettings/default]

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 28, in provider "azurerm":
  28:   version = "=2.43.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: 1 added, 0 changed, 0 destroyed.

Outputs:

resource_aka = "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/providers/Microsoft.Security/autoProvisioningSettings/default"
resource_aka_lower = "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/providers/microsoft.security/autoprovisioningsettings/default"
resource_id = "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/providers/Microsoft.Security/autoProvisioningSettings/default"
resource_name = "default"
subscription_id = "d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8"

Running SQL query: test-get-query.sql
[
  {
    "id": "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/providers/Microsoft.Security/autoProvisioningSettings/default",
    "name": "default",
    "type": "Microsoft.Security/autoProvisioningSettings"
  }
]
✔ PASSED

Running SQL query: test-list-query.sql
[
  {
    "id": "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/providers/Microsoft.Security/autoProvisioningSettings/default",
    "name": "default"
  }
]
✔ 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/providers/Microsoft.Security/autoProvisioningSettings/default",
      "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/providers/microsoft.security/autoprovisioningsettings/default"
    ],
    "name": "default",
    "title": "default"
  }
]
✔ PASSED

POSTTEST: tests/azure_security_center_auto_provisioning

TEARDOWN: tests/azure_security_center_auto_provisioning

SUMMARY:

1/1 passed.

Example query results

Results
> select
  id,
  name,
  type,
  auto_provision
from
  azure_security_center_auto_provisioning;
+-------------------------------------------------------------------------------------------------------------------+---------+---------------------------------------------+----------------+
| id                                                                                                                | name    | type                                        | auto_provision |
+-------------------------------------------------------------------------------------------------------------------+---------+---------------------------------------------+----------------+
| /subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/providers/Microsoft.Security/autoProvisioningSettings/default | default | Microsoft.Security/autoProvisioningSettings | Off            |
+-------------------------------------------------------------------------------------------------------------------+---------+---------------------------------------------+----------------+
> select
  id,
  name,
  type,
  auto_provision
from
  azure_security_center_auto_provisioning
where
  auto_provision = 'On';
+----+------+------+----------------+
| id | name | type | auto_provision |
+----+------+------+----------------+
+----+------+------+----------------+

@bigdatasourav bigdatasourav self-assigned this May 6, 2021
@bigdatasourav bigdatasourav requested a review from Subhajit97 May 6, 2021 12:21
@bigdatasourav bigdatasourav linked an issue May 6, 2021 that may be closed by this pull request
bigdatasourav added 3 commits May 7, 2021 12:56
@bigdatasourav bigdatasourav requested a review from LalitLab May 11, 2021 10:31
@cbruno10 cbruno10 removed the request for review from Subhajit97 May 11, 2021 12:57
Copy link
Contributor

@LalitLab LalitLab left a comment

Choose a reason for hiding this comment

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

LGTM

@LalitLab LalitLab requested a review from rajlearner17 May 12, 2021 10:27
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

@cbruno10 cbruno10 merged commit 4d3284c into main May 13, 2021
@cbruno10 cbruno10 deleted the issue-116 branch May 13, 2021 11:34
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_security_center_auto_provisioning
4 participants