features/rbd_access.feature in uricp-0.0.29 vs features/rbd_access.feature in uricp-0.0.30
- old
+ new
@@ -244,5 +244,57 @@
"""
And the output should contain:
"""
rbd snap protect --id libvirt 'servers/img-testy@base'
"""
+
+ Scenario: RBD export and upload to HTTPS
+ Given a correctly initialised cache at "/tmp/uricp"
+ When I successfully run `uricp --dry-run --auth-token 'd75945e3b9159f1f14e91b2022bc53ea10481ed15e4a' --target-format 'raw' --compress --segment-size '1073741824B' --cache '/var/cache/domtrix' rbd:/servers/vol-yd63x https://orbit.gb1s.brightbox.com/v1/acc-8tgbq/images/img-cfwe0`
+ And the output should contain:
+ """
+ rbd snap create --id libvirt 'servers/vol-yd63x@uricp_snap'
+ """
+ And the output should contain:
+ """
+ rbd snap protect --id libvirt 'servers/vol-yd63x@uricp_snap'
+ """
+ And the output should not contain:
+ """
+ rbd snap unprotect --id libvirt 'servers/vol-yd63x@uricp_snap'
+ """
+ And the output should not contain:
+ """
+ rbd snap rm --id libvirt 'servers/vol-yd63x@uricp_snap'
+ """
+ And the output should not contain:
+ """
+ rbd export --no-progress --id libvirt 'servers/vol-yd63x@uricp_snap' -
+ """
+ And the output should contain:
+ """
+ rbd clone --id libvirt 'servers/vol-yd63x@uricp_snap' 'servers/img-cfwe0'
+ """
+ And the output should contain:
+ """
+ rbd export --no-progress --id libvirt 'servers/img-cfwe0@base' -
+ """
+ And the output should contain:
+ """
+ rbd snap create --id libvirt 'servers/img-cfwe0@base'
+ """
+ And the output should contain:
+ """
+ rbd snap protect --id libvirt 'servers/img-cfwe0@base'
+ """
+ And the output should contain:
+ """
+ rbd export --no-progress --id libvirt 'servers/img-cfwe0@base' -
+ """
+ And the output should contain:
+ """
+ lz4
+ """
+ And the output should contain:
+ """
+ segment_upload --segment-size '1073741824.00 B' https://orbit.gb1s.brightbox.com/v1/acc-8tgbq/images/img-cfwe0
+ """