unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#68393] [PATCH] tests: security: Fix fail2ban-extension-test.
@ 2024-01-11 23:42 Tomas Volf
  2024-01-12 16:12 ` bug#68393: " Mathieu Othacehe
  0 siblings, 1 reply; 2+ messages in thread
From: Tomas Volf @ 2024-01-11 23:42 UTC (permalink / raw)
  To: 68393; +Cc: Tomas Volf

The openssh-service-type requires 'networking to be setup.  So add a
static-networking-service-type that provides it.

* gnu/tests/security.scm
(run-fail2ban-extension-test)[simple-operating-system]: Add
static-networking-service-type service.

Change-Id: I8d736cbf3fcaa54f86fbd60c52b3595b647731e2
---
 gnu/tests/security.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/tests/security.scm b/gnu/tests/security.scm
index ca6c857899..93cbe4a977 100644
--- a/gnu/tests/security.scm
+++ b/gnu/tests/security.scm
@@ -20,6 +20,7 @@ (define-module (gnu tests security)
   #:use-module (guix gexp)
   #:use-module (gnu packages admin)
   #:use-module (gnu services)
+  #:use-module (gnu services base)
   #:use-module (gnu services security)
   #:use-module (gnu services ssh)
   #:use-module (gnu system)
@@ -176,7 +177,9 @@ (define run-fail2ban-extension-test
    (simple-operating-system
     (service (fail2ban-jail-service openssh-service-type (fail2ban-jail-configuration
                                                           (name "sshd") (enabled? #t)))
-             (openssh-configuration)))
+             (openssh-configuration))
+    (service static-networking-service-type
+             (list %qemu-static-networking)))
 
    (test-equal "fail2ban sshd jail running status output"
      '("Status for the jail: sshd"

base-commit: 5c0f77f4241c9beac0c82deae946bfdc70b49ff0
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#68393: [PATCH] tests: security: Fix fail2ban-extension-test.
  2024-01-11 23:42 [bug#68393] [PATCH] tests: security: Fix fail2ban-extension-test Tomas Volf
@ 2024-01-12 16:12 ` Mathieu Othacehe
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Othacehe @ 2024-01-12 16:12 UTC (permalink / raw)
  To: Tomas Volf; +Cc: 68393-done


> * gnu/tests/security.scm
> (run-fail2ban-extension-test)[simple-operating-system]: Add
> static-networking-service-type service.

Applied, thanks,

Mathieu




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-12 16:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-11 23:42 [bug#68393] [PATCH] tests: security: Fix fail2ban-extension-test Tomas Volf
2024-01-12 16:12 ` bug#68393: " Mathieu Othacehe

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).