features/rbd_access.feature in uricp-0.0.22 vs features/rbd_access.feature in uricp-0.0.23

- old
+ new

@@ -54,19 +54,31 @@ And the output should contain: """ rbd clone --id libvirt 'servers/freedos.qcow2@base' 'servers/srv-testy' """ - Scenario: HTTP URI to rbd via populated caches + Scenario: HTTP URI to rbd via partial rbd caches Given a correctly initialised cache at "/tmp/uricp" - When I successfully run `uricp --dry-run --dry-cache --target-format=raw --cache=/tmp/uricp http://orbit.brightbox.com/v1/acc-tqs4c/downloads/freedos.qcow2 rbd:///servers/srv-testy` + When I successfully run `uricp --dry-run --dry-cache=partial_rbd --target-format=raw --cache=/tmp/uricp http://orbit.brightbox.com/v1/acc-tqs4c/downloads/freedos.qcow2 rbd:///servers/srv-testy` And the output should not contain: """ snap create """ And the output should contain: """ + rbd import --no-progress --id libvirt - 'servers/srv-testy' + """ + + Scenario: HTTP URI to rbd via populated cache + Given a correctly initialised cache at "/tmp/uricp" + When I successfully run `uricp --dry-run --dry-cache=rbd --target-format=raw --cache=/tmp/uricp http://orbit.brightbox.com/v1/acc-tqs4c/downloads/freedos.qcow2 rbd:///servers/srv-testy` + And the output should not contain: + """ + snap create + """ + And the output should contain: + """ rbd clone --id libvirt 'servers/freedos.qcow2@base' 'servers/srv-testy' """ Scenario: rbd to rbd - no cache Given a correctly initialised cache at "/tmp/uricp" @@ -130,13 +142,22 @@ And the output should contain: """ rbd snap protect --id libvirt 'servers/img-testy@base' """ + Scenario: rbd to rbd - partial cache + Given a correctly initialised cache at "/tmp/uricp" + When I run `uricp --dry-run --dry-cache=partial_rbd --cache=/tmp/uricp rbd:///servers/srv-testy rbd:///servers/img-testy` + Then the exit status should be 70 + And the output should contain: + """ + Unsupported transfer + """ + Scenario: rbd to rbd - populated cache Given a correctly initialised cache at "/tmp/uricp" - When I successfully run `uricp --dry-run --dry-cache --cache=/tmp/uricp rbd:///servers/img-testy rbd:///servers/srv-testy` + When I successfully run `uricp --dry-run --dry-cache=rbd --cache=/tmp/uricp rbd:///servers/img-testy rbd:///servers/srv-testy` And the output should not contain: """ snap create """ And the output should contain: @@ -168,10 +189,19 @@ rbd export --no-progress --id libvirt 'servers/srv-testy@uricp_snap' - """ Scenario: RBD export with cacheing - populated cache Given a correctly initialised cache at "/tmp/uricp" - When I run `uricp --dry-run --dry-cache --compress --cache=/tmp/uricp rbd:///servers/srv-testy file:///tmp/img-testy` + When I run `uricp --dry-run --dry-cache=rbd --compress --cache=/tmp/uricp rbd:///servers/srv-testy file:///tmp/img-testy` + Then the exit status should be 70 + And the output should contain: + """ + Unsupported transfer + """ + + Scenario: RBD export with cacheing - partial cache + Given a correctly initialised cache at "/tmp/uricp" + When I run `uricp --dry-run --dry-cache=partial_rbd --compress --cache=/tmp/uricp rbd:///servers/srv-testy file:///tmp/img-testy` Then the exit status should be 70 And the output should contain: """ Unsupported transfer """