Implemented url_in, url_is and corresponding tests
Change-Id: I11f8b97715add1590e0d80a7865a1f3511a04750
diff --git a/test_rsync_url.yaml b/test_rsync_url.yaml
index eda964e..8e205c2 100644
--- a/test_rsync_url.yaml
+++ b/test_rsync_url.yaml
@@ -7,6 +7,16 @@
# - results
'ubuntu@172.18.66.89:~':
url: 'ubuntu@172.18.66.89:~'
+ url_in:
+ '': 'ubuntu@172.18.66.89:~/'
+ '/': 'ubuntu@172.18.66.89:~/'
+ '/first/level/': 'ubuntu@172.18.66.89:~/first/level/'
+ 'first/level': 'ubuntu@172.18.66.89:~/first/level/'
+ url_is:
+ '': 'ubuntu@172.18.66.89:~'
+ '/': 'ubuntu@172.18.66.89:~'
+ '/first/level/': 'ubuntu@172.18.66.89:~/first/level'
+ 'first/level': 'ubuntu@172.18.66.89:~/first/level'
exact_match_num: 1
classed: 'ssh'
parsed:
@@ -52,6 +62,16 @@
valid: True
'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp':
url: 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp'
+ url_in:
+ '': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/'
+ '/': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/'
+ '/first/level/': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/first/level/'
+ 'first/level': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/first/level/'
+ url_is:
+ '': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp'
+ '/': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp'
+ '/first/level/': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/first/level'
+ 'first/level': 'johnivanov@172.18.66.89::mirror-sync/otlichniy/reg/exp/first/level'
exact_match_num: 1
classed: 'rsync1'
parsed_rsync:
@@ -104,6 +124,16 @@
#valid: False
'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp':
url: 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp'
+ url_in:
+ '': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/'
+ '/': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/'
+ '/first/level/': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/first/level/'
+ 'first/level': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/first/level/'
+ url_is:
+ '': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp'
+ '/': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp'
+ '/first/level/': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/first/level'
+ 'first/level': 'rsync://mirror-sync@172.18.66.89:7327/otlichniy/reg/exp/first/level'
exact_match_num: 1
classed: 'rsync2'
parsed_rsync:
@@ -159,6 +189,16 @@
valid: False
'/':
url: '/'
+ url_in:
+ '': '/'
+ '/': '/'
+ '/first/level/': '/first/level/'
+ 'first/level': '/first/level/'
+ url_is:
+ '': '/'
+ '/': '/'
+ '/first/level/': '/first/level'
+ 'first/level': '/first/level'
exact_match_num: 1
classed: 'path'
parsed: