Skip to content

Commit

Permalink
Update regex
Browse files Browse the repository at this point in the history
Signed-off-by: Kiran Parajuli <[email protected]>
  • Loading branch information
kiranparajuli589 committed Oct 12, 2022
1 parent c0f0a9e commit ab83e45
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions tests/acceptance/features/apiWebdavOperations/search.feature
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Feature: Search
| dav_version |
| spaces |

@skipOnOcis
@skipOnOcis @issues-4712
Scenario Outline: report extra properties in search entries for a file
Given using <dav_version> DAV path
When user "Alice" searches for "upload" using the WebDAV API requesting these properties:
Expand All @@ -196,21 +196,21 @@ Feature: Search
| name | value |
| {http://owncloud.org/ns}fileid | \d* |
| {http://owncloud.org/ns}permissions | ^(RDNVW\|RMDNVW)$ |
| {DAV:}getlastmodified | <last_modified_regex> |
| {DAV:}getlastmodified | ^[MTWFS][uedhfriatno]{2},\s(\d){2}\s[JFMAJSOND][anebrpyulgctov]{2}\s\d{4}\s\d{2}:\d{2}:\d{2} GMT$ |
| {DAV:}getetag | ^\"[a-f0-9:\.]{1,32}\"$ |
| {DAV:}getcontenttype | text\/plain |
| {http://owncloud.org/ns}size | 15 |
| {http://owncloud.org/ns}owner-id | %username% |
| {http://owncloud.org/ns}owner-display-name | %displayname% |
Examples:
| dav_version | last_modified_regex |
| old | ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$ |
| new | ^[MTWFS][uedhfriatno]{2},\s(\d){2}\s[JFMAJSOND][anebrpyulgctov]{2}\s\d{4}\s\d{2}:\d{2}:\d{2} GMT$ |
| dav_version |
| old |
| new |

@skipOnOcV10 @personalSpace
Examples:
| dav_version | last_modified_regex |
| spaces | ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$ |
| dav_version |
| spaces |

@skipOnOcV10 @issues-4712
# after the issue is fixed, the above scenario should be run for oCIS as well
Expand Down Expand Up @@ -246,7 +246,7 @@ Feature: Search
| dav_version |
| spaces |

@skipOnOcis
@skipOnOcis @issues-4712
Scenario Outline: report extra properties in search entries for a folder
Given using <dav_version> DAV path
When user "Alice" searches for "upload" using the WebDAV API requesting these properties:
Expand Down Expand Up @@ -279,6 +279,7 @@ Feature: Search
| spaces |

@skipOnOcV10 @issues-4712
# after the issue is fixed, the above scenario should be run for oCIS as well
Scenario Outline: report extra properties in search entries for a folder
Given using <dav_version> DAV path
When user "Alice" searches for "upload" using the WebDAV API requesting these properties:
Expand All @@ -305,7 +306,7 @@ Feature: Search
| old |
| new |

@skipOnOcV10 @personalSpace
@personalSpace
Examples:
| dav_version |
| spaces |
Expand Down

0 comments on commit ab83e45

Please sign in to comment.