proper url tags
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
		| @ -25,7 +25,7 @@ export const options = { | ||||
|  | ||||
| export default function () { | ||||
|     const domain = __ENV.DOMAIN; | ||||
|     const url = `http://${domain}.${host}:9000/api/v3/flows/executor/default-authentication-flow/`; | ||||
|     const url = http.url`http://${domain}.${host}:9000/api/v3/flows/executor/default-authentication-flow/`; | ||||
|     const cookieJar = new http.CookieJar(); | ||||
|     const params = { | ||||
|         jar: cookieJar, | ||||
|  | ||||
| @ -56,7 +56,7 @@ export function setup() { | ||||
|             const group_policies_count = testcase[1]; | ||||
|             const expression_policies_count = testcase[2]; | ||||
|             const domain = `provider-oauth2-${user_policies_count}-${group_policies_count}-${expression_policies_count}.${host}:9000`; | ||||
|             const url = `http://${domain}/api/v3/flows/executor/default-authentication-flow/`; | ||||
|             const url = http.url`http://${domain}/api/v3/flows/executor/default-authentication-flow/`; | ||||
|             const params = { | ||||
|                 headers: { | ||||
|                     "Content-Type": "application/json", | ||||
| @ -154,7 +154,7 @@ export default function (data) { | ||||
|         code_challenge_method: "S256", | ||||
|     }; | ||||
|  | ||||
|     let url = `http://${domain}/application/o/authorize/?${Object.entries( | ||||
|     let url = http.url`http://${domain}/application/o/authorize/?${Object.entries( | ||||
|         urlParams, | ||||
|     ) | ||||
|         .map((kv) => kv.map(encodeURIComponent).join("=")) | ||||
| @ -168,7 +168,7 @@ export default function (data) { | ||||
|         return; | ||||
|     } | ||||
|  | ||||
|     url = `http://${domain}/api/v3/flows/executor/default-provider-authorization-implicit-consent/`; | ||||
|     url = http.url`http://${domain}/api/v3/flows/executor/default-provider-authorization-implicit-consent/`; | ||||
|     res = http.get(url, params); | ||||
|     check(res, { | ||||
|         "status is 200": (res) => res.status === 200, | ||||
|  | ||||
| @ -73,7 +73,7 @@ export default function () { | ||||
|     for (let page = 1; page <= pages; page++) { | ||||
|         requests.push([ | ||||
|             "GET", | ||||
|             `http://${domain}/api/v3/core/users/?page=${page}&page_size=${page_size}&include_groups=${with_groups}`, | ||||
|             http.url`http://${domain}/api/v3/core/users/?page=${page}&page_size=${page_size}&include_groups=${with_groups}`, | ||||
|             null, | ||||
|             { | ||||
|                 headers: { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Marc 'risson' Schmitt
					Marc 'risson' Schmitt