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_stream_analytics_job. Closes #239 #246

Merged
merged 9 commits into from
Aug 11, 2021
Merged

Conversation

bigdatasourav
Copy link
Contributor

@bigdatasourav bigdatasourav commented Aug 10, 2021

Integration test logs

Logs
SETUP: tests/azure_stream_analytics_job []

PRETEST: tests/azure_stream_analytics_job

TEST: tests/azure_stream_analytics_job
Running terraform
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 13s [id=/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest28669]
azurerm_stream_analytics_job.named_test_resource: Creating...
azurerm_stream_analytics_job.named_test_resource: Still creating... [10s elapsed]
azurerm_stream_analytics_job.named_test_resource: Creation complete after 11s [id=/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest28669/providers/Microsoft.StreamAnalytics/streamingjobs/turbottest28669]

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 = "eastus"
resource_aka = "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest28669/providers/Microsoft.StreamAnalytics/streamingjobs/turbottest28669"
resource_aka_lower = "azure:///subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourcegroups/turbottest28669/providers/microsoft.streamanalytics/streamingjobs/turbottest28669"
resource_id = "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest28669/providers/Microsoft.StreamAnalytics/streamingjobs/turbottest28669"
resource_name = "turbottest28669"
subscription_id = "d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8"

Running SQL query: test-get-query.sql
[
  {
    "id": "/subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest28669/providers/Microsoft.StreamAnalytics/streamingjobs/turbottest28669",
    "name": "turbottest28669",
    "region": "eastus",
    "resource_group": "turbottest28669",
    "subscription_id": "d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8",
    "type": "Microsoft.StreamAnalytics/streamingjobs"
  }
]
✔ PASSED

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

POSTTEST: tests/azure_stream_analytics_job

TEARDOWN: tests/azure_stream_analytics_job

SUMMARY:

1/1 passed.

Example query results

Results
> select
  name,
  id,
  job_id,
  job_state,
  region,
  subscription_id
from
  azure_stream_analytics_job;
+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------
| name            | id                                                                                                                                                   | job_id                           
+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------
| turbottest77169 | /subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest77169/providers/Microsoft.StreamAnalytics/streamingjobs/turbottest77169 | e2457e65-970c-4723-adb9-7e547a198
+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------

> select
  name,
  id,
  type,
  provisioning_state,
  region
from
  azure_stream_analytics_job
where
  provisioning_state = 'Succeeded';
+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------
| name            | id                                                                                                                                                   | type                             
+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------
| turbottest77169 | /subscriptions/d7245080-b4ae-4fe5-b6fa-2e71b3dae6c8/resourceGroups/turbottest77169/providers/Microsoft.StreamAnalytics/streamingjobs/turbottest77169 | Microsoft.StreamAnalytics/streami
+-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------

bigdatasourav added 3 commits August 10, 2021 12:45
@bigdatasourav bigdatasourav self-assigned this Aug 10, 2021
@bigdatasourav bigdatasourav linked an issue Aug 10, 2021 that may be closed by this pull request
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 0081c81 into main Aug 11, 2021
@bigdatasourav bigdatasourav deleted the issue-239 branch August 11, 2021 11:24
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_stream_analytics_job
3 participants