You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2012/07/25 15:56:38 UTC
[11/31] Deprecates old driver-specific cucumber tests and features
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/ec2/support/ec2/reboot_describe_instances.8702fc199a628a156f600c9fbd4c985b47a25762
----------------------------------------------------------------------
diff --git a/tests/deprecated/ec2/support/ec2/reboot_describe_instances.8702fc199a628a156f600c9fbd4c985b47a25762 b/tests/deprecated/ec2/support/ec2/reboot_describe_instances.8702fc199a628a156f600c9fbd4c985b47a25762
new file mode 100644
index 0000000..bdce2a5
--- /dev/null
+++ b/tests/deprecated/ec2/support/ec2/reboot_describe_instances.8702fc199a628a156f600c9fbd4c985b47a25762
@@ -0,0 +1,17 @@
+BAhbBnsdOhFhd3NfaW1hZ2VfaWQiEWFtaS04YzFmZWNlNToTYXdzX3N0YXRl
+X2NvZGUiBzE2OhZhd3NfcHJvZHVjdF9jb2Rlc1sAOg5hd3Nfc3RhdGUiDHJ1
+bm5pbmc6DWRuc19uYW1lIi1lYzItNjctMjAyLTUyLTI2LmNvbXB1dGUtMS5h
+bWF6b25hd3MuY29tOhVtb25pdG9yaW5nX3N0YXRlIg1kaXNhYmxlZDoRc3No
+X2tleV9uYW1lIhFqZW5raW5zX3Rlc3Q6D2F3c19ncm91cHNbBiIdZmlyZXdh
+bGwtaW5zdC0xMzEwNTU4MjY2Ohthd3NfcHJpdmF0ZV9pcF9hZGRyZXNzIhEx
+MC4yMTEuMTUuMjE6EWFyY2hpdGVjdHVyZSIJaTM4NjoUYXdzX2xhdW5jaF90
+aW1lIh0yMDExLTA4LTA4VDEwOjA5OjUxLjAwMFo6EmF3c19rZXJuZWxfaWQi
+EWFraS00MDdkOTUyOToJdGFnc3sGIglOYW1lIgA6FXJvb3RfZGV2aWNlX3R5
+cGUiCGViczoWYXdzX2luc3RhbmNlX3R5cGUiDXQxLm1pY3JvOhpibG9ja19k
+ZXZpY2VfbWFwcGluZ3NbBnsGIg4vZGV2L3NkYTEiEXZvbC1jNDM3Y2JhZToP
+YXdzX3JlYXNvbiIAOg5hd3Nfb3duZXIiETI5Mzc4Nzc0OTg4NDoaYXdzX2F2
+YWlsYWJpbGl0eV96b25lIg91cy1lYXN0LTFhOhVhbWlfbGF1bmNoX2luZGV4
+IgYwOhdhd3NfcmVzZXJ2YXRpb25faWQiD3ItNTcxZDkzMzg6FGF3c19pbnN0
+YW5jZV9pZCIPaS0zMzY4MDA1MjoVcm9vdF9kZXZpY2VfbmFtZSIOL2Rldi9z
+ZGExOhVwcml2YXRlX2Ruc19uYW1lIi5kb21VLTEyLTMxLTM5LTBBLTBDLUU3
+LmNvbXB1dGUtMS5pbnRlcm5hbA==
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/ec2/support/ec2/reboot_describe_instances.da39a3ee5e6b4b0d3255bfef95601890afd80709
----------------------------------------------------------------------
diff --git a/tests/deprecated/ec2/support/ec2/reboot_describe_instances.da39a3ee5e6b4b0d3255bfef95601890afd80709 b/tests/deprecated/ec2/support/ec2/reboot_describe_instances.da39a3ee5e6b4b0d3255bfef95601890afd80709
new file mode 100644
index 0000000..adea4bb
--- /dev/null
+++ b/tests/deprecated/ec2/support/ec2/reboot_describe_instances.da39a3ee5e6b4b0d3255bfef95601890afd80709
@@ -0,0 +1,48 @@
+BAhbC3scOhFhd3NfaW1hZ2VfaWQiEWFtaS05MmJhNDNmYjoTYXdzX3N0YXRl
+X2NvZGUiIUNsaWVudC5Vc2VySW5pdGlhdGVkU2h1dGRvd246FmF3c19wcm9k
+dWN0X2NvZGVzWwA6DmF3c19zdGF0ZSIPdGVybWluYXRlZDoNZG5zX25hbWUi
+ADoVbW9uaXRvcmluZ19zdGF0ZSINZGlzYWJsZWQ6EXNzaF9rZXlfbmFtZSIR
+amVua2luc190ZXN0Og9hd3NfZ3JvdXBzWwYiEnF1aWNrLXN0YXJ0LTE6EWFy
+Y2hpdGVjdHVyZSIJaTM4NjoUYXdzX2xhdW5jaF90aW1lIh0yMDExLTA4LTA4
+VDA5OjIzOjAwLjAwMFo6CXRhZ3N7BiIJTmFtZSIAOhVyb290X2RldmljZV90
+eXBlIghlYnM6EWF3c19wbGF0Zm9ybSIMd2luZG93czoWYXdzX2luc3RhbmNl
+X3R5cGUiDXQxLm1pY3JvOhpibG9ja19kZXZpY2VfbWFwcGluZ3NbADoPYXdz
+X3JlYXNvbiIUVXNlciBpbml0aWF0ZWQgOg5hd3Nfb3duZXIiETI5Mzc4Nzc0
+OTg4NDoaYXdzX2F2YWlsYWJpbGl0eV96b25lIg91cy1lYXN0LTFhOhVhbWlf
+bGF1bmNoX2luZGV4IgYwOhdhd3NfcmVzZXJ2YXRpb25faWQiD3ItZjU3NmY4
+OWE6FGF3c19pbnN0YW5jZV9pZCIPaS02OTM2NWUwODoVcm9vdF9kZXZpY2Vf
+bmFtZSIOL2Rldi9zZGExOhVwcml2YXRlX2Ruc19uYW1lIgB7HDsAIhFhbWkt
+OGMxZmVjZTU7BiIhQ2xpZW50LlVzZXJJbml0aWF0ZWRTaHV0ZG93bjsHWwA7
+CCIPdGVybWluYXRlZDsJIgA7CiINZGlzYWJsZWQ7CyIRamVua2luc190ZXN0
+OwxbBiIdZmlyZXdhbGwtaW5zdC0xMzEwNTU4MjY2Ow0iCWkzODY7DiIdMjAx
+MS0wOC0wOFQwOToyNDo1Mi4wMDBaOhJhd3Nfa2VybmVsX2lkIhFha2ktNDA3
+ZDk1Mjk7D3sGIglOYW1lIgA7ECIIZWJzOxIiDXQxLm1pY3JvOxNbADsUIhRV
+c2VyIGluaXRpYXRlZCA7FSIRMjkzNzg3NzQ5ODg0OxYiD3VzLWVhc3QtMWI7
+FyIGMDsYIg9yLWYzNzdmOTljOxkiD2ktMjMzNzVmNDI7GiIOL2Rldi9zZGEx
+OxsiAHsdOwAiEWFtaS04YzFmZWNlNTsGIgcxNjsHWwA7CCIMcnVubmluZzsJ
+Ii1lYzItNjctMjAyLTUyLTI2LmNvbXB1dGUtMS5hbWF6b25hd3MuY29tOwoi
+DWRpc2FibGVkOwsiEWplbmtpbnNfdGVzdDsMWwYiHWZpcmV3YWxsLWluc3Qt
+MTMxMDU1ODI2NjobYXdzX3ByaXZhdGVfaXBfYWRkcmVzcyIRMTAuMjExLjE1
+LjIxOw0iCWkzODY7DiIdMjAxMS0wOC0wOFQxMDowOTo1MS4wMDBaOxwiEWFr
+aS00MDdkOTUyOTsPewYiCU5hbWUiADsQIghlYnM7EiINdDEubWljcm87E1sG
+ewYiDi9kZXYvc2RhMSIRdm9sLWM0MzdjYmFlOxQiADsVIhEyOTM3ODc3NDk4
+ODQ7FiIPdXMtZWFzdC0xYTsXIgYwOxgiD3ItNTcxZDkzMzg7GSIPaS0zMzY4
+MDA1MjsaIg4vZGV2L3NkYTE7GyIuZG9tVS0xMi0zMS0zOS0wQS0wQy1FNy5j
+b21wdXRlLTEuaW50ZXJuYWx7HDsAIhFhbWktMTZhMzU3N2Y7BiIGMDsHWwA7
+CCIMcGVuZGluZzsJIgA7CiINZGlzYWJsZWQ7CyIAOwxbBiIMZGVmYXVsdDsN
+IglpMzg2Ow4iHTIwMTEtMDgtMDhUMTA6MTI6MDguMDAwWjscIhFha2ktNDA3
+ZDk1Mjk7D3sAOxAiCGViczsSIg1tMS5zbWFsbDsTWwZ7BiIOL2Rldi9zZGEx
+IhF2b2wtYzYzMGNjYWM7FCIAOxUiETI5Mzc4Nzc0OTg4NDsWIg91cy1lYXN0
+LTFiOxciBjA7GCIPci1mZjFhOTQ5MDsZIg9pLTc3NmEwMjE2OxoiDi9kZXYv
+c2RhMTsbIgB7HDsAIhFhbWktMTZhMzU3N2Y7BiIGMDsHWwA7CCIMcGVuZGlu
+ZzsJIgA7CiINZGlzYWJsZWQ7CyIAOwxbBiIMZGVmYXVsdDsNIglpMzg2Ow4i
+HTIwMTEtMDgtMDhUMTA6MTI6MTMuMDAwWjscIhFha2ktNDA3ZDk1Mjk7D3sA
+OxAiCGViczsSIg10MS5taWNybzsTWwZ7BiIOL2Rldi9zZGExIhF2b2wtZGUz
+MGNjYjQ7FCIAOxUiETI5Mzc4Nzc0OTg4NDsWIg91cy1lYXN0LTFhOxciBjA7
+GCIPci1mNzFhOTQ5ODsZIg9pLTdmNmEwMjFlOxoiDi9kZXYvc2RhMTsbIgB7
+HDsAIhFhbWktMTZhMzU3N2Y7BiIGMDsHWwA7CCIMcGVuZGluZzsJIgA7CiIN
+ZGlzYWJsZWQ7CyIAOwxbBiIMZGVmYXVsdDsNIglpMzg2Ow4iHTIwMTEtMDgt
+MDhUMTA6MTI6MTUuMDAwWjscIhFha2ktNDA3ZDk1Mjk7D3sAOxAiCGViczsS
+Ig1tMS5zbWFsbDsTWwA7FCIAOxUiETI5Mzc4Nzc0OTg4NDsWIg91cy1lYXN0
+LTFiOxciBjA7GCIPci1mMzFhOTQ5YzsZIg9pLTQzNmEwMjIyOxoiDi9kZXYv
+c2RhMTsbIgA=
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/ec2/support/ec2/reboot_reboot_instances.8702fc199a628a156f600c9fbd4c985b47a25762
----------------------------------------------------------------------
diff --git a/tests/deprecated/ec2/support/ec2/reboot_reboot_instances.8702fc199a628a156f600c9fbd4c985b47a25762 b/tests/deprecated/ec2/support/ec2/reboot_reboot_instances.8702fc199a628a156f600c9fbd4c985b47a25762
new file mode 100644
index 0000000..8ee646d
--- /dev/null
+++ b/tests/deprecated/ec2/support/ec2/reboot_reboot_instances.8702fc199a628a156f600c9fbd4c985b47a25762
@@ -0,0 +1 @@
+BAhU
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/ec2/support/ec2/stop_describe_instances.b5f0a55c4b7b77954ce958af619973e1764f1d5c
----------------------------------------------------------------------
diff --git a/tests/deprecated/ec2/support/ec2/stop_describe_instances.b5f0a55c4b7b77954ce958af619973e1764f1d5c b/tests/deprecated/ec2/support/ec2/stop_describe_instances.b5f0a55c4b7b77954ce958af619973e1764f1d5c
new file mode 100644
index 0000000..29ca148
--- /dev/null
+++ b/tests/deprecated/ec2/support/ec2/stop_describe_instances.b5f0a55c4b7b77954ce958af619973e1764f1d5c
@@ -0,0 +1,13 @@
+BAhbBnscOhFhd3NfaW1hZ2VfaWQiEWFtaS0xNmEzNTc3ZjoTYXdzX3N0YXRl
+X2NvZGUiBjA6FmF3c19wcm9kdWN0X2NvZGVzWwA6DmF3c19zdGF0ZSIMcGVu
+ZGluZzoNZG5zX25hbWUiADoVbW9uaXRvcmluZ19zdGF0ZSINZGlzYWJsZWQ6
+EXNzaF9rZXlfbmFtZSIAOg9hd3NfZ3JvdXBzWwYiDGRlZmF1bHQ6EWFyY2hp
+dGVjdHVyZSIJaTM4NjoUYXdzX2xhdW5jaF90aW1lIh0yMDExLTA4LTA4VDEw
+OjEyOjE1LjAwMFo6EmF3c19rZXJuZWxfaWQiEWFraS00MDdkOTUyOToJdGFn
+c3sAOhVyb290X2RldmljZV90eXBlIghlYnM6FmF3c19pbnN0YW5jZV90eXBl
+Ig1tMS5zbWFsbDoaYmxvY2tfZGV2aWNlX21hcHBpbmdzWwA6D2F3c19yZWFz
+b24iADoOYXdzX293bmVyIhEyOTM3ODc3NDk4ODQ6GmF3c19hdmFpbGFiaWxp
+dHlfem9uZSIPdXMtZWFzdC0xYjoVYW1pX2xhdW5jaF9pbmRleCIGMDoXYXdz
+X3Jlc2VydmF0aW9uX2lkIg9yLWYzMWE5NDljOhRhd3NfaW5zdGFuY2VfaWQi
+D2ktNDM2YTAyMjI6FXJvb3RfZGV2aWNlX25hbWUiDi9kZXYvc2RhMToVcHJp
+dmF0ZV9kbnNfbmFtZSIA
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/ec2/support/ec2/stop_describe_instances.da39a3ee5e6b4b0d3255bfef95601890afd80709
----------------------------------------------------------------------
diff --git a/tests/deprecated/ec2/support/ec2/stop_describe_instances.da39a3ee5e6b4b0d3255bfef95601890afd80709 b/tests/deprecated/ec2/support/ec2/stop_describe_instances.da39a3ee5e6b4b0d3255bfef95601890afd80709
new file mode 100644
index 0000000..adea4bb
--- /dev/null
+++ b/tests/deprecated/ec2/support/ec2/stop_describe_instances.da39a3ee5e6b4b0d3255bfef95601890afd80709
@@ -0,0 +1,48 @@
+BAhbC3scOhFhd3NfaW1hZ2VfaWQiEWFtaS05MmJhNDNmYjoTYXdzX3N0YXRl
+X2NvZGUiIUNsaWVudC5Vc2VySW5pdGlhdGVkU2h1dGRvd246FmF3c19wcm9k
+dWN0X2NvZGVzWwA6DmF3c19zdGF0ZSIPdGVybWluYXRlZDoNZG5zX25hbWUi
+ADoVbW9uaXRvcmluZ19zdGF0ZSINZGlzYWJsZWQ6EXNzaF9rZXlfbmFtZSIR
+amVua2luc190ZXN0Og9hd3NfZ3JvdXBzWwYiEnF1aWNrLXN0YXJ0LTE6EWFy
+Y2hpdGVjdHVyZSIJaTM4NjoUYXdzX2xhdW5jaF90aW1lIh0yMDExLTA4LTA4
+VDA5OjIzOjAwLjAwMFo6CXRhZ3N7BiIJTmFtZSIAOhVyb290X2RldmljZV90
+eXBlIghlYnM6EWF3c19wbGF0Zm9ybSIMd2luZG93czoWYXdzX2luc3RhbmNl
+X3R5cGUiDXQxLm1pY3JvOhpibG9ja19kZXZpY2VfbWFwcGluZ3NbADoPYXdz
+X3JlYXNvbiIUVXNlciBpbml0aWF0ZWQgOg5hd3Nfb3duZXIiETI5Mzc4Nzc0
+OTg4NDoaYXdzX2F2YWlsYWJpbGl0eV96b25lIg91cy1lYXN0LTFhOhVhbWlf
+bGF1bmNoX2luZGV4IgYwOhdhd3NfcmVzZXJ2YXRpb25faWQiD3ItZjU3NmY4
+OWE6FGF3c19pbnN0YW5jZV9pZCIPaS02OTM2NWUwODoVcm9vdF9kZXZpY2Vf
+bmFtZSIOL2Rldi9zZGExOhVwcml2YXRlX2Ruc19uYW1lIgB7HDsAIhFhbWkt
+OGMxZmVjZTU7BiIhQ2xpZW50LlVzZXJJbml0aWF0ZWRTaHV0ZG93bjsHWwA7
+CCIPdGVybWluYXRlZDsJIgA7CiINZGlzYWJsZWQ7CyIRamVua2luc190ZXN0
+OwxbBiIdZmlyZXdhbGwtaW5zdC0xMzEwNTU4MjY2Ow0iCWkzODY7DiIdMjAx
+MS0wOC0wOFQwOToyNDo1Mi4wMDBaOhJhd3Nfa2VybmVsX2lkIhFha2ktNDA3
+ZDk1Mjk7D3sGIglOYW1lIgA7ECIIZWJzOxIiDXQxLm1pY3JvOxNbADsUIhRV
+c2VyIGluaXRpYXRlZCA7FSIRMjkzNzg3NzQ5ODg0OxYiD3VzLWVhc3QtMWI7
+FyIGMDsYIg9yLWYzNzdmOTljOxkiD2ktMjMzNzVmNDI7GiIOL2Rldi9zZGEx
+OxsiAHsdOwAiEWFtaS04YzFmZWNlNTsGIgcxNjsHWwA7CCIMcnVubmluZzsJ
+Ii1lYzItNjctMjAyLTUyLTI2LmNvbXB1dGUtMS5hbWF6b25hd3MuY29tOwoi
+DWRpc2FibGVkOwsiEWplbmtpbnNfdGVzdDsMWwYiHWZpcmV3YWxsLWluc3Qt
+MTMxMDU1ODI2NjobYXdzX3ByaXZhdGVfaXBfYWRkcmVzcyIRMTAuMjExLjE1
+LjIxOw0iCWkzODY7DiIdMjAxMS0wOC0wOFQxMDowOTo1MS4wMDBaOxwiEWFr
+aS00MDdkOTUyOTsPewYiCU5hbWUiADsQIghlYnM7EiINdDEubWljcm87E1sG
+ewYiDi9kZXYvc2RhMSIRdm9sLWM0MzdjYmFlOxQiADsVIhEyOTM3ODc3NDk4
+ODQ7FiIPdXMtZWFzdC0xYTsXIgYwOxgiD3ItNTcxZDkzMzg7GSIPaS0zMzY4
+MDA1MjsaIg4vZGV2L3NkYTE7GyIuZG9tVS0xMi0zMS0zOS0wQS0wQy1FNy5j
+b21wdXRlLTEuaW50ZXJuYWx7HDsAIhFhbWktMTZhMzU3N2Y7BiIGMDsHWwA7
+CCIMcGVuZGluZzsJIgA7CiINZGlzYWJsZWQ7CyIAOwxbBiIMZGVmYXVsdDsN
+IglpMzg2Ow4iHTIwMTEtMDgtMDhUMTA6MTI6MDguMDAwWjscIhFha2ktNDA3
+ZDk1Mjk7D3sAOxAiCGViczsSIg1tMS5zbWFsbDsTWwZ7BiIOL2Rldi9zZGEx
+IhF2b2wtYzYzMGNjYWM7FCIAOxUiETI5Mzc4Nzc0OTg4NDsWIg91cy1lYXN0
+LTFiOxciBjA7GCIPci1mZjFhOTQ5MDsZIg9pLTc3NmEwMjE2OxoiDi9kZXYv
+c2RhMTsbIgB7HDsAIhFhbWktMTZhMzU3N2Y7BiIGMDsHWwA7CCIMcGVuZGlu
+ZzsJIgA7CiINZGlzYWJsZWQ7CyIAOwxbBiIMZGVmYXVsdDsNIglpMzg2Ow4i
+HTIwMTEtMDgtMDhUMTA6MTI6MTMuMDAwWjscIhFha2ktNDA3ZDk1Mjk7D3sA
+OxAiCGViczsSIg10MS5taWNybzsTWwZ7BiIOL2Rldi9zZGExIhF2b2wtZGUz
+MGNjYjQ7FCIAOxUiETI5Mzc4Nzc0OTg4NDsWIg91cy1lYXN0LTFhOxciBjA7
+GCIPci1mNzFhOTQ5ODsZIg9pLTdmNmEwMjFlOxoiDi9kZXYvc2RhMTsbIgB7
+HDsAIhFhbWktMTZhMzU3N2Y7BiIGMDsHWwA7CCIMcGVuZGluZzsJIgA7CiIN
+ZGlzYWJsZWQ7CyIAOwxbBiIMZGVmYXVsdDsNIglpMzg2Ow4iHTIwMTEtMDgt
+MDhUMTA6MTI6MTUuMDAwWjscIhFha2ktNDA3ZDk1Mjk7D3sAOxAiCGViczsS
+Ig1tMS5zbWFsbDsTWwA7FCIAOxUiETI5Mzc4Nzc0OTg4NDsWIg91cy1lYXN0
+LTFiOxciBjA7GCIPci1mMzFhOTQ5YzsZIg9pLTQzNmEwMjIyOxoiDi9kZXYv
+c2RhMTsbIgA=
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/ec2/support/ec2/stop_terminate_instances.b5f0a55c4b7b77954ce958af619973e1764f1d5c
----------------------------------------------------------------------
diff --git a/tests/deprecated/ec2/support/ec2/stop_terminate_instances.b5f0a55c4b7b77954ce958af619973e1764f1d5c b/tests/deprecated/ec2/support/ec2/stop_terminate_instances.b5f0a55c4b7b77954ce958af619973e1764f1d5c
new file mode 100644
index 0000000..419a808
--- /dev/null
+++ b/tests/deprecated/ec2/support/ec2/stop_terminate_instances.b5f0a55c4b7b77954ce958af619973e1764f1d5c
@@ -0,0 +1,2 @@
+BAhbBnsIOhNhd3NfcHJldl9zdGF0ZSIMcGVuZGluZzoUYXdzX2luc3RhbmNl
+X2lkIg9pLTQzNmEwMjIyOhhhd3NfcHJldl9zdGF0ZV9jb2RlaQA=
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/ec2/support/ec2_mock_driver.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/ec2/support/ec2_mock_driver.rb b/tests/deprecated/ec2/support/ec2_mock_driver.rb
new file mode 100644
index 0000000..c4a6778
--- /dev/null
+++ b/tests/deprecated/ec2/support/ec2_mock_driver.rb
@@ -0,0 +1,72 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership. The
+# ASF licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the
+# License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+require_relative './method_serializer'
+
+# Create 'mock' version of original driver client/gem:
+
+module Mock
+
+ class Ec2 < Aws::Ec2
+
+ include MethodSerializer::Cache
+
+ def self.cached_methods
+ [
+ :describe_images,
+ :describe_images_by_owner,
+ :describe_availability_zones,
+ :launch_instances,
+ :describe_instances,
+ :reboot_instances,
+ :create_tag,
+ :delete_tag,
+ :describe_tags,
+ :terminate_instances,
+ :describe_key_pairs,
+ :create_key_pair,
+ :delete_key_pair,
+ :create_volume,
+ :get_console_output,
+ :describe_volumes,
+ :delete_volume,
+ :attach_volume,
+ :detach_volume,
+ :describe_snapshots,
+ :associate_address,
+ :try_create_snapshot,
+ ]
+ end
+
+ MethodSerializer::Cache::wrap_methods(self, :cache_dir => File.join(File.dirname(__FILE__)))
+ end
+
+end
+
+Deltacloud::Drivers::Ec2::Ec2Driver.class_eval do
+ alias_method :original_new_client, :new_client
+
+ def new_client(credentials, provider = :ec2)
+ auth_credentials = { :access_key_id => credentials.user, :secret_access_key => credentials.password}
+ if provider == :elb
+ Mock::ELB.new(auth_credentials)
+ elsif provider == :s3
+ Mock::S3.new(auth_credentials)
+ else
+ Mock::Ec2.new(auth_credentials[:access_key_id], auth_credentials[:secret_access_key])
+ end
+ end
+
+end
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/ec2/support/elb/describe_load_balancers.da39a3ee5e6b4b0d3255bfef95601890afd80709
----------------------------------------------------------------------
diff --git a/tests/deprecated/ec2/support/elb/describe_load_balancers.da39a3ee5e6b4b0d3255bfef95601890afd80709 b/tests/deprecated/ec2/support/elb/describe_load_balancers.da39a3ee5e6b4b0d3255bfef95601890afd80709
new file mode 100644
index 0000000..72010da
--- /dev/null
+++ b/tests/deprecated/ec2/support/elb/describe_load_balancers.da39a3ee5e6b4b0d3255bfef95601890afd80709
@@ -0,0 +1,5 @@
+BAh7CCIgRGVzY3JpYmVMb2FkQmFsYW5jZXJzUmVzdWx0ewYiHUxvYWRCYWxh
+bmNlckRlc2NyaXB0aW9uczAiFVJlc3BvbnNlTWV0YWRhdGF7BiIOUmVxdWVz
+dElkIik3ZjBmZmFiMC1lZTQyLTExZGYtODVmMS1iYjY4MDliY2MxNjgiCnht
+bG5zIj5odHRwOi8vZWxhc3RpY2xvYWRiYWxhbmNpbmcuYW1hem9uYXdzLmNv
+bS9kb2MvMjAwOS0wNS0xNS8=
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/ec2/support/env.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/ec2/support/env.rb b/tests/deprecated/ec2/support/env.rb
new file mode 100644
index 0000000..1fc26f1
--- /dev/null
+++ b/tests/deprecated/ec2/support/env.rb
@@ -0,0 +1,59 @@
+require 'rubygems'
+require 'nokogiri'
+require 'rack/test'
+
+ENV['API_DRIVER'] = 'ec2'
+
+#CONFIG = {
+# :username => 'AKIAI77KNAA7ZXRLL7GQ',
+# :password => 'idJ9vktNaDWAK0LWVVE/526ONvJmTl2Crto/s8Ok'
+#}
+
+CONFIG = {
+ :username => 'mockuser',
+ :password => 'mockpassword'
+}
+
+load File.join(File.dirname(__FILE__), '..', '..', '..', 'server', 'lib', 'deltacloud_rack.rb')
+
+Deltacloud::configure do |server|
+ server.root_url '/api'
+ server.version '1.0.0'
+ server.klass 'Deltacloud::API'
+end.require_frontend!
+
+require_relative './ec2_mock_driver'
+
+World do
+ include Rack::Test::Methods
+
+ def app
+ @app = Rack::URLMap.new(
+ "/" => Deltacloud::API.new,
+ "/stylesheets" => Rack::Directory.new( "public/stylesheets" ),
+ "/javascripts" => Rack::Directory.new( "public/javascripts" )
+ )
+ end
+
+ def output_xml
+ Nokogiri::XML(last_response.body)
+ end
+
+ Before do
+ unless @no_header
+ header 'Accept', 'application/xml;q=9'
+ end
+ end
+
+ prefixes = %W{ @prefix-start, @prefix-reboot, @prefix-stop, @prefix-create, @prefix-create-hwp, @prefix-destroy, @prefix-actions}
+
+ Before(prefixes.join(',')) do |scenario|
+ prefix = scenario.source_tag_names.first.gsub(/@prefix-/, '')
+ $scenario_prefix = prefix
+ end
+
+ After(prefixes.join(',')) do |scenario|
+ $scenario_prefix = nil
+ end
+
+end
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/ec2/support/method_serializer.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/ec2/support/method_serializer.rb b/tests/deprecated/ec2/support/method_serializer.rb
new file mode 100644
index 0000000..ff5e542
--- /dev/null
+++ b/tests/deprecated/ec2/support/method_serializer.rb
@@ -0,0 +1,83 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership. The
+# ASF licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the
+# License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+require 'base64'
+require 'digest'
+
+module MethodSerializer
+
+ module Cache
+
+ def cache_dir
+ storage_dir = $methods_cache_dir || File.join(File.dirname(__FILE__), 'cache')
+ class_dir = self.class.name.split('::').last
+ class_dir ||= self.class.name
+ File.join(storage_dir, class_dir.downcase)
+ end
+
+ def serialize_data(method_name, args, data)
+ File.open(cache_file_name(method_name, args), 'w') do |f|
+ f.puts(Base64.encode64(Marshal.dump(data)))
+ end
+ return data
+ end
+
+ def deserialize_data(method_name, args)
+ begin
+ data = File.readlines(cache_file_name(method_name, args)).join
+ Marshal.load(Base64.decode64(data))
+ rescue Errno::ENOENT
+ return false
+ end
+ end
+
+ def args_hash(args)
+ if args.class == Hash
+ args = args.to_a.collect {|i| [i[0].to_s, i[1]]}.sort
+ end
+ Digest::SHA1.hexdigest(args.to_s)
+ end
+
+ def cache_file_name(method_name, args)
+ FileUtils.mkdir_p(cache_dir) unless File.directory?(cache_dir)
+ method_name = $scenario_prefix ? "#{$scenario_prefix}_#{method_name}" : method_name
+ File.join(cache_dir, "#{method_name}.#{args_hash(args)}")
+ end
+
+ def self.wrap_methods(c, opts={})
+ $methods_cache_dir = opts[:cache_dir]
+ $scenario_prefix = nil
+ c.class_eval do
+ cached_methods.each do |m|
+ next if c.instance_methods(false).include?("original_#{m}")
+ alias_method "original_#{m}".to_sym, m.to_sym
+ define_method m.to_sym do |*args|
+ args = args.first if args.size.eql?(1) and not args.first.class.eql?(Array)
+ output = deserialize_data(m, args)
+ unless output
+ output = method("original_#{m}".to_sym).to_proc[args]
+ return serialize_data(m, args, output)
+ else
+ return output
+ end
+ end
+ end
+ end
+ end
+
+ end
+
+end
+
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/ec2/support/s3/buckets.da39a3ee5e6b4b0d3255bfef95601890afd80709
----------------------------------------------------------------------
diff --git a/tests/deprecated/ec2/support/s3/buckets.da39a3ee5e6b4b0d3255bfef95601890afd80709 b/tests/deprecated/ec2/support/s3/buckets.da39a3ee5e6b4b0d3255bfef95601890afd80709
new file mode 100644
index 0000000..62fb8de
--- /dev/null
+++ b/tests/deprecated/ec2/support/s3/buckets.da39a3ee5e6b4b0d3255bfef95601890afd80709
@@ -0,0 +1 @@
+BAhbAA==
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/api.feature
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/api.feature b/tests/deprecated/mock/api.feature
new file mode 100644
index 0000000..961bdd4
--- /dev/null
+++ b/tests/deprecated/mock/api.feature
@@ -0,0 +1,55 @@
+Feature: Accessing API entry points
+
+ Scenario: API driver and version
+ Given URI /api exists
+ And authentification is not required for this URI
+ When client access this URI
+ Then client should get root element 'api'
+ And this element should have attribute 'driver' with value 'mock'
+# And this element should have attribute 'version' with value '1.0.0'
+
+ Scenario: List of entry points
+ Given URI /api exists
+ And authentification is not required for this URI
+ When client access this URI
+ Then client should get list of valid entry points:
+ | drivers |
+ | buckets |
+ | keys |
+ | realms |
+ | instances |
+ | images |
+ | instance_states |
+ | hardware_profiles |
+ | storage_snapshots |
+ | storage_volumes |
+ And this URI should be available in XML, JSON, HTML format
+
+ Scenario: Following entry points
+ Given URI /api exists
+ And authentification is not required for this URI
+ When client access this URI
+ Then client should get list of valid entry points:
+ | drivers |
+ | buckets |
+ | keys |
+ | realms |
+ | instances |
+ | images |
+ | instance_states |
+ | hardware_profiles |
+ | storage_snapshots |
+ | storage_volumes |
+ And each link should have 'rel' attribute with valid name
+ And each link should have 'href' attribute with valid URL
+ When client follow this attribute
+ Then client should get a valid response
+
+ Scenario: Instance features
+ Given URI /api exists
+ And authentification is not required for this URI
+ When client access this URI
+ Then client should get list of features inside 'instances':
+ | user_name |
+ | user_data |
+ | authentication_key |
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/hardware_profiles.feature
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/hardware_profiles.feature b/tests/deprecated/mock/hardware_profiles.feature
new file mode 100644
index 0000000..60594df
--- /dev/null
+++ b/tests/deprecated/mock/hardware_profiles.feature
@@ -0,0 +1,29 @@
+Feature: Accessing hardware profiles
+
+ Scenario: I want to get list of all hardware profiles
+ Given URI /api/hardware_profiles exists
+ And authentification is not required for this URI
+ When client access this URI
+ Then client should get root element 'hardware_profiles'
+ And this URI should be available in XML, HTML, JSON format
+
+ Scenario: I want to show hardware profile details
+ Given URI /api/hardware_profiles exists
+ And authentification is not required for this URI
+ When client access this URI
+ Then client should get root element 'hardware_profiles'
+ When client want to show 'm1-large' hardware_profile
+ And client should get this hardware_profile
+ And it should have a href attribute
+ And it should have a range property 'cpu'
+ And it should have a range property 'memory'
+ And it should have a enum property 'storage'
+ And this URI should be available in XML, HTML, JSON format
+
+ Scenario: Filtering images by architecture
+ Given URI /api/hardware_profiles exists
+ And authentification is required for this URI
+ When client access this URI with parameters:
+ | architecture | i386 |
+ Then client should get some hardware_profiles
+ And each hardware_profile should have 'architecture' property set to 'i386'
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/images.feature
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/images.feature b/tests/deprecated/mock/images.feature
new file mode 100644
index 0000000..0094548
--- /dev/null
+++ b/tests/deprecated/mock/images.feature
@@ -0,0 +1,63 @@
+Feature: Listing and showing images
+
+ Scenario: Listing available images
+ Given URI /api/images exists
+ And authentification is required for this URI
+ When client access this URI
+ Then client should get root element 'images'
+ And this element contains some images
+ And each image should have:
+ | name |
+ | description |
+ | architecture |
+ | owner_id |
+ | state |
+ | hardware_profiles |
+ | actions |
+ And each image should have 'href' attribute with valid URL
+ And this URI should be available in XML, JSON, HTML format
+
+ Scenario: Following image href attribute
+ Given URI /api/images exists
+ And authentification is required for this URI
+ When client access this URI
+ Then client should get root element 'images'
+ And this element contains some images
+ When client want to show first image
+ Then client should follow href attribute in image
+ And client should get valid response with requested image
+ And this image should have:
+ | name |
+ | description |
+ | architecture |
+ | hardware_profiles |
+ | owner_id |
+ | state |
+ | actions |
+ And this URI should be available in XML, JSON, HTML format
+
+ Scenario: Filtering images by owner_id
+ Given URI /api/images exists
+ And authentification is required for this URI
+ When client access this URI with parameters:
+ | owner_id | fedoraproject |
+ Then client should get some images
+ And each image should have 'owner_id' attribute set to 'fedoraproject'
+
+ Scenario: Filtering images by architecture
+ Given URI /api/images exists
+ And authentification is required for this URI
+ When client access this URI with parameters:
+ | architecture | i386 |
+ Then client should get some images
+ And each image should have 'architecture' attribute set to 'i386'
+
+ Scenario: Filtering images by architecture and owner_id
+ Given URI /api/images exists
+ And authentification is required for this URI
+ When client access this URI with parameters:
+ | architecture | i386 |
+ | owner_id | fedoraproject |
+ Then client should get some images
+ And each image should have 'architecture' attribute set to 'i386'
+ And each image should have 'owner_id' attribute set to 'fedoraproject'
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/instance_states.feature
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/instance_states.feature b/tests/deprecated/mock/instance_states.feature
new file mode 100644
index 0000000..3008ef0
--- /dev/null
+++ b/tests/deprecated/mock/instance_states.feature
@@ -0,0 +1,36 @@
+Feature: Instance states and transitions
+
+ Scenario: Getting list of states
+ Given URI /api/instance_states exists
+ And authentification is not required for this URI
+ When client access this URI
+ Then client should get root element 'states'
+ And this element contains some states
+ And this URI should be available in XML, JSON, HTML format
+
+
+ Scenario: State names
+ Given URI /api/instance_states exists
+ And authentification is not required for this URI
+ When client access this URI
+ Then client should get root element 'states'
+ And states element contains some states
+ And each state should have 'name' attribute
+ And first state should have 'name' attribute set to 'start'
+ And last state should have 'name' attribute set to 'finish'
+
+ Scenario: Transitions
+ Given URI /api/instance_states exists
+ And authentification is not required for this URI
+ When client access this URI
+ Then client should get root element 'states'
+ And states element contains some states
+ And some states should have transitions
+ And each transitions should have 'to' attribute
+
+ Scenario: State diagram
+ Given URI /api/instance_states exists
+ And authentification is not required for this URI
+ When client access this URI
+ And client wants PNG format
+ Then client should get PNG image
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/instances.feature
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/instances.feature b/tests/deprecated/mock/instances.feature
new file mode 100644
index 0000000..9f7397a
--- /dev/null
+++ b/tests/deprecated/mock/instances.feature
@@ -0,0 +1,161 @@
+Feature: Managing instances
+
+ Scenario: Listing current instances
+ Given URI /api/instances exists
+ And authentification is required for this URI
+ When client access this URI
+ Then client should get root element 'instances'
+ And this element contains some instances
+ And each instance should have:
+ | name |
+ | owner_id |
+ | image |
+ | realm |
+ | state |
+ | hardware_profile |
+ | actions |
+ | authentication |
+ | public_addresses |
+ | private_addresses |
+ | storage_volumes |
+ And each instance should have 'href' attribute with valid URL
+ And this URI should be available in XML, JSON, HTML format
+
+ Scenario: Filtering instances by state
+ Given URI /api/instances exists
+ And authentification is required for this URI
+ When client access this URI with parameters:
+ | state | RUNNING |
+ Then client should get some instances
+ And each instance should have 'state' element set to 'RUNNING'
+
+ Scenario: Get details about first instance
+ Given URI /api/instances exists
+ And authentification is required for this URI
+ When client access this URI
+ Then client should get root element 'instances'
+ And this element contains some instances
+ When client want to show first instance
+ Then client follow href attribute in first instance
+ Then client should get this instance
+ And this instance should have:
+ | name |
+ | owner_id |
+ | image |
+ | realm |
+ | state |
+ | hardware_profile |
+ | actions |
+ | authentication |
+ | public_addresses |
+ | private_addresses |
+ | storage_volumes |
+
+ Scenario: Following image href in instance
+ Given URI /api/instances exists
+ And authentification is required for this URI
+ When client access this URI
+ Then client should get root element 'instances'
+ And this element contains some instances
+ When client follow image href attribute in first instance
+ Then client should get valid image
+
+ Scenario: Following realm href in instance
+ Given URI /api/instances exists
+ And authentification is required for this URI
+ When client access this URI
+ Then client should get root element 'instances'
+ And this element contains some instances
+ When client follow realm href attribute in first instance
+ Then client should get valid realm
+
+ Scenario: Following hardware profile href in instance
+ Given URI /api/instances exists
+ And authentification is required for this URI
+ When client access this URI
+ Then client should get root element 'instances'
+ And this element contains some instances
+ When client follow hardware_profile href attribute in first instance
+ Then client should get valid hardware_profile
+
+ Scenario: Instance actions
+ Given URI /api/instances exists
+ And authentification is required for this URI
+ When client access this URI
+ Then client should get root element 'instances'
+ And this element contains some instances
+ And each instance should have actions
+ And each actions should have some links
+ And each link should have valid href attribute
+ And each link should have valid method attribute
+ And each link should have valid rel attribute
+
+ Scenario: Reboot instance
+ Given URI /api/instances exists
+ And authentification is required for this URI
+ When client access this URI
+ Then client should get root element 'instances'
+ And this element contains some instances
+ When client want to 'reboot' first instance
+ And client follow link in actions
+ Then client should get first instance
+ And this instance should be in 'RUNNING' state
+
+ Scenario: Stop instance
+ Given URI /api/instances exists
+ And authentification is required for this URI
+ When client access this URI
+ Then client should get root element 'instances'
+ And this element contains some instances
+ When client want to 'stop' first instance
+ And client follow link in actions
+ Then client should get first instance
+ And this instance should be in 'STOPPED' state
+
+ Scenario: Start instance
+ Given URI /api/instances exists
+ And authentification is required for this URI
+ When client access this URI
+ Then client should get root element 'instances'
+ And this element contains some instances
+ When client want to 'start' first instance
+ And client follow link in actions
+ Then client should get first instance
+ And this instance should be in 'RUNNING' state
+
+ Scenario: Basic instance creation
+ Given URI /api/instances exists
+ And authentification is required for this URI
+ When client want to create a new instance
+ Then client should choose first image
+ When client request for a new instance
+ Then new instance should be created
+ And this instance should have chosed image
+ And this instance should be in 'RUNNING' state
+ And this instance should have valid id
+ And this instance should have name
+
+ Scenario: Choosing hardware profile for instance
+ Given URI /api/instances exists
+ And authentification is required for this URI
+ When client want to create a new instance
+ Then client should choose first image
+ And client choose last hardware profile
+ When client request for a new instance
+ Then new instance should be created
+ And this instance should have chosed image
+ And this instance should be in 'RUNNING' state
+ And this instance should have valid id
+ And this instance should have last hardware profile
+ And this instance should have name
+
+ Scenario: Destroying created instance
+ Given URI /api/instances exists
+ And authentification is required for this URI
+ When client want to 'stop' first instance
+ And client follow link in actions
+ Then client should get this instance
+ And this instance should be in 'STOPPED' state
+ When client want to 'destroy' first instance
+ And client follow link in actions
+ And this instance should be destroyed
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/realms.feature
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/realms.feature b/tests/deprecated/mock/realms.feature
new file mode 100644
index 0000000..e40d869
--- /dev/null
+++ b/tests/deprecated/mock/realms.feature
@@ -0,0 +1,27 @@
+Feature: Accessing realms
+
+ Scenario: Getting list of available realms
+ Given URI /api/realms exists
+ And authentification is required for this URI
+ When client access this URI
+ Then client should get root element 'realms'
+ And this element contains some realms
+ And each realm should have:
+ | name |
+ | state |
+ And each realm should have 'href' attribute with valid URL
+ And this URI should be available in XML, JSON, HTML format
+
+ Scenario: Following realm href attribute
+ Given URI /api/realms exists
+ And authentification is required for this URI
+ When client access this URI
+ Then client should get root element 'realms'
+ And this element contains some realms
+ When client want to show first realm
+ Then client should follow href attribute in realm
+ And client should get valid response with requested realm
+ And this realm should have:
+ | name |
+ | state |
+ And this URI should be available in XML, JSON, HTML format
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/respond_to.feature
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/respond_to.feature b/tests/deprecated/mock/respond_to.feature
new file mode 100644
index 0000000..86b3030
--- /dev/null
+++ b/tests/deprecated/mock/respond_to.feature
@@ -0,0 +1,71 @@
+Feature: Returning valid responses with various queries
+
+ Scenario: User will get XML version if there is no Accept or format parameter
+ Given URI /api exists
+ And authentification is not required for this URI
+ And client perform an HTTP request for this URI
+ Then client should get valid XML response
+
+ Scenario: User wants to get XML version of API using Accept header
+ Given URI /api exists
+ And authentification is not required for this URI
+ When client use Accept header:
+ | application/xml;q=0.9 |
+ And client perform an HTTP request for this URI
+ Then client should get valid XML response
+
+ Scenario: User wants to get HTML version of API using Accept header
+ Given URI /api exists
+ And authentification is not required for this URI
+ When client use Accept header:
+ | application/xhtml+xml |
+ And client perform an HTTP request for this URI
+ Then client should get valid HTML response
+
+ Scenario: User wants to get JSON version of API
+ Given URI /api exists
+ And authentification is not required for this URI
+ When client use Accept header:
+ | application/json;q=0.9 |
+ And client perform an HTTP request for this URI
+ Then client should get valid JSON response
+
+ Scenario: User wants to get XML version of API with format parameter
+ Given URI /api exists
+ And authentification is not required for this URI
+ When client use Accept header:
+ | application/xhtml+xml;q=0.9 |
+ And client accept this URI with parameters:
+ | format | xml |
+ And client perform an HTTP request for this URI
+ Then client should get valid XML response
+
+ Scenario: User wants to get JSON version of API with format parameter
+ Given URI /api exists
+ And authentification is not required for this URI
+ When client use Accept header:
+ | application/xhtml+html;q=0.9 |
+ And client accept this URI with parameters:
+ | format | json |
+ And client perform an HTTP request for this URI
+ Then client should get valid JSON response
+
+ Scenario: User set Accept to json but force format to XML using format parameter
+ Given URI /api exists
+ And authentification is not required for this URI
+ When client use Accept header:
+ | application/json;q=0.9 |
+ And client accept this URI with parameters:
+ | format | xml |
+ And client perform an HTTP request for this URI
+ Then client should get valid XML response
+
+ # Extensions are ignored, so this doesn't affect content-negotiation
+ Scenario: User wants to get XML version of API with format parameter and set extension
+ Given URI /api exists
+ And authentification is not required for this URI
+ When client wants to get URI '/api.xml'
+ When client use Accept header:
+ | application/xhtml+xml;q=0.9 |
+ And client perform an HTTP request for this URI
+ Then client should get valid HTML response
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/step_definitions/api_steps.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/step_definitions/api_steps.rb b/tests/deprecated/mock/step_definitions/api_steps.rb
new file mode 100644
index 0000000..77c61fb
--- /dev/null
+++ b/tests/deprecated/mock/step_definitions/api_steps.rb
@@ -0,0 +1,152 @@
+World(Rack::Test::Methods)
+
+Given /^URI ([\w\/\-_]+) exists$/ do |uri|
+ get uri
+ last_response.status.should_not == 404
+ last_response.status.should_not == 500
+ @uri = uri
+end
+
+Given /^URI ([\w\/\-_]+) exists in (.+) format$/ do |uri, format|
+ @no_header = true
+ case format.downcase
+ when 'xml' then
+ header 'Accept', 'application/xml;q=9'
+ when 'json' then
+ header 'Accept', 'application/json;q=9'
+ when 'html' then
+ header 'Accept', 'application/xml+xhtml;q=9'
+ end
+ @uri = uri
+ get uri, {}
+ last_response.status.should_not == 404
+ last_response.status.should_not == 500
+end
+
+Given /^authentification is not required for this URI$/ do
+ last_response.status.should_not == 401
+end
+
+When /^client access this URI$/ do
+ get @uri, {}
+ last_response.status.should_not == 404
+end
+
+Then /^client should get root element '(.+)'$/ do |element|
+ @last_element = output_xml.xpath('/'+element).first
+ @last_element.should_not be_nil
+ @last_element.name.should == element
+end
+
+Then /^this element should have attribute '(.+)' with value '(.+)'$/ do |atr, val|
+ @last_element[atr.to_sym].should == val
+end
+
+Then /^client should get list of valid entry points:$/ do |table|
+ @entry_points = table.raw.flatten.sort
+ links = []
+ output_xml.xpath('/api/link').each do |entry_point|
+ links << entry_point['rel']
+ end
+ @entry_points.should == links.sort
+end
+
+Then /^this URI should be available in (.+) format$/ do |formats|
+ @no_header = true
+ formats.split(',').each do |format|
+ case format.downcase
+ when 'xml' then
+ header 'Accept', 'application/xml;q=9'
+ when 'json' then
+ header 'Accept', 'application/json;q=9'
+ when 'html' then
+ header 'Accept', 'application/xml+xhtml;q=9'
+ end
+ get @uri, {}
+ last_response.status.should == 200
+ end
+ @no_header = false
+end
+
+Then /^each (\w+) should have '(.+)' attribute with valid (.+)$/ do |el, attr, t|
+ case el
+ when 'link' then
+ path = '/api/link'
+ when 'image' then
+ path = '/images/image'
+ when 'instance' then
+ path = '/instances/instance'
+ when 'key' then
+ path = '/keys/key'
+ when 'realm' then
+ path = '/realms/realm'
+ end
+ output_xml.xpath(path).each do |entry_point|
+ @entry_points.include?(entry_point[attr]).should == true if t=='name'
+ if t=='URL'
+ entry_point[:href].should_not be_nil
+ end
+ end
+ @last_attribute = attr
+end
+
+Then /^each ([\w\-]+) should have '(.+)' attribute set to '(.+)'$/ do |el, attr, v|
+ case el
+ when 'image' then
+ path = "/image/images"
+ when 'hardware_profile' then
+ path = "/hardware_profiles/hardware_profile"
+ when 'instance' then
+ path = "/instances/instance"
+ end
+ output_xml.xpath(path).each do |element|
+ element[attr].should == v
+ end
+end
+
+Then /^each ([\w\-]+) should have '(.+)' element set to '(.+)'$/ do |el, child, v|
+ case el
+ when 'image' then
+ path = "/images/image"
+ when 'hardware_profile' then
+ path = "/hardware_profiles/hardware_profile"
+ when 'instance' then
+ path = "/instances/instance"
+ end
+ output_xml.xpath(path).each do |element|
+ element.xpath(child).should_not be_nil
+ element.xpath(child).first.content.should == v
+ end
+end
+
+Then /^each ([\w\-]+) should have '(.+)' property set to '(.+)'$/ do |el, property, v|
+ case el
+ when 'hardware_profile' then
+ path = "/hardware_profiles/hardware_profile"
+ end
+ output_xml.xpath(path).each do |element|
+ property_elm=element.xpath("property[@name=\"#{property}\"]")
+ next unless property_elm.first
+ property_elm.should_not be_nil
+ property_elm.first["value"].should == v
+ end
+end
+
+When /^client follow this attribute$/ do
+ output_xml.xpath('/api/link').each do |entry_point|
+ get entry_point[@last_attribute], {}
+ end
+end
+
+Then /^client should get a valid response$/ do
+ last_response.status.should_not == 500
+end
+
+Then /^client should get list of features inside '(.+)':$/ do |element,table|
+ features = table.raw.flatten.sort
+ instance_features = []
+ output_xml.xpath('/api/link[@rel="'+element+'"]/feature').each do |feature|
+ instance_features << feature[:name]
+ end
+ features.should == instance_features.sort
+end
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/step_definitions/hardware_profiles_steps.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/step_definitions/hardware_profiles_steps.rb b/tests/deprecated/mock/step_definitions/hardware_profiles_steps.rb
new file mode 100644
index 0000000..373ed5c
--- /dev/null
+++ b/tests/deprecated/mock/step_definitions/hardware_profiles_steps.rb
@@ -0,0 +1,25 @@
+Then /^it should have a (\w+) attribute$/ do |name|
+ attr = output_xml.xpath('/hardware_profile').first[name]
+ attr.should_not be_nil
+end
+
+Then /^it should have a (\w+) property '(.+)'$/ do |kind, name|
+ props = output_xml.xpath("/hardware_profile/property[@name = '#{name}']")
+ props.size.should == 1
+ prop = props.first
+ prop['kind'].should == kind
+ prop['unit'].should_not be_nil
+ if kind == 'range'
+ ranges = prop.xpath('range')
+ ranges.size.should == 1
+ range = ranges.first
+ range['first'].should_not be_nil
+ range['last'].should_not be_nil
+ end
+ if kind == 'enum'
+ enums = prop.xpath('enum')
+ enums.size.should == 1
+ enums.first.xpath('entry').size.should_not == 0
+ end
+end
+
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/step_definitions/images_steps.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/step_definitions/images_steps.rb b/tests/deprecated/mock/step_definitions/images_steps.rb
new file mode 100644
index 0000000..46963bb
--- /dev/null
+++ b/tests/deprecated/mock/step_definitions/images_steps.rb
@@ -0,0 +1,83 @@
+Given /^authentification is required for this URI$/ do
+ authorize CONFIG[:username], CONFIG[:password]
+ get @uri, {}
+ last_response.status.should == 200
+end
+
+Then /^this element contains some (.+)$/ do |items|
+ item = items.singularize
+ output_xml.xpath("/#{@last_element.name}/#{item}").size.should > 0
+end
+
+Then /^each ([\w\-]+) should have:$/ do |item, table|
+ properties = table.raw.flatten.sort
+ output_xml.xpath("/#{@last_element.name}/#{item}").each do |element|
+ childrens = (element > '*').collect { |c| c.name }
+ childrens.sort.should == properties
+ end
+end
+
+Then /^this ([\w\-]+) should have:$/ do |item, table|
+ properties = table.raw.flatten.sort
+ output_xml.xpath("/#{item}").each do |element|
+ childrens = (element > '*').collect { |c| c.name }
+ childrens.sort.should == properties
+ end
+end
+
+When /^client want to show first (.+)$/ do |element|
+ case element
+ when 'image' then
+ path = '/images/image'
+ when 'instance' then
+ path = '/instances/instance'
+ when 'realm' then
+ path = '/realms/realm'
+ when 'hardware_profile' then
+ path = '/hardware_profiles/hardware_profile'
+ when 'storage_volume' then
+ path = '/storage_volumes/storage_volume'
+ when 'storage_snapshot' then
+ path = '/storage_snapshots/storage_snapshot'
+ end
+ @element = output_xml.xpath(path).first
+ @element.should_not be_nil
+end
+
+When /^client want to show '(.+)' (.+)$/ do |id, el|
+ @uri = "/api/#{el.pluralize.tr('-', '_')}/#{id}"
+ get @uri, {}
+ @element = output_xml.xpath("/#{el}").first
+ @element.should_not be_nil
+end
+
+Then /^client follow (\w+) attribute in first (.+)$/ do |attr, el|
+ url = output_xml.xpath("/#{el.pluralize}/#{el}").first[:href]
+ url.should_not be_nil
+ get url, {}
+end
+
+Then /^client should get this (.+)$/ do |el|
+ last_response.status.to_s =~ /2(\d{2})/
+end
+
+
+Then /^client should follow href attribute in (\w+)$/ do |element|
+ get @element[:href], {}
+end
+
+Then /^client should get valid response with requested (\w+)$/ do |element|
+ last_response.status.should == 200
+ output_xml.xpath('/'+element).first['id'].to_s.should == @element.xpath('@id').text
+end
+
+When /^client access this URI with parameters:$/ do |table|
+ params = {}
+ table.raw.each { |i| params[i[0]]=i[1] }
+ get @uri, params
+end
+
+Then /^client should get some ([\w\-]+)$/ do |elements|
+ last_response.status.should == 200
+ output_xml.xpath('/'+elements+'/'+elements.singularize).size.should > 0
+end
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/step_definitions/instance_states_steps.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/step_definitions/instance_states_steps.rb b/tests/deprecated/mock/step_definitions/instance_states_steps.rb
new file mode 100644
index 0000000..021c456
--- /dev/null
+++ b/tests/deprecated/mock/step_definitions/instance_states_steps.rb
@@ -0,0 +1,34 @@
+Then /^states element contains some states$/ do
+ output_xml.xpath('/states/state').size.should > 0
+end
+
+Then /^each state should have '(.+)' attribute$/ do |attr|
+ output_xml.xpath('/states/state').each do |state|
+ state[attr].should_not be_nil
+ end
+end
+
+Then /^(\w+) state should have '(.+)' attribute set to '(\w+)'$/ do |pos, attr, value|
+ output_xml.xpath('/states/state').first[attr].should==value if pos=='first'
+ output_xml.xpath('/states/state').last[attr].should==value if pos=='last'
+end
+
+Then /^some states should have transitions$/ do
+ @transitions = output_xml.xpath('/states/state/transition')
+ @transitions.size.should > 0
+end
+
+Then /^each transitions should have 'to' attribute$/ do
+ @transitions.each do |t|
+ t[:to].should_not be_nil
+ end
+end
+
+When /^client wants (\w+) format$/ do |format|
+ get @uri, { :format => format.downcase }
+end
+
+Then /^client should get PNG image$/ do
+ last_response.status.should == 200
+ last_response.headers['Content-Type'].should =~ /^image\/png/
+end
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/step_definitions/instances_steps.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/step_definitions/instances_steps.rb b/tests/deprecated/mock/step_definitions/instances_steps.rb
new file mode 100644
index 0000000..3016bd8
--- /dev/null
+++ b/tests/deprecated/mock/step_definitions/instances_steps.rb
@@ -0,0 +1,120 @@
+When /^client follow ([\w\-]+) href attribute in first instance$/ do |element|
+ get output_xml.xpath('/instances/instance[1]/'+element).first[:href], {}
+end
+
+Then /^client should get valid ([\w\-]+)$/ do |element|
+ last_response.status.should == 200
+ output_xml.xpath("/#{element}").first.should_not be_nil
+end
+
+Then /^each instance should have actions$/ do
+ output_xml.xpath('/instances/instance').each do |instance|
+ instance.xpath('actions').first.should_not be_nil
+ end
+end
+
+Then /^each actions should have some links$/ do
+ output_xml.xpath('/instances/instance').each do |instance|
+ instance.xpath('actions/link').first.should_not be_nil
+ end
+end
+
+Then /^each link should have valid (\w+) attribute$/ do |attr|
+ output_xml.xpath('/instances/instance').each do |instance|
+ instance.xpath('actions/link').first[attr].should_not be_nil
+ end
+end
+
+When /^client want to '(\w+)' first instance$/ do |action|
+ @action = action
+ @instance = output_xml.xpath('/instances/instance[1]').first
+end
+
+When /^client follow link in actions$/ do
+
+ @instance ||= output_xml.xpath("/instance").first
+ l = @instance.xpath('actions/link[@rel="'+@action+'"]').first
+
+ if @action.eql?('destroy')
+ delete l[:href]
+ else
+ post l[:href]
+ end
+ puts last_response.body if last_response.status == 500
+ last_response.status.should_not == 500
+end
+
+Then /^client should get first instance$/ do
+ output_xml.xpath('/instance').first.should_not be_nil
+end
+
+Then /^this instance should be in '(.+)' state$/ do |state|
+ output_xml.xpath('/instance/state').first.text.should == state
+end
+
+When /^client want to create a new instance$/ do
+end
+
+Then /^client should choose first image$/ do
+ get '/api/images', {}
+ @image = output_xml.xpath('/images/image').first
+ @image.should_not be_nil
+end
+
+When /^client request for a new instance$/ do
+ params = {
+ :image_id => @image.xpath('@id').first.text
+ }
+ params[:hwp_id] = @hwp_id if @hwp_id
+ post "#{@uri}", params
+ last_response.status.should == 201
+ @instance_url = last_response.headers['Location']
+end
+
+Then /^new instance should be created$/ do
+ get @instance_url, {}
+ last_response.status.should == 200
+end
+
+Then /^this instance should have chosed image$/ do
+ output_xml.xpath('/instance/image').first[:href].should == @image[:href]
+end
+
+Then /^this instance should have valid id$/ do
+ output_xml.xpath('instance/@id').first.should_not be_nil
+end
+
+Then /^this instance should have name$/ do
+ output_xml.xpath('instance/name').first.should_not be_nil
+end
+
+When /^client want to '(\w+)' created instance$/ do |action|
+ get @instance_url, {}
+ last_response.status.should == 200
+ @action = action
+ @instance = output_xml.xpath('/instance')
+end
+
+Then /^client should get created instance$/ do
+ get @instance_url
+end
+
+When /^this instance should be destroyed$/ do
+ get @instance[:href].to_s, {}
+ last_response.status.should == 404
+ output_xml.xpath('/error').first[:status].should == '404'
+end
+
+Then /^client should get HTML form$/ do
+ last_response.status.should == 200
+ (last_response.body.strip =~ /^<!DOCTYPE html/).should be_true
+end
+
+When /^client choose last hardware profile$/ do
+ get '/api/hardware_profiles', {}
+ @hwp_id = output_xml.xpath('/hardware_profiles/hardware_profile/@id').last.text
+end
+
+Then /^this instance should have last hardware profile$/ do
+ output_xml.xpath('instance/hardware_profile/@id').first.text.should == @hwp_id
+end
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/step_definitions/rake_steps.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/step_definitions/rake_steps.rb b/tests/deprecated/mock/step_definitions/rake_steps.rb
new file mode 100644
index 0000000..6a1e117
--- /dev/null
+++ b/tests/deprecated/mock/step_definitions/rake_steps.rb
@@ -0,0 +1,19 @@
+require 'fileutils'
+require 'rake'
+require 'find'
+
+When /^I run a '(\w+)' task$/ do |task|
+ @rake = Rake::Application.new
+ Rake.application = @rake
+ load "Rakefile"
+ @task = Rake::Task[task]
+ @task.invoke
+end
+
+Given /^I have a clean (.+) directory$/ do |dir|
+ FileUtils.rm_rf dir
+end
+
+Then /^I should see a (\d+) (\w+) file inside (\w+) directory$/ do |count, ext, dir|
+ Dir["#{dir}/deltacloud-*.#{ext}"].size.should == count.to_i
+end
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/step_definitions/respond_to_steps.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/step_definitions/respond_to_steps.rb b/tests/deprecated/mock/step_definitions/respond_to_steps.rb
new file mode 100644
index 0000000..a354a80
--- /dev/null
+++ b/tests/deprecated/mock/step_definitions/respond_to_steps.rb
@@ -0,0 +1,33 @@
+When /^client use (\w+) header:$/ do |name, table|
+ accept_header = table.raw.flatten.sort
+ @no_header = true
+ header name, accept_header.first.strip
+end
+
+When /^client perform an HTTP request for this URI$/ do
+ @params ||= {}
+ get @uri, @params
+end
+
+Then /^client should get valid (HTML|JSON|XML|PNG) response$/ do |format|
+ format = format.strip.downcase
+ if format.eql?('html')
+ last_response.content_type.should =~ /text\/html/
+ elsif format.eql?('xml')
+ last_response.content_type.should =~ /application\/xml/
+ Nokogiri::XML(last_response.body).xpath('/api').size.should_not == 0
+ elsif format.eql?('json')
+ last_response.content_type.should =~ /application\/json/
+ JSON::parse(last_response.body).class.to_s.should == 'Hash'
+ end
+end
+
+When /^client accept this URI with parameters:$/ do |table|
+ p = table.raw.flatten.sort
+ @params ||= {}
+ @params[p.first.to_sym] = p.last
+end
+
+When /^client wants to get URI '(.*)'$/ do |uri|
+ @uri = uri
+end
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/storage_snapshots.feature
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/storage_snapshots.feature b/tests/deprecated/mock/storage_snapshots.feature
new file mode 100644
index 0000000..350a2a3
--- /dev/null
+++ b/tests/deprecated/mock/storage_snapshots.feature
@@ -0,0 +1,27 @@
+Feature: Accessing storage snapshots
+
+ Scenario: Listing available storage snapshots
+ Given URI /api/storage_snapshots exists
+ And authentification is required for this URI
+ When client access this URI
+ Then client should get root element 'storage_snapshots'
+ And this element contains some storage_snapshots
+ And each storage-volume should have:
+ | created |
+ | storage_volume |
+ And each image should have 'href' attribute with valid URL
+ And this URI should be available in XML, JSON, HTML format
+
+ Scenario: Get details about first volume
+ Given URI /api/storage_snapshots exists
+ And authentification is required for this URI
+ When client access this URI
+ Then client should get root element 'storage_snapshots'
+ And this element contains some storage_snapshots
+ When client want to show first storage_snapshot
+ Then client follow href attribute in first storage_snapshot
+ Then client should get this storage_snapshot
+ And this storage_snapshot should have:
+ | created |
+ | name |
+ | storage_volume |
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/storage_volumes.feature
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/storage_volumes.feature b/tests/deprecated/mock/storage_volumes.feature
new file mode 100644
index 0000000..be661ed
--- /dev/null
+++ b/tests/deprecated/mock/storage_volumes.feature
@@ -0,0 +1,44 @@
+Feature: Accessing storage volumes
+
+ # Sorry, but something weird happened with this scenarion.
+ # When I leave all 5 items in 'should have:' section I got:
+ #
+ # expected: ["capacity", "created", "device", "instance", "state"],
+ # got: ["capacity", "created"] (using ==)
+ #
+ # When I remove device, instance and state I got back
+ # ["capacity", "created", "device", "instance", "state"]
+ #
+ # Anyway this test isn't usefull, because storage volumes will be
+ # replaced with something 'better'.
+ #
+ # Scenario: Listing available storage volumes
+ # Given URI /api/storage_volumes exists
+ # And authentification is required for this URI
+ # When client access this URI
+ # Then client should get root element 'storage_volumes'
+ # And this element contains some storage_volumes
+ # And each storage_volume should have:
+ # | created |
+ # | capacity |
+ # | device |
+ # | instance |
+ # | state |
+ # And each image should have 'href' attribute with valid URL
+ # And this URI should be available in XML, JSON, HTML format
+
+ # Scenario: Get details about first volume
+ # Given URI /api/storage_volumes exists
+ # And authentification is required for this URI
+ # When client access this URI
+ # Then client should get root element 'storage_volumes'
+ # And this element contains some storage_volumes
+ # When client want to show first storage_volume
+ # Then client follow href attribute in first storage_volume
+ # Then client should get this storage_volume
+ # And this storage_volume should have:
+ # | created |
+ # | capacity |
+ # | mount |
+ # | realm_id |
+ # | state |
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/mock/support/env.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/mock/support/env.rb b/tests/deprecated/mock/support/env.rb
new file mode 100644
index 0000000..006cc98
--- /dev/null
+++ b/tests/deprecated/mock/support/env.rb
@@ -0,0 +1,29 @@
+require 'rubygems'
+require 'nokogiri'
+require 'rack/test'
+load File.join(File.dirname(__FILE__), '..', '..', '..', 'server', 'lib', 'deltacloud_rack.rb')
+
+Deltacloud::configure do |server|
+ server.root_url '/api'
+ server.version '1.0.0'
+ server.klass 'Deltacloud::API'
+end
+
+Deltacloud.require_frontend!(:deltacloud)
+
+CONFIG = {
+ :username => 'mockuser',
+ :password => 'mockpassword'
+}
+
+def output_xml
+ Nokogiri::XML(last_response.body)
+end
+
+def app
+ Rack::URLMap.new(
+ "/" => Deltacloud::API.new,
+ "/stylesheets" => Rack::Directory.new( "public/stylesheets" ),
+ "/javascripts" => Rack::Directory.new( "public/javascripts" )
+ )
+end
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/rhevm/hardware_profiles.feature
----------------------------------------------------------------------
diff --git a/tests/deprecated/rhevm/hardware_profiles.feature b/tests/deprecated/rhevm/hardware_profiles.feature
new file mode 100644
index 0000000..8fae42f
--- /dev/null
+++ b/tests/deprecated/rhevm/hardware_profiles.feature
@@ -0,0 +1,34 @@
+Feature: Working with RHEV-M hardware profiles
+
+ Scenario: Get list of available hardware profiles
+ Given I enter hardware_profiles collection
+ When I request HTML response
+ Then result should be valid HTML
+ When I request XML response
+ Then result should be valid XML
+ And result should contain 2 hardware_profiles
+ And name of these hardware_profiles should be
+ | SERVER |
+ | DESKTOP |
+ And range properties should be
+ | memory |
+ | cpu |
+ | storage |
+ And fixed properties should be
+ | architecture |
+
+
+ Scenario: Get details about SERVER hardware_profile
+ Given I enter hardware_profiles collection
+ And I choose hardware_profile with id SERVER
+ When I request HTML response
+ Then result should be valid HTML
+ When I request XML response
+ Then result should be valid XML
+ And result should contain one hardware_profile
+ And name of this hardware_profile should be SERVER
+ And range properties should have default, first and last values:
+ | memory | 512 | 512 | 32768 |
+ | cpu | 1 | 1 | 4 |
+ | storage | 1 | 1 | 102400 |
+ And range properties should have param for instance create operation
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/rhevm/images.feature
----------------------------------------------------------------------
diff --git a/tests/deprecated/rhevm/images.feature b/tests/deprecated/rhevm/images.feature
new file mode 100644
index 0000000..f52dba0
--- /dev/null
+++ b/tests/deprecated/rhevm/images.feature
@@ -0,0 +1,30 @@
+Feature: Working with RHEV-M images
+
+ Scenario: Get list of available images
+ Given I enter images collection
+ And I am authorized with my credentials
+ When I request HTML response
+ Then result should be valid HTML
+ When I request XML response
+ Then result should be valid XML
+ And result should contain 3 images
+ And name of these images should be
+ | Blank |
+ | DamnSmallLinux |
+ | Fedora14Live |
+ And each image should have properties set to
+ | architecture | x86_64 |
+ | owner_id | admin@rhevm.brq.redhat.com |
+ | state | OK |
+
+
+ Scenario: Get details about Fedora image
+ Given I enter images collection
+ And I am authorized with my credentials
+ And I choose image with id f7c71c82-ad3f-4b08-b741-db37a40429b4
+ When I request HTML response
+ Then result should be valid HTML
+ When I request XML response
+ Then result should be valid XML
+ And result should contain one image
+ And attribute id should be set to f7c71c82-ad3f-4b08-b741-db37a40429b4
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/rhevm/instances.feature
----------------------------------------------------------------------
diff --git a/tests/deprecated/rhevm/instances.feature b/tests/deprecated/rhevm/instances.feature
new file mode 100644
index 0000000..c9063c9
--- /dev/null
+++ b/tests/deprecated/rhevm/instances.feature
@@ -0,0 +1,66 @@
+Feature: Working with RHEV-M instances
+
+ Scenario: Get list of all instances
+ Given I enter instances collection
+ And I am authorized with my credentials
+ When I request HTML response
+ Then result should be valid HTML
+ When I request XML response
+ Then result should be valid XML
+ And result should contain 5 instances
+ And name of these instances should be
+ | apitest1 |
+ | bababab |
+ | test1 |
+ | test5 |
+ | TestPool-1 |
+ And each instance should have properties set to
+ | owner_id | admin@rhevm.brq.redhat.com |
+
+
+ Scenario: Get details about bababab instance
+ Given I enter instances collection
+ And I am authorized with my credentials
+ And I choose instance with id 5b2555c9-73f1-46dc-b379-a1f6dd382c86
+ When I request HTML response
+ Then result should be valid HTML
+ When I request XML response
+ Then result should be valid XML
+ And result should contain one instance
+ And attribute id should be set to 5b2555c9-73f1-46dc-b379-a1f6dd382c86
+ And instance should have launch_time set to valid time
+ And instance should be in RUNNING state
+ And instance should have defined actions
+ | reboot |
+ | stop |
+ And instance should have set of public_addresses
+ | 10.34.2.121 |
+ And instance should have linked valid
+ | realm |
+ | image |
+ | hardware_profile |
+
+ Scenario: Stop bababab instance
+ Given I enter instances collection
+ And I am authorized with my credentials
+ And I choose instance with id 5b2555c9-73f1-46dc-b379-a1f6dd382c86
+ When I request XML response
+ Then result should be valid XML
+ And result should contain one instance
+ And attribute id should be set to 5b2555c9-73f1-46dc-b379-a1f6dd382c86
+ Then I want to stop this instance
+ And I follow stop link in actions
+ And this instance should be in STOPPED state
+
+ Scenario: Start test1 instance
+ Given I enter instances collection
+ And I am authorized with my credentials
+ And I choose instance with id 5b602d1a-4db0-4ab0-8842-5f3dfb551ba6
+ When I request XML response
+ Then result should be valid XML
+ And result should contain one instance
+ And attribute id should be set to 5b602d1a-4db0-4ab0-8842-5f3dfb551ba6
+ Then I want to start this instance
+ And I follow start link in actions
+ And this instance should be in RUNNING state
+
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/rhevm/realms.feature
----------------------------------------------------------------------
diff --git a/tests/deprecated/rhevm/realms.feature b/tests/deprecated/rhevm/realms.feature
new file mode 100644
index 0000000..42a2abb
--- /dev/null
+++ b/tests/deprecated/rhevm/realms.feature
@@ -0,0 +1,25 @@
+Feature: Working with RHEV-M realms
+
+ Scenario: Get list of available realms
+ Given I enter realms collection
+ And I am authorized with my credentials
+ When I request HTML response
+ Then result should be valid HTML
+ When I request XML response
+ Then result should be valid XML
+ And result should contain 1 realms
+ And name of these realms should be
+ | Brno |
+ And each realm should have properties set to
+ | state | AVAILABLE |
+
+ Scenario: Get details about Brno realm
+ Given I enter realms collection
+ And I am authorized with my credentials
+ And I choose realm with id 0
+ When I request HTML response
+ Then result should be valid HTML
+ When I request XML response
+ Then result should be valid XML
+ And result should contain one realm
+ And attribute id should be set to 0
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/rhevm/step_definitions/hardware_profiles_steps.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/rhevm/step_definitions/hardware_profiles_steps.rb b/tests/deprecated/rhevm/step_definitions/hardware_profiles_steps.rb
new file mode 100644
index 0000000..f463260
--- /dev/null
+++ b/tests/deprecated/rhevm/step_definitions/hardware_profiles_steps.rb
@@ -0,0 +1,82 @@
+Given /^I enter ([A-Za-z_]+) collection$/ do |collection|
+ @current_collection = collection
+ @current_collection_url = "/api/%s" % collection.strip
+end
+
+Given /^I am authorized with my credentials$/ do
+ authorize CONFIG[:username], CONFIG[:password]
+end
+
+When /^I request ([A-Z]+) response$/ do |format|
+ if format == 'HTML'
+ header 'Accept', 'text/html'
+ end
+ if format == 'XML'
+ header 'Accept', 'application/xml'
+ end
+ get @current_collection_url, {}
+ last_response.status == 200
+end
+
+Then /^result should be valid ([A-Z]+)$/ do |format|
+ if format == 'HTML'
+ last_response.body.should =~ /^\<\!DOCTYPE html PUBLIC/
+ else
+ last_response.body.should_not =~ /^\<\!DOCTYPE html PUBLIC/
+ end
+end
+
+Then /^result should contain (\d+) ([A-Za-z_]+)$/ do |count, collection|
+ (xml/"/#{collection}/#{collection.gsub(/s$/, '')}").size.should == count.to_i
+end
+
+Then /^name of these ([A-Za-z_]+) should be$/ do |collection, table|
+ names = table.raw.flatten
+ (xml/"/#{collection}/#{collection.gsub(/s$/, '')}/name").each do |name|
+ names.delete(name.text)
+ end
+ names.should be_empty
+end
+
+Then /^([a-z]+) properties should be$/ do |type, table|
+ properties = table.raw.flatten
+ (xml/"hardware_profiles/hardware_profile/property[@kind='#{type}']").each do |name|
+ properties.delete(name[:name])
+ end
+ properties.should be_empty
+end
+
+Given /^I choose ([a-z_]+) with ([a-z_]+) ([0-9a-zA-Z_-]+)$/ do |collection, property, value|
+ @current_collection_url += "/%s" % value if property == 'id'
+end
+
+Then /^result should contain one ([A-Za-z_]+)$/ do |item|
+ (xml/"/#{item}").size.should == 1
+end
+
+Then /^([a-z_]+) of this ([A-Za-z_]+) should be ([A-Za-z_]+)$/ do |property, object, value|
+ (xml/"/#{object}/#{property}").text.strip.should == value.strip
+end
+
+Then /^range properties should have default, first and last values:$/ do |table|
+ table.raw.each do |property|
+ (xml/"/hardware_profile/property[@name='#{property[0]}']").first.should_not be_nil
+ (xml/"/hardware_profile/property[@name='#{property[0]}']").first[:value].should_not be_nil
+ (xml/"/hardware_profile/property[@name='#{property[0]}']").first[:value].should == property[1]
+ (xml/"/hardware_profile/property[@name='#{property[0]}']/range").first[:first].should_not be_nil
+ (xml/"/hardware_profile/property[@name='#{property[0]}']/range").first[:first].should == property[2]
+ (xml/"/hardware_profile/property[@name='#{property[0]}']/range").first[:last].should_not be_nil
+ (xml/"/hardware_profile/property[@name='#{property[0]}']/range").first[:last].should == property[3]
+ end
+end
+
+Then /^range properties should have param for instance create operation$/ do
+ (xml/"hardware_profile/*/param").length.should > 0
+ (xml/"/hardware_profile/*/param").each do |param|
+ param[:href].should_not be_nil
+ param[:method].should == "post"
+ param[:name].should_not be_nil
+ param[:operation].should == "create"
+ end
+end
+
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/rhevm/step_definitions/images_steps.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/rhevm/step_definitions/images_steps.rb b/tests/deprecated/rhevm/step_definitions/images_steps.rb
new file mode 100644
index 0000000..7a37a08
--- /dev/null
+++ b/tests/deprecated/rhevm/step_definitions/images_steps.rb
@@ -0,0 +1,12 @@
+Then /^each ([A-Za-z_]+) should have properties set to$/ do |object, table|
+ table.raw.each do |property|
+ (xml/"*/#{object}/#{property[0]}").each do |element|
+ element.text.should == property[1]
+ end
+ end
+end
+
+Then /^attribute ([a-z_]+) should be set to ([0-9A-Za-z_-]+)$/ do |property, value|
+ (xml/"/#{@current_collection.gsub(/s$/, '')}").first[property.to_sym] == value
+end
+
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/rhevm/step_definitions/instances_steps.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/rhevm/step_definitions/instances_steps.rb b/tests/deprecated/rhevm/step_definitions/instances_steps.rb
new file mode 100644
index 0000000..99a229e
--- /dev/null
+++ b/tests/deprecated/rhevm/step_definitions/instances_steps.rb
@@ -0,0 +1,55 @@
+Then /^instance should have launch_time set to valid time$/ do
+ time = (xml/'instance/launch_time').first.text
+ lambda { Date.parse(time) }.should_not raise_error
+end
+
+Then /^instance should be in ([A-Z]+) state$/ do |state|
+ (xml/'instance/state').first.text.should == state
+end
+
+Then /^instance should have defined actions$/ do |table|
+ actions = table.raw.flatten
+ (xml/'instance/actions/link').each do |action|
+ actions.delete(action[:rel])
+ end
+ actions.should be_empty
+end
+
+Then /^instance should have linked valid$/ do |table|
+ original_xml = xml.dup
+ table.raw.flatten.each do |link|
+ (original_xml/"instance/#{link}").should_not be_empty
+ (original_xml/"instance/#{link}").first[:method].should_not nil
+ (original_xml/"instance/#{link}").first[:href].should_not nil
+ get (original_xml/"instance/#{link}").first[:href], {}
+ last_response.status.should == 200
+ end
+end
+
+Then /^instance should have set of public_addresses$/ do |table|
+ addresses = table.raw.flatten
+ (xml/'instance/public_addresses/address').each do |address|
+ addresses.delete(address.text)
+ end
+ addresses.should be_empty
+end
+
+Then /^I want to ([a-z]+) this instance$/ do |action|
+ get @current_collection_url
+end
+
+Then /^I follow ([a-z]+) link in actions$/ do |action|
+ link = (xml/"instance/actions/link[@rel='#{action}']").first
+ @instance_id = (xml/'instance').first[:id]
+ if link[:method].eql?('post')
+ post link[:href]
+ end
+ if link[:method].eql?('delete')
+ delete link[:href]
+ end
+end
+
+Then /^this instance should be in ([A-Z]+) state$/ do |state|
+ last_response.status.should == 302
+end
+
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/rhevm/step_definitions/storage_volumes_steps.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/rhevm/step_definitions/storage_volumes_steps.rb b/tests/deprecated/rhevm/step_definitions/storage_volumes_steps.rb
new file mode 100644
index 0000000..258f6b5
--- /dev/null
+++ b/tests/deprecated/rhevm/step_definitions/storage_volumes_steps.rb
@@ -0,0 +1,4 @@
+Then /^([a-z_]+) should have ([a-z_]+) set to$/ do |item, property, table|
+ (xml/"/#{item}/#{property}").first.text.should == table.raw.flatten.first
+end
+
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/rhevm/storage_volumes.feature
----------------------------------------------------------------------
diff --git a/tests/deprecated/rhevm/storage_volumes.feature b/tests/deprecated/rhevm/storage_volumes.feature
new file mode 100644
index 0000000..a6b08f0
--- /dev/null
+++ b/tests/deprecated/rhevm/storage_volumes.feature
@@ -0,0 +1,28 @@
+Feature: Working with RHEV-M storage volumes
+
+ Scenario: Get list of available storage volumes
+ Given I enter storage_volumes collection
+ And I am authorized with my credentials
+ When I request HTML response
+ Then result should be valid HTML
+ When I request XML response
+ Then result should be valid XML
+ And result should contain 2 storage_volumes
+ And name of these storage_volumes should be
+ | isos |
+ | windows |
+
+ Scenario: Get details about windows storage volume
+ Given I enter storage_volumes collection
+ And I am authorized with my credentials
+ And I choose storage_volume with id abbc1a9e-4a91-416e-9f62-a180d88f3825
+ When I request HTML response
+ Then result should be valid HTML
+ When I request XML response
+ Then result should be valid XML
+ And result should contain one storage_volume
+ And attribute id should be set to abbc1a9e-4a91-416e-9f62-a180d88f3825
+ And storage_volume should have capacity set to
+ | 194560.0 |
+ And storage_volume should have device set to
+ | 192.168.1.10:/RHEV |
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/rhevm/support/env.rb
----------------------------------------------------------------------
diff --git a/tests/deprecated/rhevm/support/env.rb b/tests/deprecated/rhevm/support/env.rb
new file mode 100644
index 0000000..58a2a0f
--- /dev/null
+++ b/tests/deprecated/rhevm/support/env.rb
@@ -0,0 +1,65 @@
+SERVER_DIR = File::expand_path(File::join(File::dirname(__FILE__), "../../../server"))
+
+$top_srcdir = SERVER_DIR
+$:.unshift File::join($top_srcdir, 'lib')
+
+Dir.chdir(SERVER_DIR)
+
+require 'rubygems'
+require 'nokogiri'
+require 'deltacloud/server'
+require 'rack/test'
+
+Sinatra::Application.set :environment, :test
+Sinatra::Application.set :root, SERVER_DIR
+
+CONFIG = {
+ :username => 'admin@rhevm.brq.redhat.com',
+ :password => 'Redhat01'
+}
+
+ENV['RACK_ENV'] = 'test'
+
+
+World do
+
+ include Rack::Test::Methods
+
+ module Rack
+ module Test
+ class Session
+ def headers
+ @headers
+ end
+ end
+ end
+ class MockSession
+ def set_last_response(response)
+ @last_response = response
+ end
+ end
+ end
+
+ def app
+ @app = Rack::Builder.new do
+ set :environment => :development
+ set :loggining => true
+ set :raise_errors => true
+ set :show_exceptions => true
+ run Sinatra::Application
+ end
+ end
+
+ def xml
+ Nokogiri::XML(last_response.body)
+ end
+
+
+
+ Before do
+ unless @no_header
+ header 'Accept', 'application/xml;q=9'
+ end
+ end
+
+end
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/rhevm/support/fixtures/05cb6c3cbcd67f935e8a3c8e94cac942.fixture
----------------------------------------------------------------------
diff --git a/tests/deprecated/rhevm/support/fixtures/05cb6c3cbcd67f935e8a3c8e94cac942.fixture b/tests/deprecated/rhevm/support/fixtures/05cb6c3cbcd67f935e8a3c8e94cac942.fixture
new file mode 100644
index 0000000..d593efb
--- /dev/null
+++ b/tests/deprecated/rhevm/support/fixtures/05cb6c3cbcd67f935e8a3c8e94cac942.fixture
@@ -0,0 +1 @@
+["https://10.34.2.122:8443/rhevm-api-powershell/vms/5b602d1a-4db0-4ab0-8842-5f3dfb551ba6/start","post",{"status":200,"content_type":"application/xml","body":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<action id=\"bb4c133d-df99-4468-9633-74cdc70ae03d\" href=\"/rhevm-api-powershell/vms/5b602d1a-4db0-4ab0-8842-5f3dfb551ba6/start/bb4c133d-df99-4468-9633-74cdc70ae03d\">\n <status>FAILED</status>\n <link rel=\"parent\" href=\"/rhevm-api-powershell/vms/5b602d1a-4db0-4ab0-8842-5f3dfb551ba6\"/>\n <link rel=\"replay\" href=\"/rhevm-api-powershell/vms/5b602d1a-4db0-4ab0-8842-5f3dfb551ba6/start\"/>\n <fault>\n <reason>Powershell command "start-vm -vmid "5b602d1a-4db0-4ab0-8842-5f3dfb551ba6"" failed with Command 'start-vm -vmid "5b602d1a-4db0-4ab0-8842-5f3dfb551ba6"' exited with status=1</reason>\n <detail>com.redhat.rhevm.api.powershell.util.PowerShellException: Command 'start-vm -vmid "5b602d1a-4db0-4ab0-8842-5f3
dfb551ba6"' exited with status=1
\n\tat com.redhat.rhevm.api.powershell.util.PowerShellCmd.handleExitStatus(PowerShellCmd.java:252)
\n\tat com.redhat.rhevm.api.powershell.util.PowerShellCmd.complete(PowerShellCmd.java:247)
\n\tat com.redhat.rhevm.api.powershell.util.PowerShellCmd.runCommand(PowerShellCmd.java:278)
\n\tat com.redhat.rhevm.api.powershell.resource.CommandRunner.execute(CommandRunner.java:45)
\n\tat com.redhat.rhevm.api.common.resource.AbstractActionableResource$AbstractActionTask.run(AbstractActionableResource.java:170)
\n\tat com.redhat.rhevm.api.common.resource.AbstractActionableResource.perform(AbstractActionableResource.java:152)
\n\tat com.redhat.rhevm.api.common.resource.AbstractActionableResource.doAction(AbstractActionableResource.java:104)
\n\tat com.redhat.rhevm.api.powershell.resource.PowerShellVmResource.start(PowerShellVmResource.java:215)
\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
\n\tat
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
\n\tat java.lang.reflect.Method.invoke(Unknown Source)
\n\tat org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
\n\tat org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:252)
\n\tat org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:217)
\n\tat org.jboss.resteasy.core.ResourceLocator.invokeOnTargetObject(ResourceLocator.java:152)
\n\tat org.jboss.resteasy.core.ResourceLocator.invoke(ResourceLocator.java:92)
\n\tat org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:514)
\n\tat org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:491)
\n\tat org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:120)
\n\tat org.jboss.resteasy.plugins.server.servlet.ServletContai
nerDispatcher.service(ServletContainerDispatcher.java:200)
\n\tat org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:48)
\n\tat org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:43)
\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
\n\tat org.apache.catalina.valves.ErrorReportVa
lve.invoke(ErrorReportValve.java:117)
\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
\n\tat org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
\n\tat org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
\n\tat org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
\n\tat org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
\n\tat org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
\n\tat java.lang.Thread.run(Unknown Source)
\n</detail>\n </fault>\n</action>\n"}]
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/rhevm/support/fixtures/18ec06387f4e0a980cbbbbedeee85d71.fixture
----------------------------------------------------------------------
diff --git a/tests/deprecated/rhevm/support/fixtures/18ec06387f4e0a980cbbbbedeee85d71.fixture b/tests/deprecated/rhevm/support/fixtures/18ec06387f4e0a980cbbbbedeee85d71.fixture
new file mode 100644
index 0000000..5b28276
--- /dev/null
+++ b/tests/deprecated/rhevm/support/fixtures/18ec06387f4e0a980cbbbbedeee85d71.fixture
@@ -0,0 +1 @@
+["https://10.34.2.122:8443/rhevm-api-powershell/vms/f159bbf5-ecb5-40ad-acea-040096f916e7/nics","get",{"content_type":"application/xml","status":200,"body":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<nics>\n <nic id=\"4b31691a-d325-4907-86a7-b779a86cad7a\" href=\"/rhevm-api-powershell/vms/f159bbf5-ecb5-40ad-acea-040096f916e7/nics/4b31691a-d325-4907-86a7-b779a86cad7a\">\n <name>nic1</name>\n <vm id=\"f159bbf5-ecb5-40ad-acea-040096f916e7\" href=\"/rhevm-api-powershell/vms/f159bbf5-ecb5-40ad-acea-040096f916e7\"/>\n <network id=\"f4d6c117-afbb-4db2-bf82-c5d388b4b323\" href=\"/rhevm-api-powershell/networks/f4d6c117-afbb-4db2-bf82-c5d388b4b323\"/>\n <type>PV</type>\n <mac address=\"00:1a:4a:a8:01:13\"/>\n </nic>\n</nics>\n"}]
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/rhevm/support/fixtures/32c55dd505856722696e5923cbde59b7.fixture
----------------------------------------------------------------------
diff --git a/tests/deprecated/rhevm/support/fixtures/32c55dd505856722696e5923cbde59b7.fixture b/tests/deprecated/rhevm/support/fixtures/32c55dd505856722696e5923cbde59b7.fixture
new file mode 100644
index 0000000..0250d49
--- /dev/null
+++ b/tests/deprecated/rhevm/support/fixtures/32c55dd505856722696e5923cbde59b7.fixture
@@ -0,0 +1 @@
+["https://10.34.2.122:8443/rhevm-api-powershell/vms/080d18f9-6832-4dca-9efb-63573aef7c12/nics","get",{"content_type":"application/xml","status":200,"body":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<nics>\n <nic id=\"838bad06-bdeb-4c0c-a310-f42ca1254c69\" href=\"/rhevm-api-powershell/vms/080d18f9-6832-4dca-9efb-63573aef7c12/nics/838bad06-bdeb-4c0c-a310-f42ca1254c69\">\n <name>nic1</name>\n <vm id=\"080d18f9-6832-4dca-9efb-63573aef7c12\" href=\"/rhevm-api-powershell/vms/080d18f9-6832-4dca-9efb-63573aef7c12\"/>\n <network id=\"f4d6c117-afbb-4db2-bf82-c5d388b4b323\" href=\"/rhevm-api-powershell/networks/f4d6c117-afbb-4db2-bf82-c5d388b4b323\"/>\n <type>PV</type>\n <mac address=\"00:1a:4a:a8:01:1c\"/>\n </nic>\n</nics>\n"}]
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/a53f9b4b/tests/deprecated/rhevm/support/fixtures/530d1fad492a210b11e64a6714645727.fixture
----------------------------------------------------------------------
diff --git a/tests/deprecated/rhevm/support/fixtures/530d1fad492a210b11e64a6714645727.fixture b/tests/deprecated/rhevm/support/fixtures/530d1fad492a210b11e64a6714645727.fixture
new file mode 100644
index 0000000..d78d595
--- /dev/null
+++ b/tests/deprecated/rhevm/support/fixtures/530d1fad492a210b11e64a6714645727.fixture
@@ -0,0 +1 @@
+["https://10.34.2.122:8443/rhevm-api-powershell/vms/5b2555c9-73f1-46dc-b379-a1f6dd382c86/suspend","post",{"content_type":"application/xml","status":200,"body":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<action id=\"87a841ce-6132-45c9-bfa3-768299e7ab26\" href=\"/rhevm-api-powershell/vms/5b2555c9-73f1-46dc-b379-a1f6dd382c86/suspend/87a841ce-6132-45c9-bfa3-768299e7ab26\">\n <status>COMPLETE</status>\n <link rel=\"parent\" href=\"/rhevm-api-powershell/vms/5b2555c9-73f1-46dc-b379-a1f6dd382c86\"/>\n <link rel=\"replay\" href=\"/rhevm-api-powershell/vms/5b2555c9-73f1-46dc-b379-a1f6dd382c86/suspend\"/>\n</action>\n"}]