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

Search - update API version to 2024-06-01-preview #27803

Conversation

jan-mrm
Copy link
Contributor

@jan-mrm jan-mrm commented Oct 29, 2024

Community Note

  • Please vote on this PR by adding a 👍 reaction to the original PR to help the community and maintainers prioritize for review
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for PR followers and do not help prioritize for review

Description

This PR updates all Search service api versions to 2024-06-01-preview.
This is done as a prerequisite for issue #26575

Notable change is that the spec now returns a identity.SystemAndUserAssignedMap instead of a identity.SystemAssigned allowing for more than just SystemAssigned identities.

PR Checklist

  • I have followed the guidelines in our Contributing Documentation.
  • I have checked to ensure there aren't other open Pull Requests for the same update/change.
  • I have checked if my changes close any open issues. If so please include appropriate closing keywords below.
  • I have updated/added Documentation as required written in a helpful and kind way to assist users that may be unfamiliar with the resource / data source.
  • I have used a meaningful PR title to help maintainers and other users understand this change and help prevent duplicate work.
    For example: “resource_name_here - description of change e.g. adding property new_property_name_here

Changes to existing Resource / Data Source

  • I have added an explanation of what my changes do and why I'd like you to include them (This may be covered by linking to an issue above, but may benefit from additional explanation).
  • I have written new tests for my resource or datasource changes & updated any relevent documentation.
  • I have successfully run tests with my changes locally. If not, please provide details on testing challenges that prevented you running the tests.

Affected resources from the api update:

  • azurerm_search_service (resource)
  • azurerm_search_service (data source)
  • azurerm_search_shared_private_link_service
  • azurerm_cognitive_account

Testing

  • My submission includes Test coverage as described in the Contribution Guide and the tests pass. (if this is not possible for any reason, please include details of why you did or could not add test coverage)
=== RUN   TestAccSearchService_basicSku
=== PAUSE TestAccSearchService_basicSku
=== RUN   TestAccSearchService_standardSku
=== PAUSE TestAccSearchService_standardSku
=== RUN   TestAccSearchService_requiresImport
=== PAUSE TestAccSearchService_requiresImport
=== RUN   TestAccSearchService_complete
=== PAUSE TestAccSearchService_complete
=== RUN   TestAccSearchService_update
=== PAUSE TestAccSearchService_update
=== RUN   TestAccSearchService_ipRules
=== PAUSE TestAccSearchService_ipRules
=== RUN   TestAccSearchService_identity
=== PAUSE TestAccSearchService_identity
=== RUN   TestAccSearchService_identityUserAssigned
=== PAUSE TestAccSearchService_identityUserAssigned
=== RUN   TestAccSearchService_identitySystemAndUserAssigned
=== PAUSE TestAccSearchService_identitySystemAndUserAssigned
=== RUN   TestAccSearchService_hostingMode
=== PAUSE TestAccSearchService_hostingMode
=== RUN   TestAccSearchService_hostingModeInvalidSKU
=== PAUSE TestAccSearchService_hostingModeInvalidSKU
=== RUN   TestAccSearchService_partitionCountInvalidBySku
=== PAUSE TestAccSearchService_partitionCountInvalidBySku
=== RUN   TestAccSearchService_partitionCountInvalidByInput
=== PAUSE TestAccSearchService_partitionCountInvalidByInput
=== RUN   TestAccSearchService_replicaCountInvalid
=== PAUSE TestAccSearchService_replicaCountInvalid
=== RUN   TestAccSearchService_replicaCount
=== PAUSE TestAccSearchService_replicaCount
=== RUN   TestAccSearchService_customerManagedKeyEnforcement
=== PAUSE TestAccSearchService_customerManagedKeyEnforcement
=== RUN   TestAccSearchService_customerManagedKeyEnforcementUpdate
=== PAUSE TestAccSearchService_customerManagedKeyEnforcementUpdate
=== RUN   TestAccSearchService_apiAccessControlRbacError
=== PAUSE TestAccSearchService_apiAccessControlRbacError
=== RUN   TestAccSearchService_apiAccessControlUpdate
=== PAUSE TestAccSearchService_apiAccessControlUpdate
=== RUN   TestAccSearchService_localAuthEnabled
=== PAUSE TestAccSearchService_localAuthEnabled
=== CONT  TestAccSearchService_basicSku
=== CONT  TestAccSearchService_hostingMode
=== CONT  TestAccSearchService_requiresImport
=== CONT  TestAccSearchService_standardSku
=== CONT  TestAccSearchService_customerManagedKeyEnforcement
=== NAME  TestAccSearchService_semanticSearchBasicFreeSkuError
=== CONT  TestAccSearchService_apiAccessControlRbacError
=== CONT  TestAccSearchService_customerManagedKeyEnforcementUpdate
--- PASS: TestAccSearchService_apiAccessControlRbacError (32.42s)
--- PASS: TestAccSearchService_requiresImport (81.91s)
=== CONT  TestAccSearchService_partitionCountInvalidByInput
--- PASS: TestAccSearchService_partitionCountInvalidByInput (4.01s)
=== CONT  TestAccSearchService_replicaCount
--- PASS: TestAccSearchService_standardSku (91.53s)
=== CONT  TestAccSearchService_replicaCountInvalid
--- PASS: TestAccSearchService_basicSku (99.56s)
=== CONT  TestAccSearchService_partitionCountInvalidBySku
--- PASS: TestAccSearchService_replicaCountInvalid (32.43s)
=== CONT  TestAccSearchService_hostingModeInvalidSKU
--- PASS: TestAccSearchService_partitionCountInvalidBySku (32.31s)
=== CONT  TestAccSearchService_identity
=== CONT  TestAccSearchService_identitySystemAndUserAssigned
--- PASS: TestAccSearchService_hostingModeInvalidSKU (32.89s)
--- PASS: TestAccSearchService_identitySystemAndUserAssigned (168.33s)
=== CONT  TestAccSearchService_identityUserAssigned
--- PASS: TestAccSearchService_customerManagedKeyEnforcement (619.92s)
=== CONT  TestAccSearchService_ipRules
--- PASS: TestAccSearchService_hostingMode (670.34s)
=== CONT  TestAccSearchService_update
--- PASS: TestAccSearchService_localAuthEnabled (667.52s)
=== CONT  TestAccSearchService_complete
--- PASS: TestAccSearchService_customerManagedKeyEnforcementUpdate (701.05s)
--- PASS: TestAccSearchService_identity (672.80s)
--- PASS: TestAccSearchService_apiAccessControlUpdate (792.87s)
--- PASS: TestAccSearchService_replicaCount (824.73s)
--- PASS: TestAccSearchService_identityUserAssigned (715.61s)
--- PASS: TestAccSearchService_ipRules (807.39s)
--- PASS: TestAccSearchService_complete (811.68s)
--- PASS: TestAccSearchService_update (1728.68s)

I was not able to run the following listed 3 tests successfully since they hardcoded create resources in westus which does not work in my setup:

  • TestAccSearchService_semanticSearchBasicFreeSkuError
  • TestAccSearchService_semanticSearchUpdate
  • TestAccSearchService_freeSku

Change Log

Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.

This is a (please select all that apply):

  • Bug Fix
  • New Feature (ie adding a service, resource, or data source)
  • Enhancement
  • Breaking Change

Related Issue(s)

related to #26575

Note

If this PR changes meaningfully during the course of review please update the title and description as required.

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 @jan-mrm - This looks mostly good to me, just a change of approach for testing to take a look at please. Once that's addressed, I think this will be good to run though our testing and get merged.

Thanks

@jackofallops jackofallops self-assigned this Nov 14, 2024
…rvice-to-2024-06-01-preview

# Conflicts:
#	internal/services/cognitive/cognitive_account_resource.go
@jan-mrm jan-mrm requested a review from jackofallops November 27, 2024 07:21
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 for the changes @jan-mrm - This LGTM now. I'll get the acceptance tests run and assuming there's no problems / regressions we'll get this merged

Thanks

@jackofallops
Copy link
Member

Tests look good:

image

@jackofallops jackofallops changed the title feat: update Search service API version from 2022-09-01 and 2023-11-01 to 2024-06-01-preview Search - update API version to 2024-06-01-preview Nov 28, 2024
@jackofallops jackofallops merged commit 1b8d927 into hashicorp:main Nov 28, 2024
34 checks passed
@github-actions github-actions bot added this to the v4.12.0 milestone Nov 28, 2024
jackofallops added a commit that referenced this pull request Nov 28, 2024
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 Dec 29, 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.

3 participants