feat: added initial hurl tests
This commit is contained in:
parent
eb126d5350
commit
134a0dcac0
5 changed files with 33 additions and 0 deletions
11
tests/01-download-localhost.hurl
Normal file
11
tests/01-download-localhost.hurl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# download single file
|
||||
GET http://localhost:5050/downloads
|
||||
|
||||
# download directory as archive
|
||||
GET
|
||||
|
||||
# download single file using plugins
|
||||
|
||||
# download directory as archive using plugins
|
||||
|
||||
|
||||
8
tests/02-upload-localhost.hurl
Normal file
8
tests/02-upload-localhost.hurl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# upload a single new file
|
||||
POST http://localhost:5050/upload
|
||||
|
||||
# upload a new directory
|
||||
|
||||
# upload a new plugin
|
||||
|
||||
# upload a new profile
|
||||
2
tests/03-list-localhost.hurl
Normal file
2
tests/03-list-localhost.hurl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
GET http://localhost:5050/list
|
||||
GET http://localhost:5050/status
|
||||
6
tests/04-profiles-localhost.hurl
Normal file
6
tests/04-profiles-localhost.hurl
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
GET http://localhost:5050/profiles
|
||||
GET http://localhost:5050/profiles/test
|
||||
POST http://localhost:5050/profiles/test
|
||||
GET http://localhost:5050/profiles/test/data
|
||||
POST http://localhost:5050/profiles/test/data
|
||||
DELETE http://localhost:5050/profiles/test/data
|
||||
6
tests/05-plugins-localhost.hurl
Normal file
6
tests/05-plugins-localhost.hurl
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
GET http://localhost:5050/plugins
|
||||
GET http://localhost:5050/plugin/test
|
||||
POST http://localhost:5050/plugins/test
|
||||
DELETE http://localhost:5050/plugin/test
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue