Skip to content
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

[Tests-Only] Allow up to 9 seconds delay in setTimeout API tests #37714

Merged
merged 1 commit into from
Jul 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions tests/acceptance/features/apiWebdavLocks2/setTimeout.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ Feature: set timeouts of LOCKS
| propertyName |
| d:lockdiscovery |
Then the value of the item "//d:timeout" in the response should match "<result>"
# consider a drift of 5 seconds between setting the lock and retrieving it
# consider a drift of up to 9 seconds between setting the lock and retrieving it
Examples:
| dav-path | default-timeout | max-timeout | result |
| old | 120 | 3600 | /Second-(120\|11[5-9])$/ |
| old | 99999 | 3600 | /Second-(3600\|359[5-9])$/ |
| new | 120 | 3600 | /Second-(120\|11[5-9])$/ |
| new | 99999 | 3600 | /Second-(3600\|359[5-9])$/ |
| old | 120 | 3600 | /Second-(120\|11[1-9])$/ |
| old | 99999 | 3600 | /Second-(3600\|359[1-9])$/ |
| new | 120 | 3600 | /Second-(120\|11[1-9])$/ |
| new | 99999 | 3600 | /Second-(3600\|359[1-9])$/ |

Scenario Outline: set timeout on folder
Given using <dav-path> DAV path
Expand Down Expand Up @@ -83,18 +83,18 @@ Feature: set timeouts of LOCKS
Then the value of the item "//d:timeout" in the response should match "<result>"
Examples:
| dav-path | timeout | default-timeout | max-timeout | result |
| old | second-600 | 120 | 3600 | /Second-(600\|59[5-9])$/ |
| old | second-600 | 99999 | 3600 | /Second-(600\|59[5-9])$/ |
| old | second-10000 | 120 | 3600 | /Second-(3600\|359[5-9])$/ |
| old | second-10000 | 99999 | 3600 | /Second-(3600\|359[5-9])$/ |
| old | infinite | 120 | 3600 | /Second-(3600\|359[5-9])$/ |
| old | infinite | 99999 | 3600 | /Second-(3600\|359[5-9])$/ |
| new | second-600 | 120 | 3600 | /Second-(600\|59[5-9])$/ |
| new | second-600 | 99999 | 3600 | /Second-(600\|59[5-9])$/ |
| new | second-10000 | 120 | 3600 | /Second-(3600\|359[5-9])$/ |
| new | second-10000 | 99999 | 3600 | /Second-(3600\|359[5-9])$/ |
| new | infinite | 120 | 3600 | /Second-(3600\|359[5-9])$/ |
| new | infinite | 99999 | 3600 | /Second-(3600\|359[3-9])$/ |
| old | second-600 | 120 | 3600 | /Second-(600\|59[1-9])$/ |
| old | second-600 | 99999 | 3600 | /Second-(600\|59[1-9])$/ |
| old | second-10000 | 120 | 3600 | /Second-(3600\|359[1-9])$/ |
| old | second-10000 | 99999 | 3600 | /Second-(3600\|359[1-9])$/ |
| old | infinite | 120 | 3600 | /Second-(3600\|359[1-9])$/ |
| old | infinite | 99999 | 3600 | /Second-(3600\|359[1-9])$/ |
| new | second-600 | 120 | 3600 | /Second-(600\|59[1-9])$/ |
| new | second-600 | 99999 | 3600 | /Second-(600\|59[1-9])$/ |
| new | second-10000 | 120 | 3600 | /Second-(3600\|359[1-9])$/ |
| new | second-10000 | 99999 | 3600 | /Second-(3600\|359[1-9])$/ |
| new | infinite | 120 | 3600 | /Second-(3600\|359[1-9])$/ |
| new | infinite | 99999 | 3600 | /Second-(3600\|359[1-9])$/ |

@files_sharing-app-required
Scenario Outline: as owner set timeout on folder as receiver check it
Expand Down