API tests for archiver endpoint (single file)

This commit is contained in:
Artur Neumann committed 2021-11-09 14:13:26 +05:45
1 parent cc7c1f0350
commit 13098d9f32
3 files changed
+156

No files matched your search

@@ -0,0 +1,20 @@
@api @skipOnOcV10
Feature: download multiple resources bundled into an archive
As a user
I want to be able to download multiple items at once
So that I don't have to execute repetitive tasks
As a developer
I want to be able to use the resource ID to download multiple items at once
So that I don't have to know the full path of the resource
Background:
Given user "Alice" has been created with default attributes and without skeleton files
Scenario: download a single file
Given user "Alice" has uploaded file with content "some data" to "/textfile0.txt"
When user "Alice" downloads the archive of "/textfile0.txt" using the resource id
Then the HTTP status code should be "200"
And the downloaded archive should contain these files:
| name | content |
| textfile0.txt | some data |