From 3bf42a51f34cd0fb9bec2bb331ff5c737536321c Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 5 Dec 2023 01:01:08 +0100 Subject: [PATCH] Implement tests --- check_process | 21 --------------------- tests.toml | 20 +++++++++++++++----- 2 files changed, 15 insertions(+), 26 deletions(-) delete mode 100644 check_process diff --git a/check_process b/check_process deleted file mode 100644 index 7d507d0..0000000 --- a/check_process +++ /dev/null @@ -1,21 +0,0 @@ -;; Test complet - ; Manifest - domain="domain.tld" - path="/path" - redirect_type="public_302" - redirect_path="http://127.0.0.1" - ; Checks - pkg_linter=1 - setup_sub_dir=1 - setup_root=1 - setup_nourl=0 - setup_private=0 - setup_private=1 - setup_public=1 - upgrade=1 - backup_restore=1 - multi_instance=1 - change_url=0 -;;; Options -Email= -Notification=none diff --git a/tests.toml b/tests.toml index 4cfe8c7..08e60d4 100644 --- a/tests.toml +++ b/tests.toml @@ -2,9 +2,19 @@ test_format = 1.0 [default] - # ------------------------------- - # Default args to use for install - # ------------------------------- + args.redirect_type = "redirect" + args.target = "https://fr.wikipedia.org" - args.redirect_type = "public_302" - args.redirect_path = "http://127.0.0.1" \ No newline at end of file + test_upgrade_from.09cf1c6b.name = "v1 era" + test_upgrade_from.09cf1c6b.args.redirect_type = "visible_302" + test_upgrade_from.09cf1c6b.args.redirect_path = "https://fr.wikipedia.org" + + +[reverseproxy] + + args.redirect_type = "reverseproxy" + args.target = "http://127.0.0.1:80" + + test_upgrade_from.09cf1c6b.name = "v1 era" + test_upgrade_from.09cf1c6b.args.redirect_type = "proxy_public" + test_upgrade_from.09cf1c6b.args.redirect_path = "http://127.0.0.1:80"