features/auth_download.feature in uricp-0.0.11 vs features/auth_download.feature in uricp-0.0.12
- old
+ new
@@ -35,9 +35,17 @@
Then a file named "/tmp/uricp/srv-testz" should exist
And the file named "/tmp/uricp/srv-testz" should have a file format of "qcow2"
And a 0 byte file named "/tmp/uricp/cache/img-zeroy" should exist
And the file named "/tmp/uricp/cache/img-zeroy" should have a file format of "raw"
+ Scenario: zero download to raw, cache, size limited
+ Given a correctly initialised cache at "/tmp/uricp"
+ When I retrieve "img-zeroy" with options "--cache=/tmp/uricp --target-format=raw --max-cache=8MB" from container "test" into "file:////tmp/uricp/srv-testx"
+ Then a file named "/tmp/uricp/srv-testx" should exist
+ And the file named "/tmp/uricp/srv-testx" should have a file format of "raw"
+ And a 0 byte file named "/tmp/uricp/cache/img-zeroy" should exist
+ And the file named "/tmp/uricp/cache/img-zeroy" should have a file format of "raw"
+
Scenario: qcow download convert to raw, cache
Given a correctly initialised cache at "/tmp/uricp"
When I retrieve "img-qcow2" with options "--target-format=raw --cache=/tmp/uricp" from container "test" into "file:///tmp/uricp/srv-test4"
Then a file named "/tmp/uricp/srv-test4" should exist
And the file named "/tmp/uricp/srv-test4" should have a file format of "raw"