summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaito Bezarius <masterancpp@gmail.com>2023-08-26 13:44:19 +0200
committerRaito Bezarius <masterancpp@gmail.com>2023-08-26 13:44:19 +0200
commit7207b25099d0a199d438dde143c67de4074a586a (patch)
tree864fae2e8ea6b49a2ef1e6cef1032264433f3da8
parentdolibarr: 16.0.5 -> 17.0.3 (diff)
downloadnixpkgs-origin/auto-update/dolibarr.tar.gz
nixos/tests/dolibarr: use -X GET instead -X POST to test for redirectionorigin/auto-update/dolibarr
Previously, we were POST-ing the homepage to test for redirection, this is wrong. We are supposed to GET-ing it. This is fixed.
-rw-r--r--nixos/tests/dolibarr.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/dolibarr.nix b/nixos/tests/dolibarr.nix
index 2f012a0c67da..4fdee9e9698f 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'))