-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathmisc.feature
56 lines (51 loc) · 1.45 KB
/
misc.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Feature: Misc
Scenario: Method Override
When I make a GET request to "/files/unknown"
"""
X-HTTP-Method-Override: OPTIONS
"""
Then I should see response headers
"""
Tus-Version: 1.0.0
"""
Scenario: Trailing Slash
When I make an OPTIONS request to "/files/"
"""
"""
Then I should see response status "204 No Content"
And I should see response headers
"""
Tus-Resumable: 1.0.0
Tus-Version: 1.0.0
Tus-Extension: creation,creation-defer-length,termination,expiration,concatenation,checksum
Tus-Checksum-Algorithm: sha1,sha256,sha384,sha512,md5,crc32
"""
Scenario: Not Allowed
When I make a PUT request to "/files"
"""
Tus-Resumable: 1.0.0
"""
Then I should see response status "405 Not Allowed"
Scenario: Missing Tus-Resumable
When I make a POST request to "/files"
"""
Upload-Length: 100
"""
And I should see "Unsupported version"
Then I should see response status "412 Precondition Failed"
And I should see response headers
"""
Tus-Version: 1.0.0
"""
Scenario: Invalid Tus-Resumable
When I make a POST request to "/files"
"""
Tus-Resumable: 2.0.0
Upload-Length: 100
"""
And I should see "Unsupported version"
Then I should see response status "412 Precondition Failed"
And I should see response headers
"""
Tus-Version: 1.0.0
"""