chore: fix gpg forwarding test (#17355)

This commit is contained in:
Dean Sheather
2025-04-11 13:33:53 +10:00
committed by GitHub
parent 0472a88c2e
commit e7e47537c9
2 changed files with 6 additions and 1 deletions

3
.gitignore vendored
View File

@ -79,3 +79,6 @@ result
# Zed # Zed
.zed_server .zed_server
# dlv debug binaries for go tests
__debug_bin*

View File

@ -1977,7 +1977,9 @@ Expire-Date: 0
tpty.WriteLine("gpg --list-keys && echo gpg-''-listkeys-command-done") tpty.WriteLine("gpg --list-keys && echo gpg-''-listkeys-command-done")
listKeysOutput := tpty.ExpectMatch("gpg--listkeys-command-done") listKeysOutput := tpty.ExpectMatch("gpg--listkeys-command-done")
require.Contains(t, listKeysOutput, "[ultimate] Coder Test <test@coder.com>") require.Contains(t, listKeysOutput, "[ultimate] Coder Test <test@coder.com>")
require.Contains(t, listKeysOutput, "[ultimate] Dean Sheather (work key) <dean@coder.com>") // It's fine that this key is expired. We're just testing that the key trust
// gets synced properly.
require.Contains(t, listKeysOutput, "[ expired] Dean Sheather (work key) <dean@coder.com>")
// Try to sign something. This demonstrates that the forwarding is // Try to sign something. This demonstrates that the forwarding is
// working as expected, since the workspace doesn't have access to the // working as expected, since the workspace doesn't have access to the