Skip to content

Conversation

@v-huizhu2
Copy link
Contributor

This request was denied due to internal policy. Local authentication methods are not allowed.
Add issues #47504
#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:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

- Disabled canCRUDRedisCache test method
- Disabled canCRUDLinkedServers test method
- Disabled canCreateRedisWithRdbAof test method
- Disabled canCreateRedisCacheWithDisablePublicNetworkAccess test method
- Added explanatory comments for disabled tests regarding local authentication policy
- Disabled test case for updating public network access due to internal policy restrictions
- Added @disabled annotation with explanation about local authentication methods not being allowed
- Preserved existing test structure and comments for future reference
Copilot AI review requested due to automatic review settings December 9, 2025 04:39
@github-actions github-actions bot added the Mgmt This issue is related to a management-plane library. label Dec 9, 2025
Copy link
Contributor

Copilot AI left a 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 disables five live tests in the Redis Cache operations test suite that are failing due to an internal Azure policy that blocks local authentication methods. The changes address issues #47504 and #47372.

Key Changes

  • Added @Disabled annotations to five test methods that interact with Redis Cache operations requiring local authentication
  • All disabled tests use a consistent message explaining the reason for disabling

Comment on lines 244 to +245
@Test
@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

[nitpick] The order of @Test and @Disabled annotations is inconsistent with the existing disabled test at line 214. For consistency within this file, consider placing @Disabled before @Test:

@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
@Test
Suggested change
@Test
@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
@Test

Copilot uses AI. Check for mistakes.
Comment on lines 302 to +303
@Test
@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

[nitpick] The order of @Test and @Disabled annotations is inconsistent with the existing disabled test at line 214. For consistency within this file, consider placing @Disabled before @Test:

@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
@Test

Copilot uses AI. Check for mistakes.
Comment on lines 354 to +355
@Test
@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

[nitpick] The order of @Test and @Disabled annotations is inconsistent with the existing disabled test at line 214. For consistency within this file, consider placing @Disabled before @Test:

@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
@Test

Copilot uses AI. Check for mistakes.
Comment on lines 369 to +370
@Test
@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

[nitpick] The order of @Test and @Disabled annotations is inconsistent with the existing disabled test at line 214. For consistency within this file, consider placing @Disabled before @Test:

@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
@Test
Suggested change
@Test
@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
@Test

Copilot uses AI. Check for mistakes.
Comment on lines +42 to 43
@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
@SuppressWarnings("unchecked")
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

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

[nitpick] The order of @Test and @Disabled annotations is inconsistent across the test class. At line 214, the existing disabled test canRedisVersionUpdate() has @Disabled before @Test, while the newly added disabled tests have @Test before @Disabled.

While both orders are functionally equivalent in JUnit 5, maintaining consistency within the same file improves code readability. Consider using the same order as the existing disabled test:

@Disabled("This request was denied due to internal policy. Local authentication methods are not allowed.")
@Test

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@XiaofeiCao XiaofeiCao left a comment

Choose a reason for hiding this comment

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

Please help support disableLocalAuth

@v-huizhu2
Copy link
Contributor Author

Supported disableLocalAuth, due to azure rule

@v-huizhu2 v-huizhu2 closed this Dec 9, 2025
@v-huizhu2 v-huizhu2 deleted the mgmt_livetests_redis_resourcehealth branch December 9, 2025 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mgmt This issue is related to a management-plane library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants