feat: Test empty port in URI
This commit is contained in:
parent
5c43d3a843
commit
d8e7e7718a
@ -184,6 +184,19 @@ setup() {
|
|||||||
[ "$fragment" == '' ]
|
[ "$fragment" == '' ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "rsync://user:password@host:/p/a/th" {
|
||||||
|
. uri.sh
|
||||||
|
parse_uri 'rsync://user:password@host:/p/a/th'
|
||||||
|
[ "$scheme" == 'rsync' ]
|
||||||
|
[ "$hostname" == 'host' ]
|
||||||
|
[ "$port" == '' ]
|
||||||
|
[ "$path" == '/p/a/th' ]
|
||||||
|
[ "$username" == 'user' ]
|
||||||
|
[ "$password" == 'password' ]
|
||||||
|
[ "$query" == '' ]
|
||||||
|
[ "$fragment" == '' ]
|
||||||
|
}
|
||||||
|
|
||||||
@test "rsync://user:password@host:~/backups" {
|
@test "rsync://user:password@host:~/backups" {
|
||||||
. uri.sh
|
. uri.sh
|
||||||
parse_uri 'rsync://user:password@host:~/backups'
|
parse_uri 'rsync://user:password@host:~/backups'
|
||||||
|
Loading…
Reference in New Issue
Block a user