@@ -32,8 +32,8 @@ var _ = Describe("General testing for DAV", func() {
3232 }
3333 })
3434
35- configurations := [] TableEntry {
36- Entry ( "with basic config" , & config.Config {
35+ It ( "Blobstore lifecycle works with basic config" , func () {
36+ cfg := & config.Config {
3737 Endpoint : endpoint ,
3838 User : user ,
3939 Password : password ,
@@ -42,8 +42,12 @@ var _ = Describe("General testing for DAV", func() {
4242 CA : ca ,
4343 },
4444 },
45- }),
46- Entry ("with custom retry attempts" , & config.Config {
45+ }
46+ integration .AssertLifecycleWorks (cliPath , cfg )
47+ })
48+
49+ It ("Blobstore lifecycle works with custom retry attempts" , func () {
50+ cfg := & config.Config {
4751 Endpoint : endpoint ,
4852 User : user ,
4953 Password : password ,
@@ -53,36 +57,127 @@ var _ = Describe("General testing for DAV", func() {
5357 CA : ca ,
5458 },
5559 },
56- }),
57- }
60+ }
61+ integration .AssertLifecycleWorks (cliPath , cfg )
62+ })
5863
59- DescribeTable ("Blobstore lifecycle works" ,
60- func (cfg * config.Config ) { integration .AssertLifecycleWorks (cliPath , cfg ) },
61- configurations ,
62- )
64+ It ("Invoking `get` on a non-existent-key fails with basic config" , func () {
65+ cfg := & config.Config {
66+ Endpoint : endpoint ,
67+ User : user ,
68+ Password : password ,
69+ TLS : config.TLS {
70+ Cert : config.Cert {
71+ CA : ca ,
72+ },
73+ },
74+ }
75+ integration .AssertGetNonexistentFails (cliPath , cfg )
76+ })
6377
64- DescribeTable ("Invoking `get` on a non-existent-key fails" ,
65- func (cfg * config.Config ) { integration .AssertGetNonexistentFails (cliPath , cfg ) },
66- configurations ,
67- )
78+ It ("Invoking `get` on a non-existent-key fails with custom retry attempts" , func () {
79+ cfg := & config.Config {
80+ Endpoint : endpoint ,
81+ User : user ,
82+ Password : password ,
83+ RetryAttempts : 5 ,
84+ TLS : config.TLS {
85+ Cert : config.Cert {
86+ CA : ca ,
87+ },
88+ },
89+ }
90+ integration .AssertGetNonexistentFails (cliPath , cfg )
91+ })
6892
69- DescribeTable ("Invoking `delete` on a non-existent-key does not fail" ,
70- func (cfg * config.Config ) { integration .AssertDeleteNonexistentWorks (cliPath , cfg ) },
71- configurations ,
72- )
93+ It ("Invoking `delete` on a non-existent-key does not fail with basic config" , func () {
94+ cfg := & config.Config {
95+ Endpoint : endpoint ,
96+ User : user ,
97+ Password : password ,
98+ TLS : config.TLS {
99+ Cert : config.Cert {
100+ CA : ca ,
101+ },
102+ },
103+ }
104+ integration .AssertDeleteNonexistentWorks (cliPath , cfg )
105+ })
73106
74- DescribeTable ("Blobstore list and delete-recursive lifecycle works" ,
75- func (cfg * config.Config ) { integration .AssertOnListDeleteLifecycle (cliPath , cfg ) },
76- configurations ,
77- )
107+ It ("Invoking `delete` on a non-existent-key does not fail with custom retry attempts" , func () {
108+ cfg := & config.Config {
109+ Endpoint : endpoint ,
110+ User : user ,
111+ Password : password ,
112+ RetryAttempts : 5 ,
113+ TLS : config.TLS {
114+ Cert : config.Cert {
115+ CA : ca ,
116+ },
117+ },
118+ }
119+ integration .AssertDeleteNonexistentWorks (cliPath , cfg )
120+ })
78121
79- DescribeTable ("Invoking `ensure-storage-exists` works" ,
80- func (cfg * config.Config ) {
81- Skip ("ensure-storage-exists not applicable for WebDAV - root always exists" )
82- integration .AssertEnsureStorageExists (cliPath , cfg )
83- },
84- configurations ,
85- )
122+ It ("Blobstore list and delete-recursive lifecycle works with basic config" , func () {
123+ cfg := & config.Config {
124+ Endpoint : endpoint ,
125+ User : user ,
126+ Password : password ,
127+ TLS : config.TLS {
128+ Cert : config.Cert {
129+ CA : ca ,
130+ },
131+ },
132+ }
133+ integration .AssertOnListDeleteLifecycle (cliPath , cfg )
134+ })
135+
136+ It ("Blobstore list and delete-recursive lifecycle works with custom retry attempts" , func () {
137+ cfg := & config.Config {
138+ Endpoint : endpoint ,
139+ User : user ,
140+ Password : password ,
141+ RetryAttempts : 5 ,
142+ TLS : config.TLS {
143+ Cert : config.Cert {
144+ CA : ca ,
145+ },
146+ },
147+ }
148+ integration .AssertOnListDeleteLifecycle (cliPath , cfg )
149+ })
150+
151+ It ("Invoking `ensure-storage-exists` works with basic config" , func () {
152+ Skip ("ensure-storage-exists not applicable for WebDAV - root always exists" )
153+ cfg := & config.Config {
154+ Endpoint : endpoint ,
155+ User : user ,
156+ Password : password ,
157+ TLS : config.TLS {
158+ Cert : config.Cert {
159+ CA : ca ,
160+ },
161+ },
162+ }
163+ integration .AssertEnsureStorageExists (cliPath , cfg )
164+ })
165+
166+ It ("Invoking `ensure-storage-exists` works with custom retry attempts" , func () {
167+ Skip ("ensure-storage-exists not applicable for WebDAV - root always exists" )
168+ cfg := & config.Config {
169+ Endpoint : endpoint ,
170+ User : user ,
171+ Password : password ,
172+ RetryAttempts : 5 ,
173+ TLS : config.TLS {
174+ Cert : config.Cert {
175+ CA : ca ,
176+ },
177+ },
178+ }
179+ integration .AssertEnsureStorageExists (cliPath , cfg )
180+ })
86181
87182 Context ("with signed URL support" , func () {
88183 BeforeEach (func () {
@@ -91,8 +186,8 @@ var _ = Describe("General testing for DAV", func() {
91186 }
92187 })
93188
94- configurationsWithSecret := [] TableEntry {
95- Entry ( "with secret for signed URLs" , & config.Config {
189+ It ( "Invoking `sign` returns a signed URL with secret for signed URLs" , func () {
190+ cfg := & config.Config {
96191 Endpoint : endpoint ,
97192 User : user ,
98193 Password : password ,
@@ -102,13 +197,9 @@ var _ = Describe("General testing for DAV", func() {
102197 CA : ca ,
103198 },
104199 },
105- }),
106- }
107-
108- DescribeTable ("Invoking `sign` returns a signed URL" ,
109- func (cfg * config.Config ) { integration .AssertOnSignedURLs (cliPath , cfg ) },
110- configurationsWithSecret ,
111- )
200+ }
201+ integration .AssertOnSignedURLs (cliPath , cfg )
202+ })
112203 })
113204 })
114205})
0 commit comments