mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
add more tests for change_url
This commit is contained in:
parent
a9626afe6d
commit
a53496e8e3
1 changed files with 13 additions and 3 deletions
16
lib/tests.sh
16
lib/tests.sh
|
@ -588,7 +588,7 @@ TEST_CHANGE_URL () {
|
|||
# Without modify the domain, root to path, path to path and path to root.
|
||||
# And then, same with a domain change
|
||||
local i=0
|
||||
for i in $(seq 1 6)
|
||||
for i in $(seq 1 8)
|
||||
do
|
||||
# Same domain, root to path
|
||||
if [ $i -eq 1 ]; then
|
||||
|
@ -609,14 +609,24 @@ TEST_CHANGE_URL () {
|
|||
elif [ $i -eq 4 ]; then
|
||||
local new_path=/path
|
||||
local new_domain=$DOMAIN
|
||||
|
||||
# Other domain, same path
|
||||
elif [ $i -eq 5 ]; then
|
||||
local new_path=/path
|
||||
local new_domain=$SUBDOMAIN
|
||||
|
||||
# Other domain, path to path
|
||||
elif [ $i -eq 5 ]; then
|
||||
elif [ $i -eq 6 ]; then
|
||||
local new_path=/path_2
|
||||
local new_domain=$DOMAIN
|
||||
|
||||
# Other domain, path to root
|
||||
elif [ $i -eq 6 ]; then
|
||||
elif [ $i -eq 7 ]; then
|
||||
local new_path=/
|
||||
local new_domain=$SUBDOMAIN
|
||||
|
||||
# Other domain, same path
|
||||
elif [ $i -eq 8 ]; then
|
||||
local new_path=/
|
||||
local new_domain=$DOMAIN
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue