feat: Test empty port in URI
This commit is contained in:
		@@ -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'
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user