diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2020-11-20 10:59:19 +1100 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2020-11-20 10:59:19 +1100 |
commit | 97bb3321f711a21a33d1b9e1f3975654e23660b4 (patch) | |
tree | 61bc3e7e8dc33eba38da983e58a4ef0ddd750c23 /internal/handler/exec_test.go | |
parent | f558aa505cb2803cc0680e9176f1e78b1f1a711a (diff) | |
download | gitlab-shell-97bb3321f711a21a33d1b9e1f3975654e23660b4.tar.gz |
Include key ID and type in metadata
Diffstat (limited to 'internal/handler/exec_test.go')
-rw-r--r-- | internal/handler/exec_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/handler/exec_test.go b/internal/handler/exec_test.go index 89f2526..0dbd538 100644 --- a/internal/handler/exec_test.go +++ b/internal/handler/exec_test.go @@ -112,13 +112,17 @@ func TestPrepareContext(t *testing.T) { GlProjectPath: "group/private", }, response: &accessverifier.Response{ + KeyId: 1, + KeyType: "key", UserId: "6", Username: "jane.doe", }, want: map[string]string{ - "remote_ip": "10.0.0.1", + "key_id": "1", + "key_type": "key", "user_id": "6", "username": "jane.doe", + "remote_ip": "10.0.0.1", }, }, } |