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

provider/azurerm: add servicebus_topic resource #9151

Merged
merged 2 commits into from
Oct 3, 2016

Conversation

pmcatominey
Copy link
Contributor

Includes a small bump of SDK version to pull in go-autorest time parsing fix.

TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMServiceBusTopic -timeout 120m
=== RUN   TestAccAzureRMServiceBusTopic_importBasic
--- PASS: TestAccAzureRMServiceBusTopic_importBasic (328.72s)
=== RUN   TestAccAzureRMServiceBusTopic_basic
--- PASS: TestAccAzureRMServiceBusTopic_basic (331.04s)
=== RUN   TestAccAzureRMServiceBusTopic_update
--- PASS: TestAccAzureRMServiceBusTopic_update (348.69s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/azurerm    1008.588s

azure-sdk-for-go@5dbdd3e002c0c232938bf953a5e7fa9a58ee749e
go-autorest@928711bfb9b6bc052ea85a8f4e1d8f4e1bf55f95
@stack72
Copy link
Contributor

stack72 commented Sep 30, 2016

Hi @pmcatominey

This LGTM! 1 small nit that isn't a limiting factor - just running the tests now

P.

ResourceName: resourceName,
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"resource_group_name"},
Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't have to ignore this anymore - if you look at PR #9073 for details on how to handle this :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, fixed and noted :)

return err
}

read, err := client.Get(resGroup, namespaceName, name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any eventual consistency here or can we guarantee that this will be immediately available?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looking at the logs before, the topic appears to be returned in the body of the create request

@pmcatominey pmcatominey force-pushed the azurerm-servicebus-topic branch 3 times, most recently from 51e0cb7 to 32e0bee Compare September 30, 2016 16:01
@pmcatominey
Copy link
Contributor Author

I've just updated with the resource group name importing changes, recommend you run the tests again to be sure :).

@stack72
Copy link
Contributor

stack72 commented Sep 30, 2016

Initial test run:

% make testacc TEST=./builtin/providers/azurerm TESTARGS='-run=TestAccAzureRMServiceBusTopic'                                                                                                             ✭
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/09/30 16:47:25 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/azurerm -v -run=TestAccAzureRMServiceBusTopic -timeout 120m
=== RUN   TestAccAzureRMServiceBusTopic_importBasic
--- PASS: TestAccAzureRMServiceBusTopic_importBasic (334.43s)
=== RUN   TestAccAzureRMServiceBusTopic_basic
--- PASS: TestAccAzureRMServiceBusTopic_basic (334.15s)
=== RUN   TestAccAzureRMServiceBusTopic_update
--- PASS: TestAccAzureRMServiceBusTopic_update (342.30s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/azurerm    1010.893s

Will run the others when I am off this flight :)

TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMServiceBusTopic -timeout 120m
=== RUN   TestAccAzureRMServiceBusTopic_importBasic
--- PASS: TestAccAzureRMServiceBusTopic_importBasic (328.72s)
=== RUN   TestAccAzureRMServiceBusTopic_basic
--- PASS: TestAccAzureRMServiceBusTopic_basic (331.04s)
=== RUN   TestAccAzureRMServiceBusTopic_update
--- PASS: TestAccAzureRMServiceBusTopic_update (348.69s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/azurerm	1008.588s
@pmcatominey
Copy link
Contributor Author

Pushed again with the updated azurerm layout.

@stack72
Copy link
Contributor

stack72 commented Oct 3, 2016

Hi @pmcatominey

Thanks for the work here - just ran the latest tests and all looks good to me!

% make testacc TEST=./builtin/providers/azurerm TESTARGS='-run=TestAccAzureRMServiceBusTopic'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2016/10/03 13:40:58 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/azurerm -v -run=TestAccAzureRMServiceBusTopic -timeout 120m
=== RUN   TestAccAzureRMServiceBusTopic_importBasic
--- PASS: TestAccAzureRMServiceBusTopic_importBasic (332.75s)
=== RUN   TestAccAzureRMServiceBusTopic_basic
--- PASS: TestAccAzureRMServiceBusTopic_basic (330.50s)
=== RUN   TestAccAzureRMServiceBusTopic_update
--- PASS: TestAccAzureRMServiceBusTopic_update (348.09s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/azurerm    1011.362s

Paul

@stack72
Copy link
Contributor

stack72 commented Oct 4, 2016

@pmcatominey I am going to revert this PR until the timestamp issue is fixed

@pmcatominey
Copy link
Contributor Author

@stack72 no problem, you'll need to revert subscriptions too.

On Wed, 5 Oct 2016, 00:49 Paul Stack, [email protected] wrote:

@pmcatominey https://github.com/pmcatominey I am going to revert this
PR until the timestamp issue is fixed


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#9151 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA4FSGWBam1MT3tN-73FAdalhQGIzcK2ks5qwuX2gaJpZM4KLIoW
.

@stack72
Copy link
Contributor

stack72 commented Oct 5, 2016

No need to revert now as the timestamp issue is fixed by bumping to go-autorest 7.2.1 :)

@pmcatominey
Copy link
Contributor Author

Awesome!

On Wed, 5 Oct 2016, 08:52 Paul Stack, [email protected] wrote:

No need to revert now as the timestamp issue is fixed by bumping to
go-autorest 7.2.1 :)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#9151 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA4FSD6vgiVn36ObnerRZeIeyJioTxccks5qw1c7gaJpZM4KLIoW
.

@ghost
Copy link

ghost commented Apr 21, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants