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

azurerm_sentinel_data_connector_microsoft_threat_intelligence: deprecate bing_safety_phishing_url_lookback_date #21954

Merged
merged 7 commits into from
Jun 7, 2023

Conversation

ziyeqf
Copy link
Contributor

@ziyeqf ziyeqf commented May 29, 2023

deprecate it as API no longer support it.

test

❯ tftest sentinel TestAccSentinelDataConnectorMicrosoftThreatIntelligence
=== RUN   TestAccSentinelDataConnectorMicrosoftThreatIntelligence_basic
=== PAUSE TestAccSentinelDataConnectorMicrosoftThreatIntelligence_basic
=== RUN   TestAccSentinelDataConnectorMicrosoftThreatIntelligence_complete
=== PAUSE TestAccSentinelDataConnectorMicrosoftThreatIntelligence_complete
=== CONT  TestAccSentinelDataConnectorMicrosoftThreatIntelligence_basic
=== CONT  TestAccSentinelDataConnectorMicrosoftThreatIntelligence_complete
--- PASS: TestAccSentinelDataConnectorMicrosoftThreatIntelligence_basic (138.94s)
--- PASS: TestAccSentinelDataConnectorMicrosoftThreatIntelligence_complete (187.07s)
PASS
ok      github.com/hashicorp/terraform-provider-azurerm/internal/services/sentinel      187.119s

…el_data_connector_microsoft_threat_intelligence`

Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

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

Nearly there, I just believe there is duplicate code that can be removed

ziyeqf added 2 commits May 31, 2023 10:32
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
@github-actions github-actions bot added size/XS and removed size/S labels Jun 6, 2023
@ziyeqf
Copy link
Contributor Author

ziyeqf commented Jun 6, 2023

have changed microsoft_emerging_threat_feed_lookback_date from optional to required, it seems to be breaking change but it's indeed required by service, without it this resource could not be created

Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

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

Nearly there but we can sidestep the breaking change through the FourPointOh flag

ForceNew: true,
Required: true,
Copy link
Member

Choose a reason for hiding this comment

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

As this is a breaking change, let's set Required/Optional by the FourPointOh feature flag. We also need to update the docs to say this is Required now

ziyeqf added 2 commits June 7, 2023 08:58
This reverts commit 04fbcd3.
Signed-off-by: ziyeqf <51212351+ziyeqf@users.noreply.github.com>
Copy link
Member

@mbfrahry mbfrahry left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for making those changes @ziyeqf

@mbfrahry mbfrahry merged commit 4c4f35c into hashicorp:main Jun 7, 2023
@github-actions github-actions bot added this to the v3.60.0 milestone Jun 7, 2023
mbfrahry added a commit that referenced this pull request Jun 7, 2023
@ziyeqf ziyeqf deleted the tengzh/test/sentinel branch June 8, 2023 00:43
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2024
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