diff options
author | Raito Bezarius <masterancpp@gmail.com> | 2023-08-26 13:44:19 +0200 |
---|---|---|
committer | Raito Bezarius <masterancpp@gmail.com> | 2023-08-26 13:44:19 +0200 |
commit | 7207b25099d0a199d438dde143c67de4074a586a (patch) | |
tree | 864fae2e8ea6b49a2ef1e6cef1032264433f3da8 /nixos/tests/dolibarr.nix | |
parent | ec0c7f2799dd2afc2e0a3e03acd6d3bbc2ac3b44 (diff) |
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.
Diffstat (limited to 'nixos/tests/dolibarr.nix')
-rw-r--r-- | nixos/tests/dolibarr.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/dolibarr.nix b/nixos/tests/dolibarr.nix index 2f012a0c67daa..4fdee9e9698f5 100644 --- a/nixos/tests/dolibarr.nix +++ b/nixos/tests/dolibarr.nix @@ -50,7 +50,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: { # Now, we have installed the machine, let's verify we still have the right configuration. assert 'nixos' in machine.succeed("cat /var/lib/dolibarr/conf.php") # We do not want any redirect now as we have installed the machine. - machine.succeed('curl -f -X POST http://localhost') + machine.succeed('curl -f -X GET http://localhost') # Test authentication to the webservice. parser = TokenParser() parser.feed(machine.succeed('curl -f -X GET http://localhost/index.php?mainmenu=login&username=root')) |