tests: security: Fix fail2ban-extension-test.
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 Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
		
							parent
							
								
									97296f8239
								
							
						
					
					
						commit
						0d7e40473b
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -20,6 +20,7 @@ | |||
|   #: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 @@ | |||
|    (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" | ||||
|  |  | |||
		Reference in a new issue