nixos/tests/gitlab: Fix Authorization Bearer field
Due to an incorrect shell escape the Authorization Bearer Token was not
present in the cURL request headers.
commit28068cebc9871de0f24ff6ae4e4abd7754d616d2
authorYaya <mak@nyantec.com>
dateThu 31 Mar 2022, 19:33 (5 years ago)
parent9a81311
nixos/tests/gitlab.nix+1−1
@@ -112,7 +112,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : with lib; {
112112 "${pkgs.sudo}/bin/sudo -u gitlab -H gitlab-rake gitlab:check 1>&2"
113113 )
114114 gitlab.succeed(
115− "echo \"Authorization: Bearer \$(curl -X POST -H 'Content-Type: application/json' -d @${auth} http://gitlab/oauth/token | ${pkgs.jq}/bin/jq -r '.access_token')\" >/tmp/headers"
115+ "echo \"Authorization: Bearer $(curl -X POST -H 'Content-Type: application/json' -d @${auth} http://gitlab/oauth/token | ${pkgs.jq}/bin/jq -r '.access_token')\" >/tmp/headers"
116116 )
117117 '' + optionalString doSetup ''
118118 gitlab.succeed(