-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added local copy for videoUpload E2E test in CI pipe so its in the repo
- Loading branch information
Radoslav Radev
committed
May 1, 2024
1 parent
09619ea
commit 9f835c8
Showing
9 changed files
with
115 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import http from 'k6/http'; | ||
import { sleep } from 'k6'; | ||
|
||
export let options = { | ||
stages: [ | ||
{ duration: '1m', target: 2000 }, // Ramp up to 100 users over 1 minute | ||
{ duration: '2m', target: 20 }, // Stay at 20 users for 2 minutes | ||
{ duration: '1m', target: 0 }, // Ramp down to 0 users over 1 minute | ||
], | ||
thresholds: { | ||
'http_req_duration': ['p(95)<500'] // 95% of requests must complete below 500ms | ||
}, | ||
ext: { | ||
loadimpact: { | ||
// Project: OpenVidStreamer | ||
projectID: 3693023, | ||
// Test runs with the same name groups test runs together. | ||
name: 'LikeVideo', | ||
} | ||
} | ||
}; | ||
|
||
export default function () { | ||
const params = { | ||
headers: { | ||
'Authorization': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cG4iOiIwOGRjNDIwNy1mZWMwLTRlOTctOGY4MC0zYWU1MDUyYTMwNWEiLCJzdWIiOiIwOGRjNDIwNy1mZWMwLTRlOTctOGY4MC0zYWU1MDUyYTMwNWEiLCJqdGkiOiIxYTM5ZDI0Ny02NjkwLTRkYzItODFhNi1hMTljZmI0MWI4MjIiLCJleHAiOjE3MTM3ODgyMzgsImlzcyI6Ik9wZW5WaWRTdHJlYW1lckFjY291bnRTZXJ2aWNlIiwiYXVkIjoiT3BlblZpZFN0cmVhbWVyRkUifQ.Z8u7QhROGm9jjr0Ih9s4weNHlialLU08dGnCRDo36ug' | ||
} | ||
|
||
}; | ||
|
||
let response = http.get('http://145.220.74.148:8000/recommendationAlgo/likeVideo?videoId=1bf7a7ce-a9bf-47b2-b9f9-23877f82ec66', params); | ||
|
||
// Optionally, you can check the response and log errors | ||
if (response.status !== 200) { | ||
console.log('Unexpected status ' + response.status); | ||
} | ||
|
||
sleep(1); // Pause for 1 second between iterations | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import http from 'k6/http'; | ||
import { sleep } from 'k6'; | ||
|
||
export let options = { | ||
stages: [ | ||
{ duration: '2m', target: 10000 }, // Ramp up to 10 000 users over 2 minute | ||
{ duration: '7m', target: 10000 }, // Stay at 10000 CPS for 7min | ||
{ duration: '1m', target: 0 }, // Ramp down to 0 users over 1 minute | ||
], | ||
thresholds: { | ||
'http_req_duration': ['p(90)<10000'] // 89% of requests must complete below 10sec each HSL video chunc is 10sec long, and if it`s not loaded in 10sec it will result in loading for the user | ||
}, | ||
ext: { | ||
loadimpact: { | ||
// Project: OpenVidStreamer | ||
projectID: 3693023, | ||
// Test runs with the same name groups test runs together. | ||
name: 'StreamVideo', | ||
} | ||
} | ||
}; | ||
|
||
export default function () { | ||
const params = { | ||
headers: { | ||
'Authorization': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cG4iOiIwOGRjNDIwNy1mZWMwLTRlOTctOGY4MC0zYWU1MDUyYTMwNWEiLCJzdWIiOiIwOGRjNDIwNy1mZWMwLTRlOTctOGY4MC0zYWU1MDUyYTMwNWEiLCJqdGkiOiIyNWYwNjgxZC04NzMwLTQ4ZDgtODIyMC0xMzYyMzAwNGVhMmIiLCJleHAiOjE3MTQ1NzE3MTAsImlzcyI6Ik9wZW5WaWRTdHJlYW1lckFjY291bnRTZXJ2aWNlIiwiYXVkIjoiT3BlblZpZFN0cmVhbWVyRkUifQ.LV4iObB6OXV66kdx9caprcWawHbgAHG0HmyYEvuuxmk' | ||
} | ||
|
||
}; | ||
|
||
let response = http.get('http://145.220.74.148:8000/streamer/videos/20240409/43a3308d-e879-4954-857c-f45171e1f27f/playlist3.ts', params); | ||
|
||
// Optionally, you can check the response and log errors | ||
if (response.status !== 200) { | ||
console.log('Unexpected status ' + response.status); | ||
} | ||
|
||
// sleep(1); // Pause for 1 second between iterations | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import http from 'k6/http'; | ||
import { sleep } from 'k6'; | ||
|
||
export let options = { | ||
stages: [ | ||
{ duration: '1m', target: 100 }, // Ramp up to 100 users over 1 minute | ||
{ duration: '1m', target: 100 }, // Stay at 100 users (rps) for 10 minutes | ||
{ duration: '1m', target: 0 }, // Ramp down to 0 users over 1 minute | ||
], | ||
thresholds: { | ||
'http_req_duration': ['p(90)<700'] // 90% of requests must complete below 700ms | ||
} | ||
}; | ||
|
||
export default function () { | ||
const params = { | ||
headers: { | ||
'Authorization': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cG4iOiIwOGRjNDIwNy1mZWMwLTRlOTctOGY4MC0zYWU1MDUyYTMwNWEiLCJzdWIiOiIwOGRjNDIwNy1mZWMwLTRlOTctOGY4MC0zYWU1MDUyYTMwNWEiLCJqdGkiOiIyNWYwNjgxZC04NzMwLTQ4ZDgtODIyMC0xMzYyMzAwNGVhMmIiLCJleHAiOjE3MTQ1NzE3MTAsImlzcyI6Ik9wZW5WaWRTdHJlYW1lckFjY291bnRTZXJ2aWNlIiwiYXVkIjoiT3BlblZpZFN0cmVhbWVyRkUifQ.LV4iObB6OXV66kdx9caprcWawHbgAHG0HmyYEvuuxmk' | ||
} | ||
|
||
}; | ||
|
||
let response = http.get('http://145.220.74.148:8000/videolib/recommendedVideos?category=Other&topN=20', params); | ||
|
||
// Optionally, you can check the response and log errors | ||
if (response.status !== 200) { | ||
console.log('Unexpected status ' + response.status); | ||
} | ||
|
||
// sleep(1); // Pause for 1 second between iterations | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.