chore: init load tests (#7635)

* init load tests

* add machine pat

* setup app

* add introspect

* use xk6-modules repo

* logging

* add teardown

* add manipulate user

* add manipulate user

* remove logs

* convert tests to ts

* add readme

* zitadel

* review comments
This commit is contained in:
Silvan
2024-04-18 12:21:07 +03:00
committed by GitHub
parent dbb824a73f
commit d337668599
22 changed files with 5612 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { options } from 'k6/http';
import { Config } from './config';
export type options = {
searchParams?: { [name: string]: string };
};
export default function url(path: string, options: options = {}) {
let url = new URL(Config.host + path);
if (options.searchParams) {
Object.entries(options.searchParams).forEach(([key, value]) => {
url.searchParams.append(key, value);
});
}
return url.toString();
}