summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorKim Lindberger <kim.lindberger@gmail.com>2022-04-07 19:55:17 +0200
committerGitHub <noreply@github.com>2022-04-07 19:55:17 +0200
commit920784e80a14f137ed8464eecbfd902341b8922f (patch)
treef536d9e1f6403a6b257e161e1c0f63e2496d9fff /nixos/tests
parenta782a81321bae43fbe8eded39cb75c4781af589f (diff)
parentdd2cab2b5006db3e10563d6041274c50d578936f (diff)
downloadnixpkgs-920784e80a14f137ed8464eecbfd902341b8922f.tar
nixpkgs-920784e80a14f137ed8464eecbfd902341b8922f.tar.gz
nixpkgs-920784e80a14f137ed8464eecbfd902341b8922f.tar.bz2
nixpkgs-920784e80a14f137ed8464eecbfd902341b8922f.tar.lz
nixpkgs-920784e80a14f137ed8464eecbfd902341b8922f.tar.xz
nixpkgs-920784e80a14f137ed8464eecbfd902341b8922f.tar.zst
nixpkgs-920784e80a14f137ed8464eecbfd902341b8922f.zip
Merge pull request #166602 from talyz/keycloak-17.0.1
keycloak: 16.1.0 -> 17.0.1
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/keycloak.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/keycloak.nix b/nixos/tests/keycloak.nix
index fce8df2b7e3..267216a5e5a 100644
--- a/nixos/tests/keycloak.nix
+++ b/nixos/tests/keycloak.nix
@@ -143,7 +143,7 @@ let
           # post url.
           keycloak.succeed(
               "curl -sSf -c cookie '${frontendUrl}/realms/${realm.realm}/protocol/openid-connect/auth?client_id=${client.name}&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=openid+email&response_type=code&response_mode=query&nonce=qw4o89g3qqm' >login_form",
-              "tidy -q -m login_form || true",
+              "tidy -asxml -q -m login_form || true",
               "xml sel -T -t -m \"_:html/_:body/_:div/_:div/_:div/_:div/_:div/_:div/_:form[@id='kc-form-login']\" -v @action login_form >form_post_url",
           )
 
@@ -151,7 +151,7 @@ let
           # the HTML, then extract the authorization code.
           keycloak.succeed(
               "curl -sSf -L -b cookie -d 'username=${user.username}' -d 'password=${password}' -d 'credentialId=' \"$(<form_post_url)\" >auth_code_html",
-              "tidy -q -m auth_code_html || true",
+              "tidy -asxml -q -m auth_code_html || true",
               "xml sel -T -t -m \"_:html/_:body/_:div/_:div/_:div/_:div/_:div/_:input[@id='code']\" -v @value auth_code_html >auth_code",
           )