From 2c0a8b732bf2f5f824d577c5f65e0575bc9c7823 Mon Sep 17 00:00:00 2001 From: Camilo Viecco Date: Fri, 25 Oct 2024 21:05:19 -0700 Subject: [PATCH] cleanup --- cmd/keymaster/main_test.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cmd/keymaster/main_test.go b/cmd/keymaster/main_test.go index afb6add..535de72 100644 --- a/cmd/keymaster/main_test.go +++ b/cmd/keymaster/main_test.go @@ -203,15 +203,6 @@ func TestMost(t *testing.T) { } -/* -func goCertToFileString(c ssh.Certificate, username string) (string, error) { - certBytes := c.Marshal() - encoded := base64.StdEncoding.EncodeToString(certBytes) - fileComment := "/tmp/" + username + "-" + c.SignatureKey.Type() + "-cert.pub" - return c.Type() + " " + encoded + " " + fileComment + "\n", nil -} -*/ - func TestInsertSSHCertIntoAgentORWriteToFilesystem(t *testing.T) { //step 1: generate publicKey, privateKey, err := ed25519.GenerateKey(rand.Reader) @@ -285,7 +276,6 @@ func TestInsertSSHCertIntoAgentORWriteToFilesystem(t *testing.T) { cmd := exec.Command("ssh-add", "-t", "30", privateKeyPath) err := cmd.Run() if err != nil { - t.Fatalf("Command finished with error: %v", err) } }