@ -10,6 +10,7 @@ Feature: sharing
And u s e r " u s e r 1 " e x i s t s
And U s e r " u s e r 0 " u p l o a d s f i l e w i t h c o n t e n t " f o o " t o " / t m p . t x t "
And f i l e " / t m p . t x t " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
When a s " u s e r 1 " g e t s p r o p e r t i e s o f f o l d e r " / t m p . t x t " w i t h
| { h t t p : / / o p e n - c o l l a b o r a t i o n - s e r v i c e s . o r g / n s } s h a r e - p e r m i s s i o n s |
Then t h e s i n g l e r e s p o n s e s h o u l d c o n t a i n a p r o p e r t y " { h t t p : / / o p e n - c o l l a b o r a t i o n - s e r v i c e s . o r g / n s } s h a r e - p e r m i s s i o n s " w i t h v a l u e " 1 9 "
@ -19,6 +20,7 @@ Feature: sharing
And u s e r " u s e r 1 " e x i s t s
And U s e r " u s e r 0 " u p l o a d s f i l e w i t h c o n t e n t " f o o " t o " / t m p . t x t "
And f i l e " t m p . t x t " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And A s a n " u s e r 0 "
And U p d a t i n g l a s t s h a r e w i t h
| p e r m i s s i o n s | 3 |
@ -31,6 +33,7 @@ Feature: sharing
And u s e r " u s e r 1 " e x i s t s
And U s e r " u s e r 0 " u p l o a d s f i l e w i t h c o n t e n t " f o o " t o " / t m p . t x t "
And f i l e " t m p . t x t " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And A s a n " u s e r 0 "
And U p d a t i n g l a s t s h a r e w i t h
| p e r m i s s i o n s | 1 7 |
@ -50,6 +53,7 @@ Feature: sharing
And u s e r " u s e r 1 " e x i s t s
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / t m p "
And f i l e " / t m p " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
When a s " u s e r 1 " g e t s p r o p e r t i e s o f f o l d e r " / t m p " w i t h
| { h t t p : / / o p e n - c o l l a b o r a t i o n - s e r v i c e s . o r g / n s } s h a r e - p e r m i s s i o n s |
Then t h e s i n g l e r e s p o n s e s h o u l d c o n t a i n a p r o p e r t y " { h t t p : / / o p e n - c o l l a b o r a t i o n - s e r v i c e s . o r g / n s } s h a r e - p e r m i s s i o n s " w i t h v a l u e " 3 1 "
@ -59,6 +63,7 @@ Feature: sharing
And u s e r " u s e r 1 " e x i s t s
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / t m p "
And f i l e " / t m p " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And A s a n " u s e r 0 "
And U p d a t i n g l a s t s h a r e w i t h
| p e r m i s s i o n s | 2 9 |
@ -71,6 +76,7 @@ Feature: sharing
And u s e r " u s e r 1 " e x i s t s
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / t m p "
And f i l e " / t m p " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And A s a n " u s e r 0 "
And U p d a t i n g l a s t s h a r e w i t h
| p e r m i s s i o n s | 2 7 |
@ -83,6 +89,7 @@ Feature: sharing
And u s e r " u s e r 1 " e x i s t s
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / t m p "
And f i l e " / t m p " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And A s a n " u s e r 0 "
And U p d a t i n g l a s t s h a r e w i t h
| p e r m i s s i o n s | 2 3 |
@ -95,6 +102,7 @@ Feature: sharing
And u s e r " u s e r 1 " e x i s t s
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / t m p "
And f i l e " / t m p " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And A s a n " u s e r 0 "
And U p d a t i n g l a s t s h a r e w i t h
| p e r m i s s i o n s | 1 5 |
@ -109,7 +117,9 @@ Feature: sharing
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / f o o "
And u s e r " u s e r 1 " c r e a t e d a f o l d e r " / f o o "
When f i l e " / f o o " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 2 "
And u s e r " u s e r 2 " a c c e p t s l a s t s h a r e
And f i l e " / f o o " o f u s e r " u s e r 1 " i s s h a r e d w i t h u s e r " u s e r 2 "
And u s e r " u s e r 2 " a c c e p t s l a s t s h a r e
Then u s e r " u s e r 2 " s h o u l d s e e f o l l o w i n g e l e m e n t s
| / f o o / |
| / f o o % 2 0 ( 2 ) / |
@ -176,7 +186,9 @@ Feature: sharing
And u s e r " u s e r 1 " b e l o n g s t o g r o u p " g r o u p 1 "
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / m e r g e - t e s t - o u t s i d e "
When f o l d e r " / m e r g e - t e s t - o u t s i d e " o f u s e r " u s e r 0 " i s s h a r e d w i t h g r o u p " g r o u p 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And f o l d e r " / m e r g e - t e s t - o u t s i d e " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
Then a s " u s e r 1 " t h e f o l d e r " / m e r g e - t e s t - o u t s i d e " e x i s t s
And a s " u s e r 1 " t h e f o l d e r " / m e r g e - t e s t - o u t s i d e ( 2 ) " d o e s n o t e x i s t
@ -188,7 +200,9 @@ Feature: sharing
And u s e r " u s e r 1 " b e l o n g s t o g r o u p " g r o u p 1 "
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / m e r g e - t e s t - o u t s i d e - p e r m s "
When f o l d e r " / m e r g e - t e s t - o u t s i d e - p e r m s " o f u s e r " u s e r 0 " i s s h a r e d w i t h g r o u p " g r o u p 1 " w i t h p e r m i s s i o n s 1
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And f o l d e r " / m e r g e - t e s t - o u t s i d e - p e r m s " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 " w i t h p e r m i s s i o n s 31
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
Then a s " u s e r 1 " g e t s p r o p e r t i e s o f f o l d e r " / m e r g e - t e s t - o u t s i d e - p e r m s " w i t h
| { h t t p : / / o w n c l o u d . o r g / n s } p e r m i s s i o n s |
And t h e s i n g l e r e s p o n s e s h o u l d c o n t a i n a p r o p e r t y " { h t t p : / / o w n c l o u d . o r g / n s } p e r m i s s i o n s " w i t h v a l u e " S R G D N V C K "
@ -204,7 +218,9 @@ Feature: sharing
And u s e r " u s e r 1 " b e l o n g s t o g r o u p " g r o u p 2 "
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / m e r g e - t e s t - o u t s i d e - t w o g r o u p s "
When f o l d e r " / m e r g e - t e s t - o u t s i d e - t w o g r o u p s " o f u s e r " u s e r 0 " i s s h a r e d w i t h g r o u p " g r o u p 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And f o l d e r " / m e r g e - t e s t - o u t s i d e - t w o g r o u p s " o f u s e r " u s e r 0 " i s s h a r e d w i t h g r o u p " g r o u p 2 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
Then a s " u s e r 1 " t h e f o l d e r " / m e r g e - t e s t - o u t s i d e - t w o g r o u p s " e x i s t s
And a s " u s e r 1 " t h e f o l d e r " / m e r g e - t e s t - o u t s i d e - t w o g r o u p s ( 2 ) " d o e s n o t e x i s t
@ -218,7 +234,9 @@ Feature: sharing
And u s e r " u s e r 1 " b e l o n g s t o g r o u p " g r o u p 2 "
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / m e r g e - t e s t - o u t s i d e - t w o g r o u p s - p e r m s "
When f o l d e r " / m e r g e - t e s t - o u t s i d e - t w o g r o u p s - p e r m s " o f u s e r " u s e r 0 " i s s h a r e d w i t h g r o u p " g r o u p 1 " w i t h p e r m i s s i o n s 1
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And f o l d e r " / m e r g e - t e s t - o u t s i d e - t w o g r o u p s - p e r m s " o f u s e r " u s e r 0 " i s s h a r e d w i t h g r o u p " g r o u p 2 " w i t h p e r m i s s i o n s 31
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
Then a s " u s e r 1 " g e t s p r o p e r t i e s o f f o l d e r " / m e r g e - t e s t - o u t s i d e - t w o g r o u p s - p e r m s " w i t h
| { h t t p : / / o w n c l o u d . o r g / n s } p e r m i s s i o n s |
And t h e s i n g l e r e s p o n s e s h o u l d c o n t a i n a p r o p e r t y " { h t t p : / / o w n c l o u d . o r g / n s } p e r m i s s i o n s " w i t h v a l u e " S R G D N V C K "
@ -234,8 +252,11 @@ Feature: sharing
And u s e r " u s e r 1 " b e l o n g s t o g r o u p " g r o u p 2 "
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / m e r g e - t e s t - o u t s i d e - t w o g r o u p s - m e m b e r - p e r m s "
When f o l d e r " / m e r g e - t e s t - o u t s i d e - t w o g r o u p s - m e m b e r - p e r m s " o f u s e r " u s e r 0 " i s s h a r e d w i t h g r o u p " g r o u p 1 " w i t h p e r m i s s i o n s 1
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And f o l d e r " / m e r g e - t e s t - o u t s i d e - t w o g r o u p s - m e m b e r - p e r m s " o f u s e r " u s e r 0 " i s s h a r e d w i t h g r o u p " g r o u p 2 " w i t h p e r m i s s i o n s 31
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And f o l d e r " / m e r g e - t e s t - o u t s i d e - t w o g r o u p s - m e m b e r - p e r m s " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 " w i t h p e r m i s s i o n s 1
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
Then a s " u s e r 1 " g e t s p r o p e r t i e s o f f o l d e r " / m e r g e - t e s t - o u t s i d e - t w o g r o u p s - m e m b e r - p e r m s " w i t h
| { h t t p : / / o w n c l o u d . o r g / n s } p e r m i s s i o n s |
And t h e s i n g l e r e s p o n s e s h o u l d c o n t a i n a p r o p e r t y " { h t t p : / / o w n c l o u d . o r g / n s } p e r m i s s i o n s " w i t h v a l u e " S R G D N V C K "
@ -289,9 +310,11 @@ Feature: sharing
And u s e r " u s e r 1 " b e l o n g s t o g r o u p " g r o u p 1 "
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / m e r g e - t e s t - o u t s i d e - g r o u p s - r e n a m e b e f o r e s e c o n d s h a r e "
When f o l d e r " / m e r g e - t e s t - o u t s i d e - g r o u p s - r e n a m e b e f o r e s e c o n d s h a r e " o f u s e r " u s e r 0 " i s s h a r e d w i t h g r o u p " g r o u p 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And U s e r " u s e r 1 " m o v e d f o l d e r " / m e r g e - t e s t - o u t s i d e - g r o u p s - r e n a m e b e f o r e s e c o n d s h a r e " t o " / m e r g e - t e s t - o u t s i d e - g r o u p s - r e n a m e b e f o r e s e c o n d s h a r e - r e n a m e d "
And S l e e p f o r " 1 " s e c o n d s
And f o l d e r " / m e r g e - t e s t - o u t s i d e - g r o u p s - r e n a m e b e f o r e s e c o n d s h a r e " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
Then a s " u s e r 1 " g e t s p r o p e r t i e s o f f o l d e r " / m e r g e - t e s t - o u t s i d e - g r o u p s - r e n a m e b e f o r e s e c o n d s h a r e - r e n a m e d " w i t h
| { h t t p : / / o w n c l o u d . o r g / n s } p e r m i s s i o n s |
And t h e s i n g l e r e s p o n s e s h o u l d c o n t a i n a p r o p e r t y " { h t t p : / / o w n c l o u d . o r g / n s } p e r m i s s i o n s " w i t h v a l u e " S R G D N V C K "
@ -306,9 +329,11 @@ Feature: sharing
And u s e r " u s e r 1 " b e l o n g s t o g r o u p " g r o u p 1 "
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / m e r g e - t e s t - o u t s i d e - g r o u p s - r e n a m e b e f o r e s e c o n d s h a r e "
When f o l d e r " / m e r g e - t e s t - o u t s i d e - g r o u p s - r e n a m e b e f o r e s e c o n d s h a r e " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And U s e r " u s e r 1 " m o v e d f o l d e r " / m e r g e - t e s t - o u t s i d e - g r o u p s - r e n a m e b e f o r e s e c o n d s h a r e " t o " / m e r g e - t e s t - o u t s i d e - g r o u p s - r e n a m e b e f o r e s e c o n d s h a r e - r e n a m e d "
And S l e e p f o r " 1 " s e c o n d s
And f o l d e r " / m e r g e - t e s t - o u t s i d e - g r o u p s - r e n a m e b e f o r e s e c o n d s h a r e " o f u s e r " u s e r 0 " i s s h a r e d w i t h g r o u p " g r o u p 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
Then a s " u s e r 1 " g e t s p r o p e r t i e s o f f o l d e r " / m e r g e - t e s t - o u t s i d e - g r o u p s - r e n a m e b e f o r e s e c o n d s h a r e - r e n a m e d " w i t h
| { h t t p : / / o w n c l o u d . o r g / n s } p e r m i s s i o n s |
And t h e s i n g l e r e s p o n s e s h o u l d c o n t a i n a p r o p e r t y " { h t t p : / / o w n c l o u d . o r g / n s } p e r m i s s i o n s " w i t h v a l u e " S R G D N V C K "
@ -328,6 +353,7 @@ Feature: sharing
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / c o m m o n "
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / c o m m o n / s u b "
And f i l e " / c o m m o n / s u b " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And U s e r " u s e r 0 " d e l e t e s f o l d e r " / c o m m o n "
When U s e r " u s e r 0 " e m p t i e s t r a s h b i n
Then a s " u s e r 1 " t h e f o l d e r " / s u b " d o e s n o t e x i s t
@ -354,6 +380,7 @@ Feature: sharing
And u s e r " u s e r 0 " b e l o n g s t o g r o u p " s h a r i n g - g r o u p "
And u s e r " u s e r 1 " b e l o n g s t o g r o u p " s h a r i n g - g r o u p "
And f i l e " / P A R E N T / p a r e n t . t x t " o f u s e r " u s e r 0 " i s s h a r e d w i t h g r o u p " s h a r i n g - g r o u p "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And u s e r " u s e r 0 " s t o r e s e t a g o f e l e m e n t " / P A R E N T "
And u s e r " u s e r 1 " s t o r e s e t a g o f e l e m e n t " / "
And A s a n " u s e r 1 "
@ -390,6 +417,7 @@ Feature: sharing
| s h a r e T y p e | 0 |
| s h a r e W i t h | u s e r 1 |
| p e r m i s s i o n s | 3 1 |
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And c r e a t i n g a s h a r e w i t h
| p a t h | T M P |
| s h a r e T y p e | 0 |
@ -413,6 +441,7 @@ Feature: sharing
| s h a r e W i t h | u s e r 1 |
| p e r m i s s i o n s | 1 7 |
When A s a n " u s e r 1 "
And a c c e p t i n g l a s t s h a r e
And c r e a t i n g a s h a r e w i t h
| p a t h | T M P |
| s h a r e T y p e | 3 |
@ -434,6 +463,7 @@ Feature: sharing
| s h a r e W i t h | u s e r 1 |
| p e r m i s s i o n s | 1 7 |
When A s a n " u s e r 1 "
And a c c e p t i n g l a s t s h a r e
And c r e a t i n g a s h a r e w i t h
| p a t h | T M P / S U B |
| s h a r e T y p e | 3 |
@ -449,6 +479,7 @@ Feature: sharing
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / s h a r e d "
And U s e r " u s e r 0 " m o v e d f i l e " / t e x t f i l e 0 . t x t " t o " / s h a r e d / s h a r e d _ f i l e . t x t "
And f o l d e r " / s h a r e d " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
When U s e r " u s e r 1 " d e l e t e s f i l e " / s h a r e d / s h a r e d _ f i l e . t x t "
Then a s " u s e r 1 " t h e f i l e " / s h a r e d / s h a r e d _ f i l e . t x t " d o e s n o t e x i s t
And a s " u s e r 0 " t h e f i l e " / s h a r e d / s h a r e d _ f i l e . t x t " d o e s n o t e x i s t
@ -463,6 +494,7 @@ Feature: sharing
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / s h a r e d / s u b "
And U s e r " u s e r 0 " m o v e d f i l e " / t e x t f i l e 0 . t x t " t o " / s h a r e d / s u b / s h a r e d _ f i l e . t x t "
And f o l d e r " / s h a r e d " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
When U s e r " u s e r 1 " d e l e t e s f o l d e r " / s h a r e d / s u b "
Then a s " u s e r 1 " t h e f o l d e r " / s h a r e d / s u b " d o e s n o t e x i s t
And a s " u s e r 0 " t h e f o l d e r " / s h a r e d / s u b " d o e s n o t e x i s t
@ -477,6 +509,7 @@ Feature: sharing
And u s e r " u s e r 1 " e x i s t s
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / s h a r e d "
And f o l d e r " / s h a r e d " o f u s e r " u s e r 0 " i s s h a r e d w i t h u s e r " u s e r 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
When U s e r " u s e r 1 " m o v e d f i l e " / t e x t f i l e 0 . t x t " t o " / s h a r e d / s h a r e d _ f i l e . t x t "
Then a s " u s e r 1 " t h e f i l e " / s h a r e d / s h a r e d _ f i l e . t x t " e x i s t s
And a s " u s e r 0 " t h e f i l e " / s h a r e d / s h a r e d _ f i l e . t x t " e x i s t s
@ -490,6 +523,7 @@ Feature: sharing
And A s a n " u s e r 0 "
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / s h a r e "
And f o l d e r " / s h a r e " o f u s e r " u s e r 0 " i s s h a r e d w i t h g r o u p " g r o u p 1 "
And u s e r " u s e r 1 " a c c e p t s l a s t s h a r e
And u s e r " u s e r 0 " c r e a t e d a f o l d e r " / s h a r e / s u b f o l d e r "
And A s a n " u s e r 1 "
And s a v e t h e l a s t s h a r e d a t a a s " o r i g i n a l "