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

ServiceBus Topic Authorization Rules #736

Merged
merged 4 commits into from
Feb 27, 2018
Merged

ServiceBus Topic Authorization Rules #736

merged 4 commits into from
Feb 27, 2018

Conversation

scottambroseio
Copy link

Hey all o/

This PR addresses #735

Tests pass and output can be seen here https://gist.github.com/scottrangerio/501719dd8b5cd7f2915a5350690cd237

Also tested manually using the following .tf file
https://gist.github.com/scottrangerio/37fa55911682cdd1e32f8905c9e68c33

This is a near complete copy of the eventhub_authorization_rule resource, just tweaked for servicebus topics

Documentation still needs doing, but I'm happy to tackle that at some point next week when I get a bit more time!

@tombuildsstuff tombuildsstuff modified the milestones: 1.0.2, 1.0.3 Jan 23, 2018
@scottambroseio scottambroseio changed the title [WIP, Needs Docs] ServiceBus Topic Authorization Rules ServiceBus Topic Authorization Rules Jan 27, 2018
@tombuildsstuff tombuildsstuff modified the milestones: 1.1.1, 1.1.2 Feb 5, 2018
@tombuildsstuff tombuildsstuff modified the milestones: 1.1.2, 1.1.3 Feb 16, 2018
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hey @scottrangerio

Thanks for this PR - apologies for the delay in reviewing it!

I've taken a look through and left some comments in-line, but this mostly LGTM. If we can fix up the highlighted issues and rebase this - we should be able to kick of the tests and merge this :)

Thanks!


if resp.StatusCode != http.StatusOK {
return fmt.Errorf("Error issuing Azure ARM delete request of ServiceBus Topic Authorization Rule '%s': %+v", name, err)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

checking the SDK here, the method above can return either a 200 or a 204 - can we change this to:

if err != nil {
  return fmt.Errorf("Error issuing Azure ARM delete request of ServiceBus Topic Authorization Rule %q (Resource Group %q): %+v", name, resGroup, err)
}

Creates a new ServiceBus Topic authorization Rule within a ServiceBus Topic.
---

# azurerm\_servicebus\_topic\_authorization\_rule
Copy link
Contributor

Choose a reason for hiding this comment

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

can we remove the \ here? they're not needed

}

resource "azurerm_servicebus_topic_authorization_rule" "test" {
name = "navi"
Copy link
Contributor

Choose a reason for hiding this comment

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

could we make this examplerule?

@scottambroseio
Copy link
Author

Hey @tombuildsstuff

No worries about the delay, it's nice to see the amount of activity this repo is gaining :) I've made said changes and rebased on top of master (first time using rebase so I hope I've done it right?). Any other issues just let me know and I'll try my best to resolve them.

Cheers!

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hey @scottrangerio

Thanks for pushing those changes - I've taken another look through and this now LGTM 👍

I'll kick of the test suite now.

Thanks!

@tombuildsstuff
Copy link
Contributor

Tests pass:

screen shot 2018-02-26 at 18 51 14

@tombuildsstuff tombuildsstuff merged commit e786ed3 into hashicorp:master Feb 27, 2018
tombuildsstuff added a commit that referenced this pull request Feb 27, 2018
@scottambroseio scottambroseio deleted the ServiceBusTopicAuthorizationRules branch February 27, 2018 08:57
@tombuildsstuff
Copy link
Contributor

👋 hey @scottrangerio

Just to let you know that support for this has just been released in v1.2.0 of the AzureRM Provider - full details of what's included are available here: https://github.com/terraform-providers/terraform-provider-azurerm/blob/v1.2.0/CHANGELOG.md#120-march-02-2018

Thanks!

@ghost
Copy link

ghost commented Mar 31, 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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 31, 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