You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by de...@apache.org on 2016/02/19 16:33:14 UTC

[04/35] jclouds git commit: JCLOUDS-702: JCloud ProfitBricks provider - Server & Image API

http://git-wip-us.apache.org/repos/asf/jclouds/blob/ee24ddb2/providers/profitbricks/src/test/resources/server/server-delete.xml
----------------------------------------------------------------------
diff --git a/providers/profitbricks/src/test/resources/server/server-delete.xml b/providers/profitbricks/src/test/resources/server/server-delete.xml
new file mode 100644
index 0000000..1b18bd8
--- /dev/null
+++ b/providers/profitbricks/src/test/resources/server/server-delete.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.api.profitbricks.com/">
+    <soapenv:Header/>
+    <soapenv:Body>
+        <ws:deleteServerResponse>
+            <return>
+                <requestId>102459</requestId>
+                <dataCenterId>aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee</dataCenterId>
+                <dataCenterVersion>4</dataCenterVersion>
+            </return>
+        </ws:deleteServerResponse>
+    </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jclouds/blob/ee24ddb2/providers/profitbricks/src/test/resources/server/server-reset.xml
----------------------------------------------------------------------
diff --git a/providers/profitbricks/src/test/resources/server/server-reset.xml b/providers/profitbricks/src/test/resources/server/server-reset.xml
new file mode 100644
index 0000000..db8d498
--- /dev/null
+++ b/providers/profitbricks/src/test/resources/server/server-reset.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.api.profitbricks.com/">
+    <soapenv:Header/>
+    <soapenv:Body>
+        <ws:resetServerResponse>
+            <return>
+                <requestId>123456</requestId>
+            </return>
+        </ws:resetServerResponse>
+    </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jclouds/blob/ee24ddb2/providers/profitbricks/src/test/resources/server/server-start.xml
----------------------------------------------------------------------
diff --git a/providers/profitbricks/src/test/resources/server/server-start.xml b/providers/profitbricks/src/test/resources/server/server-start.xml
new file mode 100644
index 0000000..a34ce84
--- /dev/null
+++ b/providers/profitbricks/src/test/resources/server/server-start.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.api.profitbricks.com/">
+    <soapenv:Header/>
+    <soapenv:Body>
+        <ws:startServerResponse>
+            <return>
+                <requestId>123456</requestId>
+            </return>
+        </ws:startServerResponse>
+    </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jclouds/blob/ee24ddb2/providers/profitbricks/src/test/resources/server/server-stop.xml
----------------------------------------------------------------------
diff --git a/providers/profitbricks/src/test/resources/server/server-stop.xml b/providers/profitbricks/src/test/resources/server/server-stop.xml
new file mode 100644
index 0000000..4f5bce4
--- /dev/null
+++ b/providers/profitbricks/src/test/resources/server/server-stop.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.api.profitbricks.com/">
+    <soapenv:Header/>
+    <soapenv:Body>
+        <ws:stopServerResponse>
+            <return>
+                <requestId>123456</requestId>
+            </return>
+        </ws:stopServerResponse>
+    </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jclouds/blob/ee24ddb2/providers/profitbricks/src/test/resources/server/server-update.xml
----------------------------------------------------------------------
diff --git a/providers/profitbricks/src/test/resources/server/server-update.xml b/providers/profitbricks/src/test/resources/server/server-update.xml
new file mode 100644
index 0000000..fb95440
--- /dev/null
+++ b/providers/profitbricks/src/test/resources/server/server-update.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.api.profitbricks.com/">
+    <soapenv:Header/>
+    <soapenv:Body>
+        <ws:updateServerResponse>
+            <return>
+                <requestId>102458</requestId>
+                <dataCenterId>aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee</dataCenterId>
+                <dataCenterVersion>3</dataCenterVersion>
+            </return>
+        </ws:updateServerResponse>
+    </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jclouds/blob/ee24ddb2/providers/profitbricks/src/test/resources/server/server.xml
----------------------------------------------------------------------
diff --git a/providers/profitbricks/src/test/resources/server/server.xml b/providers/profitbricks/src/test/resources/server/server.xml
new file mode 100644
index 0000000..8fac75d
--- /dev/null
+++ b/providers/profitbricks/src/test/resources/server/server.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
+    <S:Body>
+        <ns2:getServerResponse xmlns:ns2="http://ws.api.profitbricks.com/">
+            <return>
+                <requestId>16366014</requestId>
+                <dataCenterId>aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee</dataCenterId>
+                <dataCenterVersion>10</dataCenterVersion>
+                <serverId>qwertyui-qwer-qwer-qwer-qwertyyuiiop</serverId>
+                <serverName>facebook-node</serverName>
+                <cores>4</cores>
+                <ram>4096</ram>
+                <internetAccess>true</internetAccess>
+                <ips>173.252.120.6</ips>
+                <connectedStorages>
+                    <bootDevice>true</bootDevice>
+                    <busType>VIRTIO</busType>
+                    <deviceNumber>1</deviceNumber>
+                    <size>40</size>
+                    <storageId>qswdefrg-qaws-qaws-defe-rgrgdsvcxbrh</storageId>
+                    <storageName>facebook-storage</storageName>
+                </connectedStorages>
+                <nics>
+                    <dataCenterId>aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee</dataCenterId>
+                    <dataCenterVersion>10</dataCenterVersion>
+                    <nicId>qwqwqwqw-wewe-erer-rtrt-tytytytytyty</nicId>
+                    <lanId>1</lanId>
+                    <internetAccess>true</internetAccess>
+                    <serverId>qwertyui-qwer-qwer-qwer-qwertyyuiiop</serverId>
+                    <ips>173.252.120.6</ips>
+                    <macAddress>02:01:09:cd:f0:b0</macAddress>
+                    <firewall>
+                        <active>false</active>
+                        <firewallId>wqwqwqwq-ewew-rere-trtr-ytytytytytyt</firewallId>
+                        <nicId>qwqwqwqw-wewe-erer-rtrt-tytytytytyty</nicId>
+                        <provisioningState>AVAILABLE</provisioningState>
+                    </firewall>
+                    <dhcpActive>true</dhcpActive>
+                    <gatewayIp>173.252.120.1</gatewayIp>
+                    <provisioningState>AVAILABLE</provisioningState>
+                </nics>
+                <provisioningState>AVAILABLE</provisioningState>
+                <virtualMachineState>RUNNING</virtualMachineState>
+                <creationTime>2014-12-04T07:09:23.138Z</creationTime>
+                <lastModificationTime>2014-12-12T03:08:35.629Z</lastModificationTime>
+                <osType>LINUX</osType>
+                <availabilityZone>AUTO</availabilityZone>
+                <cpuHotPlug>true</cpuHotPlug>
+                <ramHotPlug>true</ramHotPlug>
+                <nicHotPlug>true</nicHotPlug>
+                <nicHotUnPlug>true</nicHotUnPlug>
+                <discVirtioHotPlug>true</discVirtioHotPlug>
+                <discVirtioHotUnPlug>true</discVirtioHotUnPlug>
+            </return>
+        </ns2:getServerResponse>
+    </S:Body>
+</S:Envelope>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jclouds/blob/ee24ddb2/providers/profitbricks/src/test/resources/server/servers.xml
----------------------------------------------------------------------
diff --git a/providers/profitbricks/src/test/resources/server/servers.xml b/providers/profitbricks/src/test/resources/server/servers.xml
new file mode 100644
index 0000000..4a74b5d
--- /dev/null
+++ b/providers/profitbricks/src/test/resources/server/servers.xml
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
+    <S:Body>
+        <ns2:getAllServersResponse xmlns:ns2="http://ws.api.profitbricks.com/">
+            <return>
+                <dataCenterId>aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee</dataCenterId>
+                <dataCenterVersion>10</dataCenterVersion>
+                <serverId>qwertyui-qwer-qwer-qwer-qwertyyuiiop</serverId>
+                <serverName>facebook-node</serverName>
+                <cores>4</cores>
+                <ram>4096</ram>
+                <internetAccess>true</internetAccess>
+                <ips>173.252.120.6</ips>
+                <connectedStorages>
+                    <bootDevice>true</bootDevice>
+                    <busType>VIRTIO</busType>
+                    <deviceNumber>1</deviceNumber>
+                    <size>40</size>
+                    <storageId>qswdefrg-qaws-qaws-defe-rgrgdsvcxbrh</storageId>
+                    <storageName>facebook-storage</storageName>
+                </connectedStorages>
+                <nics>
+                    <dataCenterId>aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee</dataCenterId>
+                    <dataCenterVersion>10</dataCenterVersion>
+                    <nicId>qwqwqwqw-wewe-erer-rtrt-tytytytytyty</nicId>
+                    <lanId>1</lanId>
+                    <internetAccess>true</internetAccess>
+                    <serverId>qwertyui-qwer-qwer-qwer-qwertyyuiiop</serverId>
+                    <ips>173.252.120.6</ips>
+                    <macAddress>02:01:09:cd:f0:b0</macAddress>
+                    <firewall>
+                        <active>false</active>
+                        <firewallId>wqwqwqwq-ewew-rere-trtr-ytytytytytyt</firewallId>
+                        <nicId>qwqwqwqw-wewe-erer-rtrt-tytytytytyty</nicId>
+                        <provisioningState>AVAILABLE</provisioningState>
+                    </firewall>
+                    <dhcpActive>true</dhcpActive>
+                    <gatewayIp>173.252.120.1</gatewayIp>
+                    <provisioningState>AVAILABLE</provisioningState>
+                </nics>
+                <provisioningState>AVAILABLE</provisioningState>
+                <virtualMachineState>RUNNING</virtualMachineState>
+                <creationTime>2014-12-04T07:09:23.138Z</creationTime>
+                <lastModificationTime>2014-12-12T03:08:35.629Z</lastModificationTime>
+                <osType>LINUX</osType>
+                <availabilityZone>AUTO</availabilityZone>
+                <cpuHotPlug>true</cpuHotPlug>
+                <ramHotPlug>true</ramHotPlug>
+                <nicHotPlug>true</nicHotPlug>
+                <nicHotUnPlug>true</nicHotUnPlug>
+                <discVirtioHotPlug>true</discVirtioHotPlug>
+                <discVirtioHotUnPlug>true</discVirtioHotUnPlug>
+            </return>
+            <return>
+                <dataCenterId>qqqqqqqq-wwww-rrrr-tttt-yyyyyyyyyyyy</dataCenterId>
+                <dataCenterVersion>238</dataCenterVersion>
+                <serverId>asdfghjk-asdf-asdf-asdf-asdfghjklkjl</serverId>
+                <serverName>google-node</serverName>
+                <cores>1</cores>
+                <ram>1024</ram>
+                <internetAccess>false</internetAccess>
+                <ips>202.69.181.241</ips>
+                <connectedStorages>
+                    <bootDevice>true</bootDevice>
+                    <busType>VIRTIO</busType>
+                    <deviceNumber>1</deviceNumber>
+                    <size>5</size>
+                    <storageId>asfasfle-f23n-cu89-klfr-njkdsvwllkfa</storageId>
+                    <storageName>google-disk</storageName>
+                </connectedStorages>
+                <nics>
+                    <dataCenterId>qqqqqqqq-wwww-rrrr-tttt-yyyyyyyyyyyy</dataCenterId>
+                    <dataCenterVersion>238</dataCenterVersion>
+                    <nicId>mkl45h5e-sdgb-h6rh-235r-rfweshdfhreh</nicId>
+                    <lanId>3</lanId>
+                    <internetAccess>false</internetAccess>
+                    <serverId>asdfghjk-asdf-asdf-asdf-asdfghjklkjl</serverId>
+                    <ips>202.69.181.241</ips>
+                    <macAddress>02:01:9e:5e:35:1e</macAddress>
+                    <firewall>
+                        <active>false</active>
+                        <firewallId>cvvdsgbd-sdgj-eger-h56j-wet43gvsgeg4</firewallId>
+                        <nicId>mkl45h5e-sdgb-h6rh-235r-rfweshdfhreh</nicId>
+                        <provisioningState>INPROCESS</provisioningState>
+                    </firewall>
+                    <dhcpActive>false</dhcpActive>
+                    <provisioningState>AVAILABLE</provisioningState>
+                </nics>
+                <provisioningState>AVAILABLE</provisioningState>
+                <virtualMachineState>RUNNING</virtualMachineState>
+                <creationTime>2014-11-12T07:01:00.441Z</creationTime>
+                <lastModificationTime>2014-11-12T07:01:00.441Z</lastModificationTime>
+                <osType>LINUX</osType>
+                <availabilityZone>AUTO</availabilityZone>
+                <cpuHotPlug>true</cpuHotPlug>
+                <ramHotPlug>true</ramHotPlug>
+                <nicHotPlug>true</nicHotPlug>
+                <nicHotUnPlug>true</nicHotUnPlug>
+                <discVirtioHotPlug>true</discVirtioHotPlug>
+                <discVirtioHotUnPlug>true</discVirtioHotUnPlug>
+            </return>
+        </ns2:getAllServersResponse>
+    </S:Body>
+</S:Envelope>
\ No newline at end of file