1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/redirect_ynh.git synced 2024-09-03 20:16:10 +02:00

Implement tests

This commit is contained in:
Alexandre Aubin 2023-12-05 01:01:08 +01:00
parent a7a1271d98
commit 3bf42a51f3
2 changed files with 15 additions and 26 deletions

View file

@ -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

View file

@ -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"
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"