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 timezone logic app recurrence #8829

Merged

Conversation

Lucretius
Copy link
Contributor

@Lucretius Lucretius commented Oct 10, 2020

Resolves the other part of #4316

According to this documentation time_zone is only applicable during start_time.

The list of time zones is not provided exactly. This documentation seems to indicate its the list I posted in the code - though its also unclear whether or not punctuation needs to be removed.

Fixes #4316

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 @Lucretius

Thanks for this PR :)

Taking a look through this mostly LGTM - if we can update the test to confirm that it's possible to update the timezone here then this otherwise LGTM 👍

Thanks!

@Lucretius
Copy link
Contributor Author

Alright, UTC has been set as the default for time_zone, and an old test which just sets the start_time has been updated to verify. I also updated the other test to ensure update behavior works.

@ghost ghost removed the waiting-response label Oct 12, 2020
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Hey @Lucretius,

Overall this looks good, but there is some failing tests:

TestAccAzureRMLogicAppTriggerRecurrence_hour: testing.go:684: Step 1 error: ImportStateVerify attributes not equivalent. Difference is shown below. Top is actual, bottom is expected.
        
        (map[string]string) {
        }
        
        
        (map[string]string) (len=1) {
         (string) (len=9) "time_zone": (string) (len=3) "UTC"
        }

looks like you'll need to change it from default to computed?

@katbyte katbyte added this to the v2.34.0 milestone Oct 22, 2020
@Lucretius
Copy link
Contributor Author

Swapping the property to computed seemed to fix the test locally. I also noticed that the timezones did not seem to like punctuation (the docs seemed to hint at this) so the timezone list now does not contain any punctuation (U.S. East -> US East). All tests were run locally and passed.

@ghost ghost removed the waiting-response label Oct 28, 2020
@jackofallops
Copy link
Member

Tests passing:
image

Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

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

Thanks @Lucretius - LGMT now the tests are fixed up 👍

@jackofallops jackofallops dismissed stale reviews from katbyte and tombuildsstuff October 29, 2020 14:55

Review comments addressed

@jackofallops jackofallops merged commit 490ef12 into hashicorp:master Oct 29, 2020
jackofallops added a commit that referenced this pull request Oct 29, 2020
@ghost
Copy link

ghost commented Oct 29, 2020

This has been released in version 2.34.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 = "~> 2.34.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Nov 29, 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 as resolved and limited conversation to collaborators Nov 29, 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.

Support for startTime and timeZone in azurerm_logic_app_trigger_recurrence
4 participants