-
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
file list v2 behavior fixes #22509
Merged
Merged
file list v2 behavior fixes #22509
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
jaschrep-msft
requested review from
alzimmermsft,
amishra-dev,
gapra-msft,
kasobol-msft and
rickle-msft
as code owners
June 24, 2021 21:27
jaschrep-msft
commented
Jun 24, 2021
Comment on lines
+385
to
+416
given: | ||
primaryDirectoryClient.create() | ||
def nameList = new LinkedList() | ||
def dirPrefix = namer.getRandomName(60) | ||
for (int i = 0; i < 2; i++) { | ||
def subDirClient = primaryDirectoryClient.getSubdirectoryClient(dirPrefix + i) | ||
subDirClient.create() | ||
for (int j = 0; j < 2; j++) { | ||
def num = i * 2 + j + 3 | ||
subDirClient.createFile(dirPrefix + num, 1024) | ||
} | ||
} | ||
primaryDirectoryClient.createFile(dirPrefix + 2, 1024) | ||
for (int i = 0; i < 3; i++) { | ||
nameList.add(dirPrefix + i) | ||
} | ||
|
||
when: | ||
def fileRefIter = primaryDirectoryClient.listFilesAndDirectories(namer.getResourcePrefix() + extraPrefix, maxResults, null, null).iterator() | ||
|
||
then: | ||
for (int i = 0; i < numOfResults; i++) { | ||
Objects.equals(nameList.pop(), fileRefIter.next().getName()) | ||
} | ||
!fileRefIter.hasNext() | ||
|
||
where: | ||
extraPrefix | maxResults | numOfResults | ||
"" | null | 3 | ||
"" | 1 | 3 | ||
"noOp" | 3 | 0 | ||
} |
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.
This is a reversion to the old test, keeping old and new service version functionality tested separately.
kasobol-msft
approved these changes
Jun 24, 2021
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.
Thank you!
gapra-msft
approved these changes
Jun 24, 2021
azure-sdk
pushed a commit
to azure-sdk/azure-sdk-for-java
that referenced
this pull request
Feb 22, 2023
Networking 2022-09-01 release (Azure#22639) * Adds base for updating Microsoft.Network from version stable/2022-07-01 to version 2022-09-01 * Updates readme * Updates API version in new specs and examples * Added flowlog property in virtual network (Azure#21790) Co-authored-by: Krishna Mishra <krmishr@microsoft.com> * commit1 (Azure#22111) Co-authored-by: Khushboo Baheti <khbaheti@microsoft.com> * adding auth status property to circuit (Azure#22024) * Make auth status readonly (Azure#22365) * make auth status read only * fixing model validation * prettier fix * Add support for State flag in Custom Rule (Azure#22457) * Fix LRO header model validation (Azure#22506) * Add new status code for application gateway custom error page (Azure#22151) * Add new status code for application gateway custom error page * Fix prettier * Adding words to Custom-Words list * Fix missing resource id in application gateway list example (Azure#22509) * Resolving merge conflicts with main branch --------- Co-authored-by: Mikhail <mitryakh@microsoft.com> Co-authored-by: KRISHNA MISHRA <krishmi139@gmail.com> Co-authored-by: Krishna Mishra <krmishr@microsoft.com> Co-authored-by: Khushboo Baheti <37917868+Khushboo-Baheti@users.noreply.github.com> Co-authored-by: Khushboo Baheti <khbaheti@microsoft.com> Co-authored-by: utbarn-ms <66377251+utbarn-ms@users.noreply.github.com> Co-authored-by: tejasshah7 <49326906+tejasshah7@users.noreply.github.com> Co-authored-by: Prateek Sachan <42961174+prateek2211@users.noreply.github.com>
azure-sdk
pushed a commit
to azure-sdk/azure-sdk-for-java
that referenced
this pull request
Feb 22, 2023
Networking 2022-09-01 release (Azure#22639) * Adds base for updating Microsoft.Network from version stable/2022-07-01 to version 2022-09-01 * Updates readme * Updates API version in new specs and examples * Added flowlog property in virtual network (Azure#21790) Co-authored-by: Krishna Mishra <krmishr@microsoft.com> * commit1 (Azure#22111) Co-authored-by: Khushboo Baheti <khbaheti@microsoft.com> * adding auth status property to circuit (Azure#22024) * Make auth status readonly (Azure#22365) * make auth status read only * fixing model validation * prettier fix * Add support for State flag in Custom Rule (Azure#22457) * Fix LRO header model validation (Azure#22506) * Add new status code for application gateway custom error page (Azure#22151) * Add new status code for application gateway custom error page * Fix prettier * Adding words to Custom-Words list * Fix missing resource id in application gateway list example (Azure#22509) * Resolving merge conflicts with main branch --------- Co-authored-by: Mikhail <mitryakh@microsoft.com> Co-authored-by: KRISHNA MISHRA <krishmi139@gmail.com> Co-authored-by: Krishna Mishra <krmishr@microsoft.com> Co-authored-by: Khushboo Baheti <37917868+Khushboo-Baheti@users.noreply.github.com> Co-authored-by: Khushboo Baheti <khbaheti@microsoft.com> Co-authored-by: utbarn-ms <66377251+utbarn-ms@users.noreply.github.com> Co-authored-by: tejasshah7 <49326906+tejasshah7@users.noreply.github.com> Co-authored-by: Prateek Sachan <42961174+prateek2211@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Responding to post-merge comments on #21720