lol

nixos/tests/*: editorconfig fixes

zowoq 8ae7f8c3 2b5659c7

+22 -23
+1 -1
nixos/tests/bcachefs.nix
··· 13 13 machine.succeed("modprobe bcachefs") 14 14 machine.succeed("bcachefs version") 15 15 machine.succeed("ls /dev") 16 - 16 + 17 17 machine.succeed( 18 18 "mkdir /tmp/mnt", 19 19 "udevadm settle",
+1 -1
nixos/tests/borgbackup.nix
··· 43 43 nodes = { 44 44 client = { ... }: { 45 45 services.borgbackup.jobs = { 46 - 46 + 47 47 local = { 48 48 paths = dataDir; 49 49 repo = localRepo;
+1 -1
nixos/tests/containers-portforward.nix
··· 5 5 hostPort = 10080; 6 6 containerIp = "192.168.0.100"; 7 7 containerPort = 80; 8 - in 8 + in 9 9 10 10 import ./make-test-python.nix ({ pkgs, ...} : { 11 11 name = "containers-portforward";
+1 -1
nixos/tests/corerad.nix
··· 1 1 import ./make-test-python.nix ( 2 2 { 3 3 nodes = { 4 - router = {config, pkgs, ...}: { 4 + router = {config, pkgs, ...}: { 5 5 config = { 6 6 # This machine simulates a router with IPv6 forwarding and a static IPv6 address. 7 7 boot.kernel.sysctl = {
+2 -2
nixos/tests/docker-preloader.nix
··· 16 16 services.openssh.extraConfig = "PermitEmptyPasswords yes"; 17 17 users.extraUsers.root.password = ""; 18 18 }; 19 - }; 19 + }; 20 20 testScript = '' 21 21 startAll; 22 - 22 + 23 23 $docker->waitForUnit("sockets.target"); 24 24 $docker->succeed("docker run nix nix-store --version"); 25 25 $docker->succeed("docker run bash bash --version");
+1 -1
nixos/tests/leaps.nix
··· 7 7 }; 8 8 9 9 nodes = 10 - { 10 + { 11 11 client = { }; 12 12 13 13 server =
+1 -1
nixos/tests/mongodb.nix
··· 45 45 node.start() 46 46 '' 47 47 + runMongoDBTest pkgs.mongodb-3_4 48 - + runMongoDBTest pkgs.mongodb-3_6 48 + + runMongoDBTest pkgs.mongodb-3_6 49 49 + runMongoDBTest pkgs.mongodb-4_0 50 50 + runMongoDBTest pkgs.mongodb-4_2 51 51 + ''
+2 -2
nixos/tests/nfs/kerberos.nix
··· 3 3 with lib; 4 4 5 5 let 6 - krb5 = 6 + krb5 = 7 7 { enable = true; 8 8 domain_realm."nfs.test" = "NFS.TEST"; 9 9 libdefaults.default_realm = "NFS.TEST"; ··· 31 31 32 32 { 33 33 name = "nfsv4-with-kerberos"; 34 - 34 + 35 35 nodes = { 36 36 client = { lib, ... }: 37 37 { inherit krb5 users;
+1 -1
nixos/tests/postfix-raise-smtpd-tls-security-level.nix
··· 1 - let 1 + let 2 2 certs = import ./common/acme/server/snakeoil-certs.nix; 3 3 in 4 4 import ./make-test-python.nix {
+1 -1
nixos/tests/postfix.nix
··· 1 - let 1 + let 2 2 certs = import ./common/acme/server/snakeoil-certs.nix; 3 3 in 4 4 import ./make-test-python.nix {
+1 -2
nixos/tests/syncthing-init.nix
··· 24 24 testScript = '' 25 25 machine.wait_for_unit("syncthing-init.service") 26 26 config = machine.succeed("cat /var/lib/syncthing/.config/syncthing/config.xml") 27 - 27 + 28 28 assert "testFolder" in config 29 29 assert "${testId}" in config 30 30 ''; 31 31 }) 32 -
+7 -7
nixos/tests/systemd-networkd-vrf.nix
··· 160 160 node3.wait_for_unit("network.target") 161 161 162 162 client_ipv4_table = """ 163 - 192.168.1.2 dev vrf1 proto static metric 100 163 + 192.168.1.2 dev vrf1 proto static metric 100 164 164 192.168.2.3 dev vrf2 proto static metric 100 165 165 """.strip() 166 166 vrf1_table = """ 167 - broadcast 192.168.1.0 dev eth1 proto kernel scope link src 192.168.1.1 168 - 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.1 169 - local 192.168.1.1 dev eth1 proto kernel scope host src 192.168.1.1 167 + broadcast 192.168.1.0 dev eth1 proto kernel scope link src 192.168.1.1 168 + 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.1 169 + local 192.168.1.1 dev eth1 proto kernel scope host src 192.168.1.1 170 170 broadcast 192.168.1.255 dev eth1 proto kernel scope link src 192.168.1.1 171 171 """.strip() 172 172 vrf2_table = """ 173 - broadcast 192.168.2.0 dev eth2 proto kernel scope link src 192.168.2.1 174 - 192.168.2.0/24 dev eth2 proto kernel scope link src 192.168.2.1 175 - local 192.168.2.1 dev eth2 proto kernel scope host src 192.168.2.1 173 + broadcast 192.168.2.0 dev eth2 proto kernel scope link src 192.168.2.1 174 + 192.168.2.0/24 dev eth2 proto kernel scope link src 192.168.2.1 175 + local 192.168.2.1 dev eth2 proto kernel scope host src 192.168.2.1 176 176 broadcast 192.168.2.255 dev eth2 proto kernel scope link src 192.168.2.1 177 177 """.strip() 178 178
+1 -1
nixos/tests/tiddlywiki.nix
··· 44 44 configured.succeed( 45 45 "curl --fail -o /dev/null 127.0.0.1:3000 --user somelogin:somesecret" 46 46 ) 47 - 47 + 48 48 with subtest("restart preserves changes"): 49 49 # given running wiki 50 50 default.wait_for_unit("tiddlywiki.service")
+1 -1
nixos/tests/trickster.nix
··· 34 34 "curl -L http://localhost:9090/metrics | grep 'promhttp_metric_handler_requests_total{code=\"500\"} 0'" 35 35 ) 36 36 ''; 37 - }) 37 + })