ADD bruno for testing endpoints

This commit is contained in:
2025-05-15 09:28:37 +02:00
committed by dylandefaoite
parent ef742dab67
commit b75704ec75
7 changed files with 82 additions and 0 deletions

View 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
View 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
}

View File

@@ -0,0 +1,11 @@
meta {
name: Process
type: http
seq: 4
}
get {
url: {{base_url}}/process/{{video_uuid}}
body: none
auth: inherit
}

View File

@@ -0,0 +1,11 @@
meta {
name: Progress
type: http
seq: 5
}
get {
url: {{base_url}}/progress/{{video_uuid}}
body: none
auth: inherit
}

View 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());
}

View File

@@ -0,0 +1,9 @@
{
"version": "1",
"name": "VoD-System",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}

View File

@@ -0,0 +1,4 @@
vars {
base_url: http://localhost:8080
video_uuid:
}