Description: Skip tests that require SSH keys
Author: Anthony Fok <foka@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2021-12-28
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/sasquatch_test.go
+++ b/sasquatch_test.go
@@ -9,6 +9,7 @@
 )
 
 func TestFindSSHKeys(t *testing.T) {
+	t.Skip("test requires SSH key, skipping")
 	keys, err := FindSSHKeys()
 	if err != nil {
 		t.Error(err)
@@ -21,6 +22,7 @@
 }
 
 func TestFindSSHAgentSigners(t *testing.T) {
+	t.Skip("test requires SSH key, skipping")
 	signers, err := SSHAgentSigners()
 	if err != nil {
 		t.Error(err)
@@ -39,6 +41,7 @@
 }
 
 func TestFindRecipients(t *testing.T) {
+	t.Skip("test requires SSH key, skipping")
 	rcp := FindRecipients()
 
 	if len(rcp) == 0 {
@@ -47,6 +50,7 @@
 }
 
 func TestFindIdentities(t *testing.T) {
+	t.Skip("test requires SSH key, skipping")
 	identities := FindIdentities()
 
 	if len(identities) == 0 {
@@ -55,6 +59,7 @@
 }
 
 func TestIdentityFromFile(t *testing.T) {
+	t.Skip("test requires SSH key, skipping")
 	key, _ := homedir.Expand("~/.ssh/id_rsa")
 	i, err := ParseIdentitiesFile(key)
 	if err != nil {
@@ -81,6 +86,7 @@
 }
 
 func TestSSHRSAEncrypt(t *testing.T) {
+	t.Skip("test requires SSH key, skipping")
 	buf := bytes.NewBuffer(nil)
 
 	key, _ := homedir.Expand("~/.ssh/id_rsa.pub")
@@ -124,6 +130,7 @@
 }
 
 func TestSSHEd25519Encrypt(t *testing.T) {
+	t.Skip("test requires SSH key, skipping")
 	buf := bytes.NewBuffer(nil)
 
 	key, _ := homedir.Expand("~/.ssh/id_ed25519.pub")
@@ -167,6 +174,7 @@
 }
 
 func TestChallengeEncrypt(t *testing.T) {
+	t.Skip("test requires SSH key, skipping")
 	buf := bytes.NewBuffer(nil)
 
 	signers, err := SSHAgentSigners()
