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 () { | export default function () { | ||||||
|     const domain = __ENV.DOMAIN; |     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 cookieJar = new http.CookieJar(); | ||||||
|     const params = { |     const params = { | ||||||
|         jar: cookieJar, |         jar: cookieJar, | ||||||
|  | |||||||
| @ -56,7 +56,7 @@ export function setup() { | |||||||
|             const group_policies_count = testcase[1]; |             const group_policies_count = testcase[1]; | ||||||
|             const expression_policies_count = testcase[2]; |             const expression_policies_count = testcase[2]; | ||||||
|             const domain = `provider-oauth2-${user_policies_count}-${group_policies_count}-${expression_policies_count}.${host}:9000`; |             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 = { |             const params = { | ||||||
|                 headers: { |                 headers: { | ||||||
|                     "Content-Type": "application/json", |                     "Content-Type": "application/json", | ||||||
| @ -154,7 +154,7 @@ export default function (data) { | |||||||
|         code_challenge_method: "S256", |         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, |         urlParams, | ||||||
|     ) |     ) | ||||||
|         .map((kv) => kv.map(encodeURIComponent).join("=")) |         .map((kv) => kv.map(encodeURIComponent).join("=")) | ||||||
| @ -168,7 +168,7 @@ export default function (data) { | |||||||
|         return; |         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); |     res = http.get(url, params); | ||||||
|     check(res, { |     check(res, { | ||||||
|         "status is 200": (res) => res.status === 200, |         "status is 200": (res) => res.status === 200, | ||||||
|  | |||||||
| @ -73,7 +73,7 @@ export default function () { | |||||||
|     for (let page = 1; page <= pages; page++) { |     for (let page = 1; page <= pages; page++) { | ||||||
|         requests.push([ |         requests.push([ | ||||||
|             "GET", |             "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, |             null, | ||||||
|             { |             { | ||||||
|                 headers: { |                 headers: { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Marc 'risson' Schmitt
					Marc 'risson' Schmitt