ADD bruno for testing endpoints
This commit is contained in:
11
bruno/VoD-System/Download.bru
Normal file
11
bruno/VoD-System/Download.bru
Normal file
@@ -0,0 +1,11 @@
|
||||
meta {
|
||||
name: Download
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/download/{{video_uuid}}
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
17
bruno/VoD-System/Edit.bru
Normal file
17
bruno/VoD-System/Edit.bru
Normal file
@@ -0,0 +1,17 @@
|
||||
meta {
|
||||
name: Edit
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/edit/{{video_uuid}}
|
||||
body: formUrlEncoded
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:form-urlencoded {
|
||||
startPoint: 10
|
||||
endPoint: 30
|
||||
fileSize: 8000
|
||||
}
|
||||
11
bruno/VoD-System/Process.bru
Normal file
11
bruno/VoD-System/Process.bru
Normal file
@@ -0,0 +1,11 @@
|
||||
meta {
|
||||
name: Process
|
||||
type: http
|
||||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/process/{{video_uuid}}
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
11
bruno/VoD-System/Progress.bru
Normal file
11
bruno/VoD-System/Progress.bru
Normal file
@@ -0,0 +1,11 @@
|
||||
meta {
|
||||
name: Progress
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{base_url}}/progress/{{video_uuid}}
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
19
bruno/VoD-System/Upload.bru
Normal file
19
bruno/VoD-System/Upload.bru
Normal file
@@ -0,0 +1,19 @@
|
||||
meta {
|
||||
name: Upload
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{base_url}}/upload
|
||||
body: multipartForm
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:multipart-form {
|
||||
file: @file(/Users/faoite/Downloads/Why Australia's Economy is Stalling.mp4)
|
||||
}
|
||||
|
||||
script:post-response {
|
||||
bru.setEnvVar("video_uuid",res.getBody());
|
||||
}
|
||||
9
bruno/VoD-System/bruno.json
Normal file
9
bruno/VoD-System/bruno.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"version": "1",
|
||||
"name": "VoD-System",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
||||
4
bruno/VoD-System/environments/dev.bru
Normal file
4
bruno/VoD-System/environments/dev.bru
Normal file
@@ -0,0 +1,4 @@
|
||||
vars {
|
||||
base_url: http://localhost:8080
|
||||
video_uuid:
|
||||
}
|
||||
Reference in New Issue
Block a user