about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorYaya <mak@nyantec.com>2022-03-31 19:33:27 +0000
committerYuka <yuka@yuka.dev>2022-03-31 21:56:18 +0200
commit28068cebc9871de0f24ff6ae4e4abd7754d616d2 (patch)
treeb031da853c80ef5de7ca0509c408da0cea32e4cc /nixos/tests
parent9a813114b916d3abffd60b86a91ea707d98011cd (diff)
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.
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/gitlab.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/gitlab.nix b/nixos/tests/gitlab.nix
index dc3b889c8e8e2..d8b8cfddd2d9c 100644
--- a/nixos/tests/gitlab.nix
+++ b/nixos/tests/gitlab.nix
@@ -112,7 +112,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : with lib; {
             "${pkgs.sudo}/bin/sudo -u gitlab -H gitlab-rake gitlab:check 1>&2"
         )
         gitlab.succeed(
-            "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"
+            "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"
         )
       '' + optionalString doSetup ''
         gitlab.succeed(