This repository was archived by the owner on Jul 6, 2026. It is now read-only.
mgmt, support more type for generated mock test - #1819
Merged
weidongxu-microsoft merged 7 commits intoNov 4, 2022
Merged
Conversation
weidongxu-microsoft
force-pushed
the
mgmt_generate-more-mock-test
branch
from
November 3, 2022 05:35
ca7d58f to
2eb9aec
Compare
weidongxu-microsoft
marked this pull request as ready for review
November 3, 2022 08:35
weidongxu-microsoft
requested review from
XiaofeiCao,
haolingdong-msft and
srnagar
as code owners
November 3, 2022 08:35
| duration = duration.plusSeconds(RANDOM.nextInt(10 * 24 * 60 * 60)); | ||
| return duration.toString(); | ||
| } else if (type == ClassType.UUID) { | ||
| return UUID.randomUUID().toString(); |
Member
There was a problem hiding this comment.
why do we make this random generated?
Member
Author
There was a problem hiding this comment.
the whole mock data here is randomly generated.
we do this, so that for model / API without example data, we can still test with mock data.
haolingdong-msft
approved these changes
Nov 4, 2022
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
support SimpleSyncRestResponse
using same PR for test Azure/azure-sdk-for-java#31881
mostly this commit Azure/azure-sdk-for-java@edb9a65 (it contains some errors that fixed later)