unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob ed7a498fab2bbb3ff5130bf2ee667456a60c0cc5 2067 bytes (raw)
name: gnu/packages/patches/ganeti-openssh-test-fix.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
From 8a06656acf8f6e3dfa907bea77bd57a469a8d3fb Mon Sep 17 00:00:00 2001
From: codefritzel <pascal-pf@hotmail.de>
Date: Thu, 11 Jul 2024 23:10:41 +0200
Subject: replace dsa with rsa in TestUpdateSshRoot

DSA to be deactivated in OpenSSH from 2025. Since version 7.0 dsa is
marked as deprecated.

The TestUpdateSshRoot uses DSA, which will fail in the future with newer
OpenSSH versions.

fixes #1752

Signed-off-by: codefritzel <pascal-pf@hotmail.de>

diff --git a/test/py/ganeti.tools.prepare_node_join_unittest.py b/test/py/ganeti.tools.prepare_node_join_unittest.py
index fe7efdf8c..fe029b8f2 100755
--- a/test/py/ganeti.tools.prepare_node_join_unittest.py
+++ b/test/py/ganeti.tools.prepare_node_join_unittest.py
@@ -229,20 +229,20 @@ class TestUpdateSshRoot(unittest.TestCase):
   def testUpdate(self):
     data = {
       constants.SSHS_SSH_ROOT_KEY: [
-        (constants.SSHK_DSA, "privatedsa", "ssh-dss pubdsa"),
+        (constants.SSHK_RSA, "privatersa", "ssh-rsa pubrsa"),
         ],
-      constants.SSHS_SSH_KEY_TYPE: "dsa",
-      constants.SSHS_SSH_KEY_BITS: 1024,
+      constants.SSHS_SSH_KEY_TYPE: "rsa",
+      constants.SSHS_SSH_KEY_BITS: 2048,
       }
 
     prepare_node_join.UpdateSshRoot(data, False,
                                     _homedir_fn=self._GetHomeDir)
     self.assertEqual(os.listdir(self.tmpdir), [".ssh"])
     self.assertEqual(sorted(os.listdir(self.sshdir)),
-                     sorted(["authorized_keys", "id_dsa", "id_dsa.pub"]))
-    self.assertTrue(utils.ReadFile(utils.PathJoin(self.sshdir, "id_dsa"))
+                     sorted(["authorized_keys", "id_rsa", "id_rsa.pub"]))
+    self.assertTrue(utils.ReadFile(utils.PathJoin(self.sshdir, "id_rsa"))
                     is not None)
-    pub_key = utils.ReadFile(utils.PathJoin(self.sshdir, "id_dsa.pub"))
+    pub_key = utils.ReadFile(utils.PathJoin(self.sshdir, "id_rsa.pub"))
     self.assertTrue(pub_key is not None)
     self.assertEqual(utils.ReadFile(utils.PathJoin(self.sshdir,
                                                     "authorized_keys")),

debug log:

solving ed7a498fab ...
found ed7a498fab in https://yhetil.org/guix-patches/CANv=NwG3665DOkSH1AgEfzi7rOHtHnz298sRNb8jerQ93pxzSA@mail.gmail.com/ ||
	https://yhetil.org/guix-patches/CANv=NwGP1oOW9BrJ1eBrkvJ-X0W+EQnzJ7XUVy7CPjLcbBhObQ@mail.gmail.com/ ||
	https://yhetil.org/guix-patches/CANv=NwHVYTGP4-zqCnvpFLC0twrm3-+7=4SmcVoOFS-==VAawQ@mail.gmail.com/ ||
	https://yhetil.org/guix-patches/5d7ae8c0db78c963581ef2fb1cca83c7c5b8466b.1721476128.git.attila@lendvai.name/

applying [1/1] https://yhetil.org/guix-patches/CANv=NwG3665DOkSH1AgEfzi7rOHtHnz298sRNb8jerQ93pxzSA@mail.gmail.com/
index 0000000000..ed7a498fab

error: corrupt patch at line 21

git apply error:; exit status=128
trying https://yhetil.org/guix-patches/CANv=NwGP1oOW9BrJ1eBrkvJ-X0W+EQnzJ7XUVy7CPjLcbBhObQ@mail.gmail.com/

applying [2/1] https://yhetil.org/guix-patches/CANv=NwGP1oOW9BrJ1eBrkvJ-X0W+EQnzJ7XUVy7CPjLcbBhObQ@mail.gmail.com/
index 0000000000..ed7a498fab

error: corrupt patch at line 21

git apply error:; exit status=128
trying https://yhetil.org/guix-patches/CANv=NwHVYTGP4-zqCnvpFLC0twrm3-+7=4SmcVoOFS-==VAawQ@mail.gmail.com/

applying [3/1] https://yhetil.org/guix-patches/CANv=NwHVYTGP4-zqCnvpFLC0twrm3-+7=4SmcVoOFS-==VAawQ@mail.gmail.com/
diff --git a/gnu/packages/patches/ganeti-openssh-test-fix.patch b/gnu/packages/patches/ganeti-openssh-test-fix.patch
new file mode 100644
index 0000000000..ed7a498fab

3:38: trailing whitespace.
 
Checking patch gnu/packages/patches/ganeti-openssh-test-fix.patch...
Applied patch gnu/packages/patches/ganeti-openssh-test-fix.patch cleanly.
warning: 1 line adds whitespace errors.

skipping https://yhetil.org/guix-patches/5d7ae8c0db78c963581ef2fb1cca83c7c5b8466b.1721476128.git.attila@lendvai.name/ for ed7a498fab
index at:
100644 ed7a498fab2bbb3ff5130bf2ee667456a60c0cc5	gnu/packages/patches/ganeti-openssh-test-fix.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).