You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix environment variable check to skip tests when either variable is missing
- Changed logic from AND to OR: skip test if endpoint OR key is missing
- Both environment variables are required for integration tests to run
- This ensures tests are skipped in Azure DevOps pipeline without proper credentials
Copy file name to clipboardExpand all lines: sdk/contentunderstanding/azure-ai-contentunderstanding/src/test/java/com/azure/ai/contentunderstanding/generated/ContentUnderstandingClientTestBase.java
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,12 +27,16 @@ class ContentUnderstandingClientTestBase extends TestProxyTestBase {
27
27
* Utility method to check if required environment variables are available.
28
28
* If they are not available, the test will be skipped.
29
29
* This is useful for integration tests that require real Azure credentials.
30
+
*
31
+
* Both CONTENTUNDERSTANDING_ENDPOINT and AZURE_CONTENT_UNDERSTANDING_KEY must be set
32
+
* for the test to run. If either is missing, the test is skipped.
0 commit comments