about summary refs log tree commit diff
path: root/nixos/tests/pam
diff options
context:
space:
mode:
authorArian van Putten <arian.vanputten@gmail.com>2022-07-16 10:56:26 +0200
committerGitHub <noreply@github.com>2022-07-16 10:56:26 +0200
commit55bd7706622c05ca3f535e5b972b6605536bb4af (patch)
treeea06323192c4a89863f647d0db90fe39949adadc /nixos/tests/pam
parent385a38d1f6623797ba912c1e3d0dcfd2f965c09b (diff)
parent327d99c0caceb3e6fed76347c53d9ff8c667bc59 (diff)
Merge pull request #167514 from shimunn/pam_u2f_module
nixos/security/pam: added `origin` option to pamu2f
Diffstat (limited to 'nixos/tests/pam')
-rw-r--r--nixos/tests/pam/pam-u2f.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/tests/pam/pam-u2f.nix b/nixos/tests/pam/pam-u2f.nix
index d7c540982cfa0..07408dea797e4 100644
--- a/nixos/tests/pam/pam-u2f.nix
+++ b/nixos/tests/pam/pam-u2f.nix
@@ -12,6 +12,7 @@ import ../make-test-python.nix ({ ... }:
         debug = true;
         enable = true;
         interactive = true;
+        origin = "nixos-test";
       };
     };
 
@@ -19,7 +20,7 @@ import ../make-test-python.nix ({ ... }:
     ''
       machine.wait_for_unit("multi-user.target")
       machine.succeed(
-          'egrep "auth required .*/lib/security/pam_u2f.so.*debug.*interactive.*cue" /etc/pam.d/ -R'
+          'egrep "auth required .*/lib/security/pam_u2f.so.*debug.*interactive.*cue.*origin=nixos-test" /etc/pam.d/ -R'
       )
     '';
 })