From 319876601fafd1965134e2d05a7ee80116f3604f Mon Sep 17 00:00:00 2001 From: Dean Sheather Date: Fri, 11 Apr 2025 03:19:12 +0000 Subject: [PATCH] chore: fix gpg forwarding test --- .gitignore | 3 +++ cli/ssh_test.go | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d633f94583ec9..8d29eff1048d1 100644 --- a/.gitignore +++ b/.gitignore @@ -79,3 +79,6 @@ result # Zed .zed_server + +# dlv debug binaries for go tests +__debug_bin* diff --git a/cli/ssh_test.go b/cli/ssh_test.go index 332fbbe219c46..453073026e16f 100644 --- a/cli/ssh_test.go +++ b/cli/ssh_test.go @@ -1977,7 +1977,9 @@ Expire-Date: 0 tpty.WriteLine("gpg --list-keys && echo gpg-''-listkeys-command-done") listKeysOutput := tpty.ExpectMatch("gpg--listkeys-command-done") require.Contains(t, listKeysOutput, "[ultimate] Coder Test ") - require.Contains(t, listKeysOutput, "[ultimate] Dean Sheather (work key) ") + // 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) ") // Try to sign something. This demonstrates that the forwarding is // working as expected, since the workspace doesn't have access to the