-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix JDK HttpClient inclusion in testing #42070
Merged
alzimmermsft
merged 6 commits into
Azure:main
from
alzimmermsft:AzAll_ExcludeJdkHttpClientFromAzureCoreTest
Sep 26, 2024
Merged
Fix JDK HttpClient inclusion in testing #42070
alzimmermsft
merged 6 commits into
Azure:main
from
alzimmermsft:AzAll_ExcludeJdkHttpClientFromAzureCoreTest
Sep 26, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/azp run java - azure-communication-identity - tests |
/azp run java - remoterendering - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
Azure Pipelines successfully started running 1 pipeline(s). |
API change check API changes are not detected in this pull request. |
/azp run java - azure-communication-identity - tests |
/azp run java - remoterendering - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
1 similar comment
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - azure-communication-identity - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
billwert
approved these changes
Sep 26, 2024
/check-enforcer override |
mssfang
pushed a commit
to mssfang/azure-sdk-for-java
that referenced
this pull request
Oct 21, 2024
Fix JDK HttpClient inclusion in testing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
AI Model Inference
App Configuration
Azure.ApplicationModel.Configuration
Attestation
Azure.Core.AMQP
azure-core-amqp
Azure.Core
azure-core
Azure.Identity
Azure Quantum
azure-spring
All azure-spring related issues
Batch
Cognitive - Anomaly Detector
Cognitive - Face
Cognitive - Form Recognizer
Cognitive - Metrics Advisor
Cognitive - Personalizer
Communication - Call Automation
Communication - Calling Server
Communication - Chat
Communication - Email
Communication - Identity
Communication - Phone Numbers
Communication - Rooms
Communication - SMS
Container Registry
DevCenter
Digital Twins
Document Intelligence
Event Grid
Event Hubs
Health Deidentification
Image Analysis
KeyVault
Load Testing
Mgmt
This issue is related to a management-plane library.
Mixed Reality Authentication
Models Repository
Monitor
Monitor, Monitor Ingestion, Monitor Query
OpenAI
OpenTelemetry
OpenTelemetry instrumentation
Purview
Remote Rendering
Schema Registry
Search
Service Bus
Storage
Storage Service (Queues, Blobs, Files)
Tables
Text Translation
WebPubSub
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Resolves an issue where JDK HttpClient would be on the classpath and
HttpClient.createDefaultInstance()
would crash an application during testing on Java 8. In a future release ofazure-core
this will be resolved with service provider loading catching certain errors that are related to class loading issues. So, a lot of this PR will be reverted when that change releases, but this is needed for now to resolve testing issues.Note:
azure-core-test
has utility APIs which already handled these issues, but there are many locations in either test code or production code where an HttpClient isn't being configured, forcing those code paths to fallback to usingHttpClient.createDefaultInstance()
. These code paths should either be updated to using testing utilities that return theHttpClient
implementation to use for testing or for production code those code paths should be updated to support configuring theHttpClient
.All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines