lol

nixos/tests/dolibarr: use -X GET instead -X POST to test for redirection

Previously, we were POST-ing the homepage to test for redirection, this is wrong.

We are supposed to GET-ing it.

This is fixed.

+1 -1
+1 -1
nixos/tests/dolibarr.nix
··· 50 50 # Now, we have installed the machine, let's verify we still have the right configuration. 51 51 assert 'nixos' in machine.succeed("cat /var/lib/dolibarr/conf.php") 52 52 # We do not want any redirect now as we have installed the machine. 53 - machine.succeed('curl -f -X POST http://localhost') 53 + machine.succeed('curl -f -X GET http://localhost') 54 54 # Test authentication to the webservice. 55 55 parser = TokenParser() 56 56 parser.feed(machine.succeed('curl -f -X GET http://localhost/index.php?mainmenu=login&username=root'))