feat: Update docker-compose configuration to use environment variables for sensitive data, enhance testing documentation with new LaTeX files for capacity planning, and refine README for clarity on compilation and testing processes.
This commit is contained in:
@@ -52,11 +52,13 @@ const tinyPdf = encoding.b64decode(
|
||||
|
||||
export default function () {
|
||||
const bin = __ENV.PDF_B64 ? encoding.b64decode(__ENV.PDF_B64) : tinyPdf;
|
||||
// count-api espera el campo multipart "files" (puede ser múltiple).
|
||||
const data = {
|
||||
file: http.file(bin, 'sample.pdf', 'application/pdf'),
|
||||
files: http.file(bin, 'sample.pdf', 'application/pdf'),
|
||||
};
|
||||
const res = http.post(`${BASE_URL}/count/v1/count`, data);
|
||||
check(res, {
|
||||
'status 2xx': (r) => r.status >= 200 && r.status < 300,
|
||||
'not 5xx': (r) => r.status < 500,
|
||||
});
|
||||
sleep(0.1);
|
||||
|
||||
Reference in New Issue
Block a user