Skip to content

Commit

Permalink
add test coverage for audio prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Salipa-Gurung committed Jun 13, 2024
1 parent 00e4bfc commit 67d3d6e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/acceptance/config/behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ default:
- FilesVersionsContext:
- OCSContext:
- PublicWebDavContext:
- WebDavPropertiesContext:
- SearchContext:
- TUSContext:
- SpacesTUSContext:
Expand Down
16 changes: 16 additions & 0 deletions tests/acceptance/features/apiContract/propfind.feature
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,19 @@ Feature: Propfind test
| Manager | RDNVWZP |
| Space Editor | DNVW |
| Space Viewer | |


Scenario: space-admin checks the PROPFIND request of an audio file from project space
Given user "Alice" has uploaded a file "filesForUpload/testimage.mp3" to "testimage.mp3" in space "new-space"
When user "Alice" gets the following properties of resource "testimage.mp3" inside space "new-space" using the WebDAV API
| propertyName |
| oc:audio |
Then the HTTP status code should be "207"
And the "PROPFIND" response should contain a space "new-space" with these key and value pairs:
| key | value |
| oc:audio/oc:album | ALBUM1234567890123456789012345 |
| oc:audio/oc:artist | ARTIST123456789012345678901234 |
| oc:audio/oc:genre | Pop |
| oc:audio/oc:title | TITLE1234567890123456789012345 |
| oc:audio/oc:track | 1 |
| oc:audio/oc:year | 2001 |
1 change: 1 addition & 0 deletions tests/acceptance/features/bootstrap/SpacesContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -3506,6 +3506,7 @@ public function userGetsTheFollowingPropertiesOfFileInsideSpaceUsingTheWebdavApi
TableNode $propertiesTable
):void {
$this->setSpaceIDByName($user, $spaceName);
sleep(1);
$response = $this->webDavPropertiesContext->getPropertiesOfFolder($user, $resourceName, $propertiesTable);
$this->featureContext->setResponse($response);
}
Expand Down

0 comments on commit 67d3d6e

Please sign in to comment.