-
Notifications
You must be signed in to change notification settings - Fork 2.1k
mgmt redis , fix live test failures #47602
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
base: main
Are you sure you want to change the base?
mgmt redis , fix live test failures #47602
Conversation
- Implemented `localAuthDisabled()` method to check if local auth is disabled - Added `disableLocalAuth()` method to disable SAS authentication - Updated Redis cache definition and update stages to include local auth settings - Modified tests to verify local auth disable functionality - Extended Redis cache models to support local authentication configuration - Integrated local auth settings into Redis cache creation and update flows
- Removed disableLocalAuth() from Redis cache update operations - Commented out Redis configuration backup settings and assertions - Simplified test cases by removing redundant local auth disabling - Updated public network access test to match new behavior - Maintained core Redis cache functionality verification
…date modes - Updated disableLocalAuth to properly set authentication flag during create mode - Updated disableLocalAuth to properly set authentication flag during update mode - Removed redundant disableLocalAuth call in test updates - Added assertions to verify local auth disabled state after creation - Enabled AAD configuration in multiple test scenarios for comprehensive coverage
- Removed deprecated `withNonSslPort()` method calls in Redis cache setup - Updated test configurations to align with current SSL-only requirements - Ensured firewall rules and other configurations remain unchanged - Verified that all existing test cases pass without non-SSL port dependency
- Replace hardcoded connection string with storage account blob endpoint - Add managed identity authentication for data persistence - Disable secondary AOF storage connection string validation - Maintain AOF backup enabled configuration - Keep local auth disabled and AAD enabled settings
… for RDB backup configuration
Update the assets tag from 87b73bc96e to 4829c91ebd in the assets.json file for the redis resource manager package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes live test failures in the Azure Redis Cache management library by addressing Azure policy requirements that disallow local authentication. The changes enable Azure Active Directory (AAD) authentication, disable local/access key authentication, and configure managed identity for backup operations.
Key Changes:
- Adds support for disabling local authentication via new
disableLocalAuth()API andlocalAuthDisabled()getter - Updates all Redis Cache test creations to enable AAD authentication and disable local auth
- Removes non-SSL port configuration (incompatible with AAD authentication)
- Switches backup configuration from connection strings to managed identity authentication
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| RedisCacheOperationsTests.java | Updates test Redis Cache creations to enable AAD, disable local auth, remove non-SSL ports, and use managed identity for RDB/AOF backup configurations |
| RedisCache.java | Adds localAuthDisabled() method and WithLocalAuth interfaces to definition and update stages to support disabling local authentication |
| RedisCacheImpl.java | Implements localAuthDisabled() getter and disableLocalAuth() method that sets the disableAccessKeyAuthentication property |
...e-resourcemanager-redis/src/main/java/com/azure/resourcemanager/redis/models/RedisCache.java
Outdated
Show resolved
Hide resolved
...e-resourcemanager-redis/src/main/java/com/azure/resourcemanager/redis/models/RedisCache.java
Outdated
Show resolved
Hide resolved
...e-resourcemanager-redis/src/main/java/com/azure/resourcemanager/redis/models/RedisCache.java
Outdated
Show resolved
Hide resolved
...e-resourcemanager-redis/src/main/java/com/azure/resourcemanager/redis/models/RedisCache.java
Outdated
Show resolved
Hide resolved
...e-resourcemanager-redis/src/main/java/com/azure/resourcemanager/redis/models/RedisCache.java
Outdated
Show resolved
Hide resolved
...cemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java
Outdated
Show resolved
Hide resolved
...cemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java
Outdated
Show resolved
Hide resolved
...cemanager-redis/src/test/java/com/azure/resourcemanager/redis/RedisCacheOperationsTests.java
Outdated
Show resolved
Hide resolved
docs(redis): update Redis cache documentation to use correct terminology - change "Redis namespace" to "Redis cache" in interface documentation - update method descriptions to reference Redis cache instead of namespace - correct return type descriptions to use "Redis cache definition" terminology - maintain consistent documentation across both creation and update stages ```
…com/v-huizhu2/azure-sdk-for-java into mgmt_livetests_redis_resourcehealth
… cache tests - Remove commented out storage connection string generation code - Remove unused connectionString variable declaration - Remove commented out Redis configuration lines for aof-storage-connection-string-0 and aof-storage-connection-string-1 - Remove commented out assertion for aofStorageConnectionString1 - Clean up redundant test code that was not being used
Disable local authentication in Redis Cache creation.
#47372
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines