Commit 22ad1b9
committed
Fix test failures by adding tenant-id configuration
Update tests to specify tenant-id or application-type to prevent
Resource Server configuration from being inadvertently activated.
Changes:
1. AadWebApplicationConfigurationTests - Added application-type=web_application
to explicitly configure tests as web application only
2. AadAutoConfigurationServletConditionTests - Added tenant-id=fake-tenant-id
for tests using oauthClientAndResourceServerRunner
3. AadOAuth2ClientConfigurationTests - Added tenant-id=fake-tenant-id
for testWithRequiredPropertiesSet
These fixes address test failures caused by the new tenant-id validation
logic that rejects common/organizations/consumers values for resource
server configurations. Tests now properly isolate web application
scenarios from resource server scenarios.
All 1084 tests now pass.1 parent 01e3e23 commit 22ad1b9
3 files changed
Lines changed: 8 additions & 3 deletions
File tree
- sdk/spring/spring-cloud-azure-autoconfigure/src/test/java/com/azure/spring/cloud/autoconfigure/implementation/aad/configuration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
0 commit comments