anchor.diff:  
       testScript = ''
         ${initMachine}
  -      $machine->waitForFile("/run/rspamd.sock");
  +      machine.wait_for_file("/run/rspamd.sock")
         ${checkSocket "/run/rspamd.sock" "root" "root" "600" }
         ${checkSocket "/run/rspamd-worker.sock" "root" "root" "666" }
  -      $machine->log($machine->succeed("cat /etc/rspamd/rspamd.conf"));
  -      $machine->log($machine->succeed("grep 'CONFDIR/worker-controller.inc' /etc/rspamd/rspamd.conf"));
  -      $machine->log($machine->succeed("grep 'CONFDIR/worker-normal.inc' /etc/rspamd/rspamd.conf"));
  -      $machine->log($machine->succeed("rspamc -h /run/rspamd-worker.sock stat"));
  -      $machine->log($machine->succeed("curl --unix-socket /run/rspamd-worker.sock http://localhost/ping"));
  +      machine.log(machine.succeed("cat /etc/rspamd/rspamd.conf"))
  +      machine.log(
  +          machine.succeed("grep 'CONFDIR/worker-controller.inc' /etc/rspamd/rspamd.conf")
  +      )
  +      machine.log(machine.succeed("grep 'CONFDIR/worker-normal.inc' /etc/rspamd/rspamd.conf"))
  +      machine.log(machine.succeed("rspamc -h /run/rspamd-worker.sock stat"))
  +      machine.log(
  +          machine.succeed("curl --unix-socket /run/rspamd-worker.sock http://localhost/ping")
  +      )
       '';
     };
   
  
positive.code:       networking.enableIPv6 = enableIPv6;
      };
      testScript = ''
        startAll
        $machine->waitForUnit("multi-user.target");
        $machine->waitForOpenPort(11334);
        $machine->waitForUnit("rspamd.service");
        $machine->succeed("id \"rspamd\" >/dev/null");
        ${checkSocket "/run/rspamd/rspamd.sock" "rspamd" "rspamd" "660" }
        sleep 10;
        $machine->log($machine->succeed("cat /etc/rspamd/rspamd.conf"));
        $machine->log($machine->succeed("grep 'CONFDIR/worker-controller.inc' /etc/rspamd/rspamd.conf"));
        $machine->log($machine->succeed("grep 'CONFDIR/worker-normal.inc' /etc/rspamd/rspamd.conf"));
        $machine->log($machine->succeed("systemctl cat rspamd.service"));
        $machine->log($machine->succeed("curl http://localhost:11334/auth"));
        $machine->log($machine->succeed("curl http://127.0.0.1:11334/auth"));
        ${optionalString enableIPv6 ''
          $machine->log($machine->succeed("curl http://[::1]:11334/auth"));
        ''}
      '';
    };
  in
  
negative.code: 
      testScript = ''
        ${initMachine}
        machine.wait_for_file("/run/rspamd.sock")
        ${checkSocket "/run/rspamd.sock" "root" "root" "600" }
        ${checkSocket "/run/rspamd-worker.sock" "root" "root" "666" }
        machine.log(machine.succeed("cat /etc/rspamd/rspamd.conf"))
        machine.log(
            machine.succeed("grep 'CONFDIR/worker-controller.inc' /etc/rspamd/rspamd.conf")
        )
        machine.log(machine.succeed("grep 'CONFDIR/worker-normal.inc' /etc/rspamd/rspamd.conf"))
        machine.log(
            machine.succeed(
                "grep 'LOCAL_CONFDIR/override.d/worker-controller2.inc' /etc/rspamd/rspamd.conf"
            )
        )
        machine.log(
            machine.succeed(
                "grep 'verysecretpassword' /etc/rspamd/override.d/worker-controller2.inc"
            )
        )
        machine.wait_until_succeeds(
            "journalctl -u rspamd | grep -i 'starting controller process' >&2"
        )
        machine.log(machine.succeed("rspamc -h /run/rspamd-worker.sock stat"))
        machine.log(
            machine.succeed("curl --unix-socket /run/rspamd-worker.sock http://localhost/ping")
        )
        machine.log(machine.succeed("curl http://localhost:11335/ping"))
      '';
    };
    customLuaRules = makeTest {
  