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 signalr args: 'service_mode' and 'allowed_origins' #4716

Merged
merged 5 commits into from
Oct 29, 2019

Conversation

jackbatzner
Copy link
Contributor

Fixes #4422 by adding service_mode and allowed_origins to the azurerm_signalr_service.

Needed to update the signalr api version as the preview version did not have these fields present. Added acceptance tests verifying as well.

Fixes hashicorp#4422 by adding service_mode and allowed_origins to the azurerm_signalr_service.

Fix formatting

Update signalr vendors version

Remove old vendor version

Move signalr outside of preview folder

Fix linting error
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 @Brunhil

Thanks for this PR :)

Taking a look through this is looking good - I've left a few comments inline but if we can fix those up then this otherwise LGTM 👍

Thanks!

azurerm/resource_arm_signalr_service.go Outdated Show resolved Hide resolved
azurerm/resource_arm_signalr_service.go Outdated Show resolved Hide resolved
azurerm/resource_arm_signalr_service.go Outdated Show resolved Hide resolved
azurerm/resource_arm_signalr_service.go Outdated Show resolved Hide resolved
azurerm/resource_arm_signalr_service.go Outdated Show resolved Hide resolved
website/docs/r/signalr_service.html.markdown Outdated Show resolved Hide resolved
website/docs/r/signalr_service.html.markdown Outdated Show resolved Hide resolved
website/docs/r/signalr_service.html.markdown Show resolved Hide resolved
- Add error handling when setting features/cors
- Alphabetize documentation
@jackbatzner
Copy link
Contributor Author

@tombuildsstuff - Addressed your comments, thanks for the feedback! I resolved your comments as well, let me know if this is okay to do.

@ghost ghost removed the waiting-response label Oct 25, 2019
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 @Brunhil

Thanks for pushing those changes - taking a look through this now LGTM 👍

Thanks!

@tombuildsstuff tombuildsstuff modified the milestones: v1.37.0, v1.36.0 Oct 25, 2019
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 @Brunhil

Thanks for pushing those changes - I've run the tests and it looks like there's a few minor issues to sort - but this otherwise LGTM 👍

Thanks!

azurerm/resource_arm_signalr_service.go Show resolved Hide resolved
azurerm/resource_arm_signalr_service.go Show resolved Hide resolved
azurerm/resource_arm_signalr_service_test.go Show resolved Hide resolved
azurerm/resource_arm_signalr_service_test.go Show resolved Hide resolved
azurerm/resource_arm_signalr_service_test.go Show resolved Hide resolved
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 @Brunhil

Thanks for pushing those changes - I've run the tests which noticed one issue:

Screenshot 2019-10-28 at 11 58 25

which is failing because the domain "http://www.contoso.com" isn't a valid CORS Origin (which needs to be a domain name, without the schema). Taking a look through I've left a few other minor comments but if we can fix those up then this otherwise LGTM 👍

Thanks!

azurerm/resource_arm_signalr_service.go Outdated Show resolved Hide resolved
azurerm/resource_arm_signalr_service.go Show resolved Hide resolved
azurerm/resource_arm_signalr_service_test.go Outdated Show resolved Hide resolved
azurerm/resource_arm_signalr_service_test.go Outdated Show resolved Hide resolved
azurerm/resource_arm_signalr_service.go Outdated Show resolved Hide resolved
azurerm/resource_arm_signalr_service.go Outdated Show resolved Hide resolved
@tombuildsstuff
Copy link
Contributor

hey @Brunhil

Thanks for pushing those changes - I've spent a little while debugging this and it appears there's an error in the tests which needed to be fixed to get this to run - as such I hope you don't mind but so that we can get this merged I've pushed a commit which fixes this.

Thanks!

@tombuildsstuff
Copy link
Contributor

Tests pass:

Screenshot 2019-10-29 at 12 30 44

@tombuildsstuff tombuildsstuff merged commit cf51ce5 into hashicorp:master Oct 29, 2019
tombuildsstuff added a commit that referenced this pull request Oct 29, 2019
@jackbatzner jackbatzner deleted the add_signalr_args branch November 14, 2019 22:22
@ghost
Copy link

ghost commented Nov 26, 2019

This has been released in version 1.37.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 1.37.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Nov 28, 2019

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 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Nov 28, 2019
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.

service-mode and allowed-origins arguments missing from azurerm_signalr_service
2 participants