-
Notifications
You must be signed in to change notification settings - Fork 334
http-client-java, bug fix on mock value for BinaryData #9527
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?
http-client-java, bug fix on mock value for BinaryData #9527
Conversation
commit: |
| url: url; | ||
| nullableFloatDict: Record<float64 | null>; | ||
| encoded: Encoded; | ||
| encoding: Encoded; |
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.
rename due to model with property name containing "code" will be skipped for mock test (as "code=value" likely trigger a report, like "key" or "credential" etc.)
|
All changed packages have been documented.
Show changes
|
|
You can try these changes here
|
| import com.azure.core.util.BinaryData; | ||
| import java.util.HashMap; | ||
| import java.util.Map; | ||
| import org.junit.jupiter.api.Assertions; |
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.
May I understand why the these test files are deleted?
In Generate.ps1, I saw below codes are deleted, so from my understanding, tests will be generated? But I saw three tests deleted? This might be a bit confuse to me.
# for mgmt, do not generate tests due to random mock values
$tspOptions += " --option ""@typespec/http-client-java.generate-tests=false"""
fix #9508