features/auth_download.feature in uricp-0.0.10 vs features/auth_download.feature in uricp-0.0.11
- old
+ new
@@ -43,10 +43,25 @@
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"
And a file named "/tmp/uricp/cache/img-qcow2" should exist
And the file named "/tmp/uricp/cache/img-qcow2" should have a file format of "qcow2v3"
+ Scenario: qcow download convert to raw, cache, within size
+ Given a correctly initialised cache at "/tmp/uricp"
+ When I retrieve "img-qcow2" with options "--target-format=raw --cache=/tmp/uricp --max-cache 10MB" from container "test" into "file:///tmp/uricp/srv-testq"
+ Then a file named "/tmp/uricp/srv-testq" should exist
+ And the file named "/tmp/uricp/srv-testq" should have a file format of "raw"
+ And a file named "/tmp/uricp/cache/img-qcow2" should exist
+ And the file named "/tmp/uricp/cache/img-qcow2" should have a file format of "qcow2v3"
+
+ Scenario: qcow download convert to raw, cache, size limited
+ Given a correctly initialised cache at "/tmp/uricp"
+ When I retrieve "img-qcow2" with options "--target-format=raw --cache=/tmp/uricp --max-cache 100kB" from container "test" into "file:///tmp/uricp/srv-testj"
+ Then a file named "/tmp/uricp/srv-testj" should exist
+ And the file named "/tmp/uricp/srv-testj" should have a file format of "raw"
+ And a file named "/tmp/uricp/cache/img-qcow2" should not exist
+
Scenario: qcow download convert to qcow2, cache
Given a correctly initialised cache at "/tmp/uricp"
When I retrieve "img-qcow2" with options "--target-format=qcow2 --cache=/tmp/uricp" from container "test" into "file:///tmp/uricp/srv-test5"
Then a file named "/tmp/uricp/srv-test5" should exist
And the file named "/tmp/uricp/srv-test5" should have a file format of "qcow2"
@@ -81,9 +96,24 @@
And the file named "/tmp/uricp/cache/img-qcow2" should have a file format of "qcow2v3"
Scenario: lz4 download convert to raw, cache
Given a correctly initialised cache at "/tmp/uricp"
When I retrieve "img-lz4cy" with options "--target-format=raw --cache=/tmp/uricp" from container "test" into "file:///tmp/uricp/srv-test9"
+ Then a file named "/tmp/uricp/srv-test9" should exist
+ And the file named "/tmp/uricp/srv-test9" should have a file format of "raw"
+ And a file named "/tmp/uricp/cache/img-lz4cy" should exist
+ And the file named "/tmp/uricp/cache/img-lz4cy" should have a file format of "lz4"
+
+ Scenario: lz4 download convert to raw, cache, size limited
+ Given a correctly initialised cache at "/tmp/uricp"
+ When I retrieve "img-lz4cy" with options "--target-format=raw --cache=/tmp/uricp --max-cache 2MB" from container "test" into "file:///tmp/uricp/srv-testf"
+ Then a file named "/tmp/uricp/srv-testf" should exist
+ And the file named "/tmp/uricp/srv-testf" should have a file format of "raw"
+ And a file named "/tmp/uricp/cache/img-lz4cy" should not exist
+
+ Scenario: lz4 download convert to raw, cache, within size
+ Given a correctly initialised cache at "/tmp/uricp"
+ When I retrieve "img-lz4cy" with options "--target-format=raw --cache=/tmp/uricp --max-cache 10MB" from container "test" into "file:///tmp/uricp/srv-test9"
Then a file named "/tmp/uricp/srv-test9" should exist
And the file named "/tmp/uricp/srv-test9" should have a file format of "raw"
And a file named "/tmp/uricp/cache/img-lz4cy" should exist
And the file named "/tmp/uricp/cache/img-lz4cy" should have a file format of "lz4"