completed ntt tests...starting on rst docs
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/c3091843 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/c3091843 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/c3091843 Branch: refs/heads/trunk Commit: c3091843295b6df7f978e3ab62eaac7bb4e8c387 Parents: bc64b1f Author: mitch <[email protected]> Authored: Mon Oct 15 17:04:56 2018 -0400 Committer: mitch <[email protected]> Committed: Mon Oct 15 17:04:56 2018 -0400 ---------------------------------------------------------------------- libcloud/common/nttcis.py | 2 +- libcloud/compute/drivers/nttcis.py | 19 +- .../test/compute/fixtures/nttcis/audit_log.csv | 25 + .../fixtures/nttcis/change_disk_size.xml | 6 + .../fixtures/nttcis/change_disk_speed.xml | 6 + .../change_nic_networkadapter_response.xml | 7 + .../nttcis/datacenter_snapshotWindows.xml | 8 + .../nttcis/deploy_customised_server.xml | 7 + .../fixtures/nttcis/detailed_usage_report.csv | 42 + .../nttcis/exchange_nic_vlans_response.xml | 8 + .../fixtures/nttcis/image_customerImage.xml | 57 + ...age_2ffa36c8_1848_49eb_b4fa_9d908775f68c.xml | 19 + ...age_5234e5c7_01de_4411_8b6e_baeb8d91cf5d.xml | 19 + .../compute/fixtures/nttcis/image_osImage.xml | 40 + ...age_6b4fb0c7_a57b_4f58_b59c_9958f94f971a.xml | 13 + .../nttcis/image_osImage_BAD_REQUEST.xml | 6 + ...age_c14b1a46_2428_44c1_9c1a_b20e6418d08c.xml | 14 + .../fixtures/nttcis/import_image_response.xml | 8 + .../nttcis/infrastructure_datacenter.xml | 188 ++ .../nttcis/infrastructure_datacenter_NA9.xml | 54 + .../fixtures/nttcis/ip_address_list_create.xml | 9 + .../fixtures/nttcis/ip_address_list_delete.xml | 10 + .../fixtures/nttcis/ip_address_list_edit.xml | 10 + .../fixtures/nttcis/ip_address_lists.xml | 46 + .../nttcis/ip_address_lists_FILTERBYNAME.xml | 14 + .../nttcis/network_addPublicIpBlock.xml | 7 + .../nttcis/network_createFirewallRule.xml | 8 + .../fixtures/nttcis/network_createNatRule.xml | 9 + .../nttcis/network_deleteFirewallRule.xml | 8 + .../fixtures/nttcis/network_deleteNatRule.xml | 8 + .../nttcis/network_deleteNetworkDomain.xml | 8 + .../fixtures/nttcis/network_deleteVlan.xml | 8 + .../nttcis/network_deployNetworkDomain.xml | 8 + .../fixtures/nttcis/network_deployVlan.xml | 9 + .../nttcis/network_editFirewallRule.xml | 8 + .../nttcis/network_editNetworkDomain.xml | 7 + .../fixtures/nttcis/network_editVlan.xml | 7 + .../fixtures/nttcis/network_expandVlan.xml | 8 + .../fixtures/nttcis/network_firewallRule.xml | 35 + ...ule_d0a20f59_77b9_4f28_a63b_e58496b73a6c.xml | 18 + .../compute/fixtures/nttcis/network_natRule.xml | 21 + ...ule_2187a636_7ebb_49a1_a2ff_5d617f496dce.xml | 9 + .../fixtures/nttcis/network_networkDomain.xml | 43 + ...ain_8cdfd607_f429_4df6_9352_162cfc0891be.xml | 9 + .../fixtures/nttcis/network_publicIpBlock.xml | 10 + ...ock_4487241a_f0ca_11e3_9315_d4bed9b167ba.xml | 8 + ...ock_9945dc4a_bdce_11e4_8c14_b8ca3a5d9ef8.xml | 8 + .../nttcis/network_removePublicIpBlock.xml | 8 + .../compute/fixtures/nttcis/network_vlan.xml | 25 + ...lan_0e56433f_d808_4669_821d_812769517ff8.xml | 14 + .../fixtures/nttcis/port_list_create.xml | 9 + .../fixtures/nttcis/port_list_delete.xml | 10 + .../compute/fixtures/nttcis/port_list_edit.xml | 8 + .../compute/fixtures/nttcis/port_list_get.xml | 15 + .../compute/fixtures/nttcis/port_list_lists.xml | 38 + .../fixtures/nttcis/report_usageMonitoring.xml | 8 + .../fixtures/nttcis/server_GetServer.xml | 42 + .../compute/fixtures/nttcis/server_addDisk.xml | 9 + .../compute/fixtures/nttcis/server_addNic.xml | 9 + .../nttcis/server_antiAffinityRule_list.xml | 42 + .../server_antiAffinityRule_list_PAGINATED.xml | 42 + .../server_changeServerMonitoringPlan.xml | 8 + .../fixtures/nttcis/server_cleanServer.xml | 9 + .../fixtures/nttcis/server_clone_response.xml | 9 + .../nttcis/server_createAntiAffinityRule.xml | 6 + .../server_createAntiAffinityRule_FAIL.xml | 8 + .../nttcis/server_deleteAntiAffinityRule.xml | 7 + .../server_deleteAntiAffinityRule_FAIL.xml | 8 + .../fixtures/nttcis/server_deleteServer.xml | 9 + .../nttcis/server_deleteServer_RESOURCEBUSY.xml | 8 + .../fixtures/nttcis/server_deployServer.xml | 8 + .../nttcis/server_disableServerMonitoring.xml | 8 + .../nttcis/server_editServerMetadata.xml | 6 + .../nttcis/server_enableServerMonitoring.xml | 8 + .../fixtures/nttcis/server_powerOffServer.xml | 8 + .../nttcis/server_powerOffServer_INPROGRESS.xml | 8 + .../fixtures/nttcis/server_rebootServer.xml | 8 + .../nttcis/server_rebootServer_RESOURCEBUSY.xml | 7 + .../nttcis/server_reconfigureServer.xml | 5 + .../fixtures/nttcis/server_removeDisk.xml | 6 + .../fixtures/nttcis/server_removeNic.xml | 9 + .../fixtures/nttcis/server_resetServer.xml | 8 + .../compute/fixtures/nttcis/server_server.xml | 207 ++ .../fixtures/nttcis/server_server_NA3.xml | 56 + ...ver_e75ead52_692f_4314_8725_c8a4f4d13a87.xml | 30 + .../fixtures/nttcis/server_server_paginated.xml | 58 + .../nttcis/server_server_paginated_empty.xml | 1 + .../fixtures/nttcis/server_shutdownServer.xml | 8 + .../nttcis/server_shutdownServer_INPROGRESS.xml | 8 + .../fixtures/nttcis/server_startServer.xml | 8 + .../nttcis/server_startServer_INPROGRESS.xml | 8 + .../nttcis/server_updateVmwareTools.xml | 8 + .../fixtures/nttcis/summary_usage_report.csv | 13 + .../compute/fixtures/nttcis/tag_applyTags.xml | 6 + .../nttcis/tag_applyTags_BADREQUEST.xml | 6 + .../fixtures/nttcis/tag_createTagKey.xml | 7 + .../nttcis/tag_createTagKey_BADREQUEST.xml | 6 + .../fixtures/nttcis/tag_deleteTagKey.xml | 6 + .../nttcis/tag_deleteTagKey_BADREQUEST.xml | 6 + .../compute/fixtures/nttcis/tag_editTagKey.xml | 6 + .../nttcis/tag_editTagKey_BADREQUEST.xml | 6 + .../compute/fixtures/nttcis/tag_removeTag.xml | 6 + .../nttcis/tag_removeTag_BADREQUEST.xml | 6 + ...Key_5ab77f5f_5aa9_426f_8459_4eab34e03d54.xml | 6 + ...f_5aa9_426f_8459_4eab34e03d54_BADREQUEST.xml | 6 + .../compute/fixtures/nttcis/tag_tagKey_list.xml | 19 + .../fixtures/nttcis/tag_tagKey_list_SINGLE.xml | 8 + .../compute/fixtures/nttcis/tag_tag_list.xml | 36 + libcloud/test/compute/test_nttcis.py | 2898 ++++++++++++++++++ libcloud/utils/xml.py | 1 - 110 files changed, 4768 insertions(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/common/nttcis.py ---------------------------------------------------------------------- diff --git a/libcloud/common/nttcis.py b/libcloud/common/nttcis.py index 4c2977a..df85ea5 100644 --- a/libcloud/common/nttcis.py +++ b/libcloud/common/nttcis.py @@ -271,7 +271,7 @@ API_ENDPOINTS = { } # Default API end-point for the base connection class. -DEFAULT_REGION = 'dd-na' +DEFAULT_REGION = 'na' BAD_CODE_XML_ELEMENTS = ( ('responseCode', SERVER_NS), http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/compute/drivers/nttcis.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/nttcis.py b/libcloud/compute/drivers/nttcis.py index 9290295..62ec42b 100644 --- a/libcloud/compute/drivers/nttcis.py +++ b/libcloud/compute/drivers/nttcis.py @@ -322,7 +322,7 @@ class NttCisNodeDriver(NodeDriver): >>> pprint(node) - Create Node in MCP2 Data Center + Create Node in MCP2 Data CenterF >>> from pprint import pprint >>> from libcloud.compute.types import Provider @@ -771,11 +771,8 @@ class NttCisNodeDriver(NodeDriver): this state :type ex_state: ``str`` - :keyword ex_network: Filters the node list to nodes in this network - :type ex_network: :class:`NttCisNetwork` or ``str`` - - :keyword ex_network_domain: Filters the node list to nodes in this - network domain + :keyword ex_network_domain: Filters the node list to nodes in this + network domain :type ex_network_domain: :class:`NttCisNetworkDomain` or ``str`` @@ -2296,13 +2293,13 @@ class NttCisNodeDriver(NodeDriver): if source_addr.any_ip: source_ip.set('address', 'ANY') else: - source_ip.set('address', source.ip_address) - if source.ip_prefix_size is not None: + source_ip.set('address', source_addr.ip_address) + if source_addr.ip_prefix_size is not None: source_ip.set('prefixSize', - str(source.ip_prefix_size)) + str(source_addr.ip_prefix_size)) if source_addr.port_list_id is not None: source_port = ET.SubElement(source, 'portListId') - source_port.text = source.port_list_id + source_port.text = source_addr.port_list_id else: if source_addr.port_begin is not None: source_port = ET.SubElement(source, 'port') @@ -2321,7 +2318,7 @@ class NttCisNodeDriver(NodeDriver): else: dest_ip.set('address', destination.ip_address) if destination.ip_prefix_size is not None: - dest_ip.set('prefixSize', destination.ip_prefix_size) + dest_ip.set('prefixSizfe', destination.ip_prefix_size) if destination.port_list_id is not None: dest_port = ET.SubElement(dest, 'portListId') dest_port.text = destination.port_list_id http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/audit_log.csv ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/audit_log.csv b/libcloud/test/compute/fixtures/nttcis/audit_log.csv new file mode 100644 index 0000000..6410373 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/audit_log.csv @@ -0,0 +1,25 @@ +UUID,Time,Create User,Department,Customer Defined 1,Customer Defined 2,Type,Name,Action,Details,Response Code +af779880-0531-45d3-be56-df41c459aa09,2016-09-11 23:59:37,ashaw_plat,,,,SERVER,ST2-DEV[10-0-0-5_8bf3420c-73cf-45ab-a923-a461ad87daf7],Deploy Server,ATTEMPT: DEPLOY_SERVER 'ST2-DEV[10-0-0-5_8bf3420c-73cf-45ab-a923-a461ad87daf7]', +d127748c-948f-41f0-b6a7-c0b5a2438bd6,2016-09-12 00:06:00,OEC_SYSTEM,,,,SERVER,ST2-DEV[10-0-0-5_8bf3420c-73cf-45ab-a923-a461ad87daf7],Deploy Server,DEPLOY_SERVER 'ST2-DEV[10-0-0-5_8bf3420c-73cf-45ab-a923-a461ad87daf7]',OK +85f978b2-0e2a-4ba3-a6ce-7567e329e842,2016-09-12 00:22:48,ashaw_plat,,,,SERVER,ST2-DEV[10-0-0-5_8bf3420c-73cf-45ab-a923-a461ad87daf7],Start Server,ATTEMPT: START_SERVER 'ST2-DEV[10-0-0-5_8bf3420c-73cf-45ab-a923-a461ad87daf7]', +afc67c82-381a-4ba1-b25e-2285a916d513,2016-09-12 00:23:00,OEC_SYSTEM,,,,SERVER,ST2-DEV[10-0-0-5_8bf3420c-73cf-45ab-a923-a461ad87daf7],Start Server,START_SERVER 'ST2-DEV[10-0-0-5_8bf3420c-73cf-45ab-a923-a461ad87daf7]',OK +7378b530-9d37-4339-88d5-19428431fe07,2016-09-12 05:10:47,ashaw_plat,,,,IP_BLOCK,168.128.37.196,Add IP Block,ATTEMPT: ADD_PUBLIC_IP_BLOCK '168.128.37.196', +f978f690-13e8-4d7d-8ce3-1ca7e232df69,2016-09-12 05:10:48,ashaw_plat,,,,IP_BLOCK,168.128.37.196,Add IP Block,ADD_PUBLIC_IP_BLOCK '168.128.37.196',OK +822b7483-bb59-4659-9ab1-7a1ad25bacd7,2016-09-12 05:10:58,ashaw_plat,,,,NAT_RULE,10.0.0.5,Create NAT Rule,ATTEMPT: CREATE_NAT_RULE '10.0.0.5'(requestId:au_20160912T151058137+1000_07422779-ec2a-448e-81f4-87a333b79f3c), +2f29ebd2-2ee0-463f-9a46-2e62f09fcc74,2016-09-12 05:10:59,ashaw_plat,,,,NAT_RULE,10.0.0.5,Create NAT Rule,CREATE_NAT_RULE '10.0.0.5'(requestId:au_20160912T151058137+1000_07422779-ec2a-448e-81f4-87a333b79f3c),OK +503aa140-6da9-4fbe-b94e-b118fc5a473a,2016-09-13 04:08:55,mgreenwood_plat,,,,NAT_RULE,10.208.136.11,Add NAT Rule,ATTEMPT: ADD_NAT_RULE '10.208.136.11', +bb73bb95-a20c-46f8-9962-3862496793ff,2016-09-13 04:09:00,OEC_SYSTEM,,,,NAT_RULE,10.208.136.11,Add NAT Rule,ADD_NAT_RULE '10.208.136.11',OK +276ab194-ffb3-4516-920d-96cc068dfcfa,2016-09-13 04:11:54,mgreenwood_plat,,,,NAT_RULE,10.208.136.11,Delete NAT Rule,ATTEMPT: DELETE_NAT_RULE '10.208.136.11', +3bb0e6ad-48e1-4268-9423-4cd680edc404,2016-09-13 04:11:57,OEC_SYSTEM,,,,NAT_RULE,10.208.136.11,Delete NAT Rule,DELETE_NAT_RULE '10.208.136.11',OK +f9f2684a-796c-4f28-9448-949900f8f4fb,2016-09-13 04:16:22,mgreenwood_plat,,,,NAT_RULE,10.208.136.11,Add NAT Rule,ATTEMPT: ADD_NAT_RULE '10.208.136.11', +0bfbe81f-35fc-445e-a33e-f12a46c25115,2016-09-13 04:16:27,OEC_SYSTEM,,,,NAT_RULE,10.208.136.11,Add NAT Rule,ADD_NAT_RULE '10.208.136.11',OK +629da5f4-7fdc-4bc6-a408-66ab96f539c0,2016-09-13 04:27:19,mgreenwood_plat,,,,ACL_RULE,AD LDAP Port - For Testing,Add Acl Rule,ATTEMPT: Add Acl Rule AD LDAP Port - For Testing to network Aperture, +ecee1409-ce7d-496d-a41b-67662d884598,2016-09-13 04:27:22,mgreenwood_plat,,,,ACL_RULE,AD LDAP Port - For Testing,Add Acl Rule,Add Acl Rule AD LDAP Port - For Testing to network Aperture,OK +f6e84763-b911-4189-bf69-138e9a23de7a,2016-09-14 03:05:15,aakbar_plat,,,,SERVER,CaaS-QA[10-209-120-14_e772c8c0-ee55-4e8f-82f9-22576b494a62],Get Console Access Session Token,GENERATE_CONSOLE_ACCESS_SESSION_TOKEN 'CaaS-QA[10-209-120-14_e772c8c0-ee55-4e8f-82f9-22576b494a62]',OK +ef43056e-1cd0-48bf-80f6-12a4cad8e1c6,2016-09-14 03:05:24,aakbar_plat,,,,SERVER,CaaS-QA[10-209-120-14_e772c8c0-ee55-4e8f-82f9-22576b494a62],Get Console Access Session Token,GENERATE_CONSOLE_ACCESS_SESSION_TOKEN 'CaaS-QA[10-209-120-14_e772c8c0-ee55-4e8f-82f9-22576b494a62]',OK +13f38aa4-a86c-45c2-909f-2a6b96c0c761,2016-09-14 03:13:21,aakbar_plat,,,,SERVER,CaaS-CI[10-209-120-16_ce81b50b-70d4-44ae-94d8-c2af8c22b244],Get Console Access Session Token,GENERATE_CONSOLE_ACCESS_SESSION_TOKEN 'CaaS-CI[10-209-120-16_ce81b50b-70d4-44ae-94d8-c2af8c22b244]',OK +22aa854c-17a2-4f48-82a1-c10a052dd932,2016-09-14 05:42:04,mkumar_plat,,,,SERVER,CaaS-QA[10-209-120-14_e772c8c0-ee55-4e8f-82f9-22576b494a62],Get Console Access Session Token,GENERATE_CONSOLE_ACCESS_SESSION_TOKEN 'CaaS-QA[10-209-120-14_e772c8c0-ee55-4e8f-82f9-22576b494a62]',OK +6c7f3847-e2e8-47c8-8fd0-8c444015ad19,2016-09-14 05:51:58,mkumar_plat,,,,SERVER,CaaS-CI[10-209-120-16_ce81b50b-70d4-44ae-94d8-c2af8c22b244],Get Console Access Session Token,GENERATE_CONSOLE_ACCESS_SESSION_TOKEN 'CaaS-CI[10-209-120-16_ce81b50b-70d4-44ae-94d8-c2af8c22b244]',OK +69ddc5a5-b815-439b-9d32-a1d60345355b,2016-09-14 06:02:50,mkumar_plat,,,,SERVER,CaaS-CI[10-209-120-16_ce81b50b-70d4-44ae-94d8-c2af8c22b244],Get Console Access Session Token,GENERATE_CONSOLE_ACCESS_SESSION_TOKEN 'CaaS-CI[10-209-120-16_ce81b50b-70d4-44ae-94d8-c2af8c22b244]',OK +4ffa5524-926b-4747-9924-581c316b6a60,2016-09-14 06:05:49,mkumar_plat,,,,SERVER,CaaS-QA[10-209-120-14_e772c8c0-ee55-4e8f-82f9-22576b494a62],Get Console Access Session Token,GENERATE_CONSOLE_ACCESS_SESSION_TOKEN 'CaaS-QA[10-209-120-14_e772c8c0-ee55-4e8f-82f9-22576b494a62]',OK +599718fe-f58c-439b-87ae-86fb1347708e,2016-09-14 06:06:21,mkumar_plat,,,,SERVER,CaaS-QA[10-209-120-14_e772c8c0-ee55-4e8f-82f9-22576b494a62],Get Console Access Session Token,GENERATE_CONSOLE_ACCESS_SESSION_TOKEN 'CaaS-QA[10-209-120-14_e772c8c0-ee55-4e8f-82f9-22576b494a62]',OK http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/change_disk_size.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/change_disk_size.xml b/libcloud/test/compute/fixtures/nttcis/change_disk_size.xml new file mode 100644 index 0000000..84d461f --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/change_disk_size.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<response requestId="na9_20160321T074626030-0400_7e9fffe7-190b-46f2-91079d52fe57d0ad" xmlns="urn:didata.com:api:cloud:types"> + <operation>EXPAND_DISK</operation> + <responseCode>IN_PROGRESS</responseCode> + <message> Request to Expand Disk has been accepted. Please use appropriate Get or List API for status.</message> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/change_disk_speed.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/change_disk_speed.xml b/libcloud/test/compute/fixtures/nttcis/change_disk_speed.xml new file mode 100644 index 0000000..647bf80 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/change_disk_speed.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<response requestId="na9_20160321T074626030-0400_7e9fffe7-190b-46f2-91079d52fe57d0ad" xmlns="urn:didata.com:api:cloud:types"> + <operation>CHANGE_DISK_SPEED</operation> + <responseCode>IN_PROGRESS</responseCode> + <message>Request to Change Disk Speed has been accepted. Please use appropriate Get or List API for status.</message> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/change_nic_networkadapter_response.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/change_nic_networkadapter_response.xml b/libcloud/test/compute/fixtures/nttcis/change_nic_networkadapter_response.xml new file mode 100644 index 0000000..40b60a5 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/change_nic_networkadapter_response.xml @@ -0,0 +1,7 @@ +<response requestId="na/2014-04-14T13:37:20/62f06368-c3fb-11e3-b29c-001517c4643e" +xmlns="urn:didata.com:api:cloud:types"> + <operation>CHANGE_NETWORK_ADAPTER</operation> + <responseCode>IN_PROGRESS</responseCode> + <message>Request to Change Network Adapter for NIC with Id has been +accepted and is being processed.</message> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/datacenter_snapshotWindows.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/datacenter_snapshotWindows.xml b/libcloud/test/compute/fixtures/nttcis/datacenter_snapshotWindows.xml new file mode 100644 index 0000000..2f73be2 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/datacenter_snapshotWindows.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<snapshotWindows pageNumber="1" pageCount="1" totalCount="4" pageSize="1" xmlns="urn:didata.com:api:cloud:types"> +<snapshotWindow id="f1d6a564-490e-4166-b91d-feddc1f92025" dayOfWeek="SUNDAY" startHour="12" timeZone="Etc/UTC" availabilityStatus="AVAILABLE" availableSlotCount="3"/> +<snapshotWindow id="ffd6a564-490e-4166-b91d-feddc1f92022" dayOfWeek="MONDAY" startHour="4" timeZone="Etc/UTC" availabilityStatus="AVAILABLE" availableSlotCount="1"/> +<snapshotWindow id="fgd6a564-490e-4166-b91d-feddc1f92023" dayOfWeek="FRIDAY" startHour="2" timeZone="Etc/UTC" availabilityStatus="AVAILABLE" availableSlotCount="2"/> +<snapshotWindow id="fhd6a564-490e-4166-b91d-feddc1f92024" dayOfWeek="FRIDAY" startHour="14" timeZone="Etc/UTC" availabilityStatus="NOT_CURRENTLY_AVAILABLE" availableSlotCount="0"/> +<snapshotWindow id="f2d6a564-490e-4166-b91d-feddc1f92021" dayOfWeek="FRIDAY" startHour="16" timeZone="Etc/UTC" availabilityStatus="RESERVED_FOR_MAINTENANCE" availableSlotCount="0"/> +</snapshotWindows> http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/deploy_customised_server.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/deploy_customised_server.xml b/libcloud/test/compute/fixtures/nttcis/deploy_customised_server.xml new file mode 100644 index 0000000..d849494 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/deploy_customised_server.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<response xmlns="urn:didata.com:api:cloud:types" requestId="na9_20160321T074626030- 0400_7e9fffe7-190b-46f2-9107-9d52fe57d0ad"> + <operation>DEPLOY_UNCUSTOMIZED_SERVER</operation> + <responseCode>IN_PROGRESS</responseCode> + <message>Request to deploy uncustomized Server 'Production Server' has been accepted and is being processed.</message> + <info name="serverId" value="e75ead52-692f-4314-8725-c8a4f4d13a87"/> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/detailed_usage_report.csv ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/detailed_usage_report.csv b/libcloud/test/compute/fixtures/nttcis/detailed_usage_report.csv new file mode 100644 index 0000000..e746b47 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/detailed_usage_report.csv @@ -0,0 +1,42 @@ +Name,Type,Location,Private IP +Address,Status,"user:ATag","user:BTag","user:CTag",Start Time,End +Time,Duration (Hours),CPU Type,CPU Count, RAM (GB), Storage (GB),Economy +Storage (GB),CPU Hours,High Performance CPU Hours,RAM Hours,Storage +Hours,Economy Storage Hours,Bandwidth-In (GB),Bandwidth-Out (GB),Subadmin +Hours,Network Hours,Essentials Network Domain Hours,Advanced Network Domain +Hours,VLAN Hours,Public IP Hours,Cloud Files Account Hours,Cloud Storage (GB) +Server A,Server,NA1,10.162.12.16,Running,Bob,IT,,19/06/2014 04:16,19/06/2014 +11:17,7.03,Standard,1,2,10,0,7.03,0,14.05,70.27,0,0,0,0,0,0,0,0,0,0,0 +Server A,Server,NA1,10.162.12.16,Running,Bob,IT,,19/06/2014 11:17,20/06/2014 +00:00,12.71,High Performance,1,2,10,0,0,12.71,0,127.06,0,0,0,0,0,0,0,0,0,0,0 +Server B,Server,NA1,10.162.12.13,Running,Mary,IT,,19/06/2014 03:42,19/06/2014 +11:18,7.61,Essentials,1,2,10,0,0,0,15.22,76.1,0,0,0,0,0,0,0,0,0,0,0 +Server B,Server,NA1,10.162.12.13,Stopped,Mary,IT,,19/06/2014 11:18,19/06/2014 +23:18,12,Essentials,1,2,10,0,0,0,0,120,0,0,0,0,0,0,0,0,0,0,0 +Server B,Server,NA1,10.162.12.13,Stopped,Bob,IT,,19/06/2014 23:18,20/06/2014 +00:00,0.689722222,Essentials,1,2,10,0,0,0,0,6.897222223,0,0,0,0,0,0,0,0,0,0,0 +Customer Image A,Image,NA1,,Running,Bob,IT,,19/06/2014 03:30,20/06/2014 +00:00,20.5,,0,0,10,0,0,0,0,205,0,0,0,0,0,0,0,0,0,0,0 +Customer Image B,Image,NA1,,Running,Bob,IT,,19/06/2014 03:10,19/06/2014 +03:12,0.04,,0,0,10,0,0,0,0,0.44,0,0,0,0,0,0,0,0,0,0,0 +Joseph_F,Sub-Administrator,,,Running,Bob,IT,,19/06/2014 00:00,20/06/2014 +00:00,24,,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0 +Lguy,Sub-Administrator,,,Running,Mary,IT,,19/06/2014 00:00,20/06/2014 +00:00,24,,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0 +a network,Network,NA1,,Running,,IT,,19/06/2014 01:39,20/06/2014 +00:00,22.34,,0,0,0,0,0,0,0,0,0,0,0.9,0,22.34,0,0,0,0,0,0 +b network,Network,NA1,,Running,,IT,,19/06/2014 01:49,20/06/2014 +00:00,22.18,,0,0,0,0,0,0,0,0,0,0,7.1,0,22.18,0,0,0,0,0,0 +Rick's Network Domain,Network Domain,NA9,,Running,Bob,IT,,19/06/2014 +04:19,20/06/2014 00:00,19.68,,0,0,0,0,0,0,0,0,0,0,7.1,0,22.18,19.68,0,0,0,0,0 +Rick's VLAN,VLAN,NA9,,Running,Bob,IT,,19/06/2014 04:22,20/06/2014 +00:00,19.63,,0,0,0,0,0,0,0,0,0,0,0,0,22.18,0,0,19.63,0,0,0 +files1_koala,Cloud Files,,,Running,,IT,,19/06/2014 00:00,20/06/2014 +00:00,24,,0,0,0,0,0,0,0,0,0,0,0.5,0,0,0,0,0,0,24,52 +testbed,Cloud Files,,,Running,,IT,,19/06/2014 00:00,20/06/2014 +00:00,24,,0,0,0,0,0,0,0,0,0,0,0.01,0,0,0,0,0,0,24,100 +Network: b network IP Block: +168.143.92.136(4),IpBlock,NA1,,Reserved,Mary,IT,,19/06/2014 11:47,20/06/2014 +00:00,12.2,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48.82,0,0 +TOTAL for 19/06/14,,,,,,,,19/06/2014 00:00,20/06/2014 +00:00,24,,0,0,0,0,8,13,30,606,0,3,23,48,89,20,0,20,49,48,152 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/exchange_nic_vlans_response.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/exchange_nic_vlans_response.xml b/libcloud/test/compute/fixtures/nttcis/exchange_nic_vlans_response.xml new file mode 100644 index 0000000..d0e8315 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/exchange_nic_vlans_response.xml @@ -0,0 +1,8 @@ +<urn:response requestId="na/2015-01-18T13:37:20/62f06368-c3fb-11e3-b29c-001517c4643e" +xmlns:urn="urn:didata.com:api:cloud:types"> + <urn:operation>EXCHANGE_NIC_VLANS</urn:operation> + <urn:responseCode>OK</urn:responseCode> + <urn:message>Request to exchange VLANs for Server with Id +'1cec8cfb-69e7-4de9-8404-debf116f5242' has been accepted and is being +processed.</urn:message> +</urn:response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/image_customerImage.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/image_customerImage.xml b/libcloud/test/compute/fixtures/nttcis/image_customerImage.xml new file mode 100644 index 0000000..16e679e --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/image_customerImage.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<customerImages xmlns="urn:didata.com:api:cloud:types" pageNumber="1" pageCount="35" totalCount="35" pageSize="250"> + <customerImage id="5234e5c7-01de-4411-8b6e-baeb8d91cf5d" datacenterId="NA9"> + <name>ImportedCustomerImage</name> + <description /> + <guest osCustomization="true"> + <operatingSystem id="REDHAT664" displayName="REDHAT6/64" family="UNIX" /> + <vmTools versionStatus="CURRENT" runningStatus="NOT_RUNNING" /> + </guest> + <cpu count="4" speed="STANDARD" coresPerSocket="1" /> + <memoryGb>2</memoryGb> + <disk id="1a82316f-23ed-4fe9-b6d8-6b92ac467423" scsiId="0" sizeGb="12" speed="STANDARD" /> + <createTime>2015-11-19T14:29:02.000Z</createTime> + <source type="IMPORT"> + <artifact type="MF" value="ImportedCustomerImage.mf" date="2015-1119T14:28:54.000Z" /> + <artifact type="OVF" value="ImportedCustomerImage.ovf" date="2015-1119T14:28:05.000Z" /> + <artifact type="VMDK" value="ImportedCustomerImage-disk1.vmdk" date="2015-11-19T12:22:31.000Z" /></source> + <state>NORMAL</state> + <vmTools versionStatus="NEED_UPGRADE" runningStatus="NOT_RUNNING" apiVersion="8389" /> + <virtualHardware version="vmx-10" upToDate="true" /> + </customerImage> + <customerImage id="2ffa36c8-1848-49eb-b4fa-9d908775f68c" datacenterId="NA9"> + <name>CustomerImageWithPricedSoftwareLabels</name> + <description /> + <guest osCustomization="true"> + <operatingSystem id="WIN2008S32" displayName="WIN2008S/32" family="WINDOWS" /> + <vmTools versionStatus="CURRENT" runningStatus="NOT_RUNNING" /> + </guest> + <cpu count="1" speed="STANDARD" coresPerSocket="1" /> + <memoryGb>1</memoryGb> + <disk id="29455efc-51af-4b4d-91b3-d81ca0dff7d8" scsiId="0" sizeGb="50" speed="STANDARD" /> + <softwareLabel>MSSQL2008R2S</softwareLabel> + <createTime>2015-11-03T15:25:34.000Z</createTime> + <source type="CLONE"> + <artifact type="SERVER_ID" value="7c9c2551-269d-4274-a247126ba7c6215c" /> + </source> + <state>NORMAL</state> + <virtualHardware version="vmx-08" upToDate="false" /> + </customerImage> + <customerImage id="1fc1844f-45d6-4364-b447-f7c7645b47de" datacenterId="NA9"> + <name>CopiedCustomerImage</name> + <description /> + <guest osCustomization="true"> + <operatingSystem id="REDHAT664" displayName="REDHAT6/64" family="UNIX" /> + <vmTools versionStatus="NEED_UPGRADE" runningStatus="NOT_RUNNING" apiVersion="9355" /> + </guest> + <cpu count="1" speed="STANDARD" coresPerSocket="1" /> + <memoryGb>2</memoryGb> + <disk id="42b20819-c161-4dec-aa94-73ec370a6e37" scsiId="0" sizeGb="10" speed="STANDARD" /> + <createTime>2015-11-11T17:17:00.000Z</createTime> + <source type="COPY"> + <artifact type="IMAGE_ID" value="0b8357b6-f156-4b27-b4fd-b81d09c15efc" /> + </source> + <state>NORMAL</state> + <virtualHardware version="vmx-10" upToDate="true" /> + </customerImage> +</customerImages> http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/image_customerImage_2ffa36c8_1848_49eb_b4fa_9d908775f68c.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/image_customerImage_2ffa36c8_1848_49eb_b4fa_9d908775f68c.xml b/libcloud/test/compute/fixtures/nttcis/image_customerImage_2ffa36c8_1848_49eb_b4fa_9d908775f68c.xml new file mode 100644 index 0000000..9ca90f8 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/image_customerImage_2ffa36c8_1848_49eb_b4fa_9d908775f68c.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> + <customerImage xmlns="urn:didata.com:api:cloud:types" id="2ffa36c8-1848-49eb-b4fa-9d908775f68c" datacenterId="NA9"> + <name>CustomerImageWithPricedSoftwareLabels</name> + <description /> + <guest osCustomization="true"> + <operatingSystem id="WIN2008S32" displayName="WIN2008S/32" family="WINDOWS" /> + <vmTools versionStatus="CURRENT" runningStatus="NOT_RUNNING" /> + </guest> + <cpu count="1" speed="STANDARD" coresPerSocket="1" /> + <memoryGb>1</memoryGb> + <disk id="29455efc-51af-4b4d-91b3-d81ca0dff7d8" scsiId="0" sizeGb="50" speed="STANDARD" /> + <softwareLabel>MSSQL2008R2S</softwareLabel> + <createTime>2015-11-03T15:25:34.000Z</createTime> + <source type="CLONE"> + <artifact type="SERVER_ID" value="7c9c2551-269d-4274-a247126ba7c6215c" /> + </source> + <state>NORMAL</state> + <virtualHardware version="vmx-08" upToDate="false" /> + </customerImage> http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/image_customerImage_5234e5c7_01de_4411_8b6e_baeb8d91cf5d.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/image_customerImage_5234e5c7_01de_4411_8b6e_baeb8d91cf5d.xml b/libcloud/test/compute/fixtures/nttcis/image_customerImage_5234e5c7_01de_4411_8b6e_baeb8d91cf5d.xml new file mode 100644 index 0000000..e604436 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/image_customerImage_5234e5c7_01de_4411_8b6e_baeb8d91cf5d.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> + <customerImage xmlns="urn:didata.com:api:cloud:types" id="5234e5c7-01de-4411-8b6e-baeb8d91cf5d" datacenterId="NA9"> + <name>ImportedCustomerImage</name> + <description /> + <guest osCustomization="true"> + <operatingSystem id="REDHAT664" displayName="REDHAT6/64" family="UNIX" /> + <vmTools versionStatus="NEED_UPGRADE" runningStatus="NOT_RUNNING" apiVersion="8389" /> + </guest> + <cpu count="4" speed="STANDARD" coresPerSocket="1" /> + <memoryGb>2</memoryGb> + <disk id="1a82316f-23ed-4fe9-b6d8-6b92ac467423" scsiId="0" sizeGb="12" speed="STANDARD" /> + <createTime>2015-11-19T14:29:02.000Z</createTime> + <source type="IMPORT"> + <artifact type="MF" value="ImportedCustomerImage.mf" date="2015-1119T14:28:54.000Z" /> + <artifact type="OVF" value="ImportedCustomerImage.ovf" date="2015-1119T14:28:05.000Z" /> + <artifact type="VMDK" value="ImportedCustomerImage-disk1.vmdk" date="2015-11-19T12:22:31.000Z" /></source> + <state>NORMAL</state> + <virtualHardware version="vmx-10" upToDate="true" /> + </customerImage> http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/image_osImage.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/image_osImage.xml b/libcloud/test/compute/fixtures/nttcis/image_osImage.xml new file mode 100644 index 0000000..b31b42f --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/image_osImage.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<osImages xmlns="urn:didata.com:api:cloud:types" pageNumber="1" pageCount="47" totalCount="47" pageSize="250"> + <osImage id="c14b1a46-2428-44c1-9c1a-b20e6418d08c" datacenterId="NA9"> + <name>RedHat 6 64-bit 2 CPU</name> + <description>RedHat 6.6 Enterprise (Santiago) 64-bit</description> + <cpu count="2" speed="STANDARD" coresPerSocket="1" /> + <memoryGb>4</memoryGb> + <disk id="a02b7244-99d8-4889-84a5-5e4373c1bb26" scsiId="0" sizeGb="10" speed="STANDARD" /> + <createTime>2015-09-17T11:23:48.000Z</createTime> + <osImageKey>T-RHEL-6-64-2-4-10</osImageKey> + <guest osCustomization="true"> + <operatingSystem id="REDHAT664" displayName="REDHAT6/64" family="UNIX" /> + </guest> + </osImage> + <osImage id="6b4fb0c7-a57b-4f58-b59c-9958f94f971a" datacenterId="NA9"> + <name>Win2012 DC 2 CPU</name> + <description>Windows 2012 Datacenter</description> + <cpu count="2" speed="STANDARD" coresPerSocket="1" /> + <memoryGb>4</memoryGb> + <disk id="f5e01854-a211-4ec6-96d6-2753b6d47877" scsiId="0" sizeGb="50" speed="STANDARD" /> + <createTime>2015-09-17T11:44:43.000Z</createTime> + <osImageKey>T-WIN-2012-DATACTR-64-2-4-50</osImageKey> + <guest osCustomization="true"> + <operatingSystem id="WIN2012DC64" displayName="WIN2012DC/64" family="WINDOWS" /> + </guest> + </osImage> + <osImage id="3ebf3c0f-90fe-4a8b-8585-6e65b316592c" datacenterId="NA9"> + <name>Win2008 Std 32-bit 2 CPU</name> + <description>Windows 2008 Enterprise R2 32-bit installed with Microsoft SQL Server 2012 Standard Edition</description> + <cpu count="2" speed="STANDARD" coresPerSocket="1" /> + <memoryGb>4</memoryGb> + <disk id="6e5b5112-0eae-44eb-83cd-1bd0d58fbeab" scsiId="0" sizeGb="50" speed="STANDARD" /> + <softwareLabel>MSSQL2008R2S</softwareLabel> + <createTime>2014-11-20T12:54:22.000Z</createTime> + <osImageKey>T-WIN-2008-ENT-32-2-4-50</osImageKey> + <guest osCustomization="true"> + <operatingSystem id="WIN2008S32" displayName="WIN2008S/32" family="WINDOWS" /> + </guest> + </osImage> +</osImages> http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/image_osImage_6b4fb0c7_a57b_4f58_b59c_9958f94f971a.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/image_osImage_6b4fb0c7_a57b_4f58_b59c_9958f94f971a.xml b/libcloud/test/compute/fixtures/nttcis/image_osImage_6b4fb0c7_a57b_4f58_b59c_9958f94f971a.xml new file mode 100644 index 0000000..75e2f93 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/image_osImage_6b4fb0c7_a57b_4f58_b59c_9958f94f971a.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> + <osImage xmlns="urn:didata.com:api:cloud:types" id="6b4fb0c7-a57b-4f58-b59c-9958f94f971a" datacenterId="NA9"> + <name>Win2012 DC 2 CPU</name> + <description>Windows 2012 Datacenter</description> + <cpu count="2" speed="STANDARD" coresPerSocket="1" /> + <memoryGb>4</memoryGb> + <disk id="f5e01854-a211-4ec6-96d6-2753b6d47877" scsiId="0" sizeGb="50" speed="STANDARD" /> + <createTime>2015-09-17T11:44:43.000Z</createTime> + <osImageKey>T-WIN-2012-DATACTR-64-2-4-50</osImageKey> + <guest osCustomization="true"> + <operatingSystem id="WIN2012DC64" displayName="WIN2012DC/64" family="WINDOWS" /> + </guest> + </osImage> http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/image_osImage_BAD_REQUEST.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/image_osImage_BAD_REQUEST.xml b/libcloud/test/compute/fixtures/nttcis/image_osImage_BAD_REQUEST.xml new file mode 100644 index 0000000..0091648 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/image_osImage_BAD_REQUEST.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<response xmlns="urn:didata.com:api:cloud:types" requestId="na/2016-03-15T12:38:27.999-04:00/e9e8370d-d4d4-4725-afae-77e7832bacbd"> + <operation>GET_OS_IMAGE</operation> + <responseCode>RESOURCE_NOT_FOUND</responseCode> + <message>Server Image 2ffa36c8-1848-49eb-b4fa-9d908775f68c not found.</message> +</response> http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/image_osImage_c14b1a46_2428_44c1_9c1a_b20e6418d08c.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/image_osImage_c14b1a46_2428_44c1_9c1a_b20e6418d08c.xml b/libcloud/test/compute/fixtures/nttcis/image_osImage_c14b1a46_2428_44c1_9c1a_b20e6418d08c.xml new file mode 100644 index 0000000..87d47f5 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/image_osImage_c14b1a46_2428_44c1_9c1a_b20e6418d08c.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> + <osImage xmlns="urn:didata.com:api:cloud:types" id="c14b1a46-2428-44c1-9c1a-b20e6418d08c" datacenterId="NA9"> + <name>RedHat 6 64-bit 2 CPU</name> + <description>RedHat 6.6 Enterprise (Santiago) 64-bit</description> + <cpu count="2" speed="STANDARD" coresPerSocket="1" /> + <memoryGb>4</memoryGb> + <disk id="a02b7244-99d8-4889-84a5-5e4373c1bb26" scsiId="0" sizeGb="10" speed="STANDARD" /> + <createTime>2015-09-17T11:23:48.000Z</createTime> + <osImageKey>T-RHEL-6-64-2-4-10</osImageKey> + <guest osCustomization="true"> + <operatingSystem id="REDHAT664" displayName="REDHAT6/64" family="UNIX" /> + </guest> + </osImage> + http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/import_image_response.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/import_image_response.xml b/libcloud/test/compute/fixtures/nttcis/import_image_response.xml new file mode 100644 index 0000000..b51b0bf --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/import_image_response.xml @@ -0,0 +1,8 @@ +<response requestId= "na/2014-04-14T13:37:20/62f06368-c3fb-11e3-b29c-001517c4643e" +xmlns= "urn:didata.com:api:cloud:types" > + <operation>IMPORT_IMAGE</operation> + <responseCode>IN_PROGRESS</responseCode> + <message>Request to import image has been accepted and is being +processed.</message> + <info name="imageId" value="3389ffe8-c3fc-11e3-b29c-001517c4643e"/> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/infrastructure_datacenter.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/infrastructure_datacenter.xml b/libcloud/test/compute/fixtures/nttcis/infrastructure_datacenter.xml new file mode 100644 index 0000000..4220600 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/infrastructure_datacenter.xml @@ -0,0 +1,188 @@ +<?xml version="1.0" encoding="UTF-8"?> +<datacenters xmlns="urn:didata.com:api:cloud:types" pageNumber="1" pageCount="5" totalCount="5" pageSize="250"> + <datacenter id="NA3" type="MCP 1.0"> + <displayName>US - West</displayName> + <city>Santa Clara</city> + <state>California</state> + <country>US</country> + <vpnUrl>https://na3.cloud-vpn.net</vpnUrl> + <ftpsHost>ftps-na.cloud-vpn.net</ftpsHost> + <networking type="1" maintenanceStatus="NORMAL"> + <property name="MAX_SERVER_TO_VIP_CONNECTIONS" value="20"/> + </networking> + <hypervisor type="VMWARE" maintenanceStatus="NORMAL"> + <diskSpeed id="HIGHPERFORMANCE" default="false" available="true"> + <displayName>High Performance</displayName> + <abbreviation>HPF</abbreviation> + <description>Faster than Standard. Uses 15000 RPM disk with Fast Cache.</description> + </diskSpeed> + <diskSpeed id="STANDARD" default="true" available="true"> + <displayName>Standard</displayName> + <abbreviation>STD</abbreviation> + <description>Standard Disk Speed</description> + </diskSpeed> + <diskSpeed id="ECONOMY" default="false" available="true"> + <displayName>Economy</displayName> + <abbreviation>ECN</abbreviation> + <description>Slower than Standard. Uses 7200 RPM disk without Fast Cache.</description> + </diskSpeed> + <property name="MIN_DISK_SIZE_GB" value="10"/> + <property name="MAX_DISK_SIZE_GB" value="1000"/> + <property name="MAX_TOTAL_ADDITIONAL_STORAGE_GB" value="10000"/> + <property name="MAX_TOTAL_IMAGE_STORAGE_GB" value="2600"/> + <property name="MAX_CPU_COUNT" value="16"/> + <property name="MIN_MEMORY_MB" value="1024"/> + <property name="MAX_MEMORY_MB" value="131072"/> + </hypervisor> + <backup type="COMMVAULT" maintenanceStatus="NORMAL"/> + <consoleAccess maintenanceStatus="NORMAL"/> + <monitoring maintenanceStatus="NORMAL"/> + </datacenter> + <datacenter id="NA1" type="MCP 1.0"> + <displayName>US - East</displayName> + <city>Ashburn</city> + <state>Virginia</state> + <country>US</country> + <vpnUrl>https://na1.cloud-vpn.net</vpnUrl> + <ftpsHost>ftps-na.cloud-vpn.net</ftpsHost> + <networking type="1" maintenanceStatus="NORMAL"> + <property name="MAX_SERVER_TO_VIP_CONNECTIONS" value="20"/> + </networking> + <hypervisor type="VMWARE" maintenanceStatus="NORMAL"> + <diskSpeed id="STANDARD" default="true" available="true"> + <displayName>Standard</displayName> + <abbreviation>STD</abbreviation> + <description>Standard Disk Speed</description> + </diskSpeed> + <property name="MIN_DISK_SIZE_GB" value="10"/> + <property name="MAX_DISK_SIZE_GB" value="1000"/> + <property name="MAX_TOTAL_ADDITIONAL_STORAGE_GB" value="10000"/> + <property name="MAX_TOTAL_IMAGE_STORAGE_GB" value="2600"/> + <property name="MAX_CPU_COUNT" value="8"/> + <property name="MIN_MEMORY_MB" value="1024"/> + <property name="MAX_MEMORY_MB" value="65536"/> + </hypervisor> + <backup type="COMMVAULT" maintenanceStatus="NORMAL"/> + <consoleAccess maintenanceStatus="NORMAL"/> + <monitoring maintenanceStatus="NORMAL"/> + </datacenter> + <datacenter id="NA5" type="MCP 1.0"> + <displayName>US - East 2</displayName> + <city>Ashburn</city> + <state>Virginia</state> + <country>US</country> + <vpnUrl>https://na5.cloud-vpn.net</vpnUrl> + <ftpsHost>ftps-na.cloud-vpn.net</ftpsHost> + <networking type="1" maintenanceStatus="NORMAL"> + <property name="MAX_SERVER_TO_VIP_CONNECTIONS" value="20"/> + </networking> + <hypervisor type="VMWARE" maintenanceStatus="NORMAL"> + <diskSpeed id="HIGHPERFORMANCE" default="false" available="true"> + <displayName>High Performance</displayName> + <abbreviation>HPF</abbreviation> + <description>Faster than Standard. Uses 15000 RPM disk with Fast Cache.</description> + </diskSpeed> + <diskSpeed id="STANDARD" default="true" available="true"> + <displayName>Standard</displayName> + <abbreviation>STD</abbreviation> + <description>Standard Disk Speed</description> + </diskSpeed> + <diskSpeed id="ECONOMY" default="false" available="true"> + <displayName>Economy</displayName> + <abbreviation>ECN</abbreviation> + <description>Slower than Standard. Uses 7200 RPM disk without Fast Cache.</description> + </diskSpeed> + <property name="MIN_DISK_SIZE_GB" value="10"/> + <property name="MAX_DISK_SIZE_GB" value="1000"/> + <property name="MAX_TOTAL_ADDITIONAL_STORAGE_GB" value="10000"/> + <property name="MAX_TOTAL_IMAGE_STORAGE_GB" value="2600"/> + <property name="MAX_CPU_COUNT" value="16"/> + <property name="MIN_MEMORY_MB" value="1024"/> + <property name="MAX_MEMORY_MB" value="131072"/> + </hypervisor> + <backup type="COMMVAULT" maintenanceStatus="NORMAL"/> + <consoleAccess maintenanceStatus="NORMAL"/> + <monitoring maintenanceStatus="NORMAL"/> + </datacenter> + <datacenter id="NA9" type="MCP 2.0"> + <displayName>US - East 3 - MCP 2.0</displayName> + <city>Ashburn</city> + <state>Virginia</state> + <country>US</country> + <vpnUrl>https://na9.cloud-vpn.net</vpnUrl> + <ftpsHost>ftps-na.cloud-vpn.net</ftpsHost> + <networking type="2" maintenanceStatus="NORMAL"> + <property name="MAX_NODE_CONNECTION_LIMIT" value="100000"/> + <property name="MAX_NODE_CONNECTION_RATE_LIMIT" value="4000"/> + <property name="MAX_VIRTUAL_LISTENER_CONNECTION_LIMIT" value="100000"/> + <property name="MAX_VIRTUAL_LISTENER_CONNECTION_RATE_LIMIT" value="4000"/> + </networking> + <hypervisor type="VMWARE" maintenanceStatus="NORMAL"> + <diskSpeed id="STANDARD" default="true" available="true"> + <displayName>Standard</displayName> + <abbreviation>STD</abbreviation> + <description>Standard Disk Speed</description> + </diskSpeed> + <diskSpeed id="HIGHPERFORMANCE" default="false" available="true"> + <displayName>High Performance</displayName> + <abbreviation>HPF</abbreviation> + <description>Faster than Standard. Uses 15000 RPM disk with Fast Cache.</description> + </diskSpeed> + <diskSpeed id="ECONOMY" default="false" available="true"> + <displayName>Economy</displayName> + <abbreviation>ECN</abbreviation> + <description>Slower than Standard. Uses 7200 RPM disk without Fast Cache.</description> + </diskSpeed> + <property name="MIN_DISK_SIZE_GB" value="10"/> + <property name="MAX_DISK_SIZE_GB" value="1000"/> + <property name="MAX_TOTAL_ADDITIONAL_STORAGE_GB" value="14000"/> + <property name="MAX_TOTAL_IMAGE_STORAGE_GB" value="2600"/> + <property name="MAX_CPU_COUNT" value="32"/> + <property name="MIN_MEMORY_MB" value="1024"/> + <property name="MAX_MEMORY_MB" value="262144"/> + </hypervisor> + <backup type="COMMVAULT" maintenanceStatus="NORMAL"/> + <consoleAccess maintenanceStatus="NORMAL"/> + <monitoring maintenanceStatus="NORMAL"/> + </datacenter> + <datacenter id="NA12" type="MCP 2.0"> + <displayName>US - West - MCP 2.0</displayName> + <city>Santa Clara</city> + <state>California</state> + <country>US</country> + <vpnUrl>https://na12.cloud-vpn.net</vpnUrl> + <ftpsHost>ftps-na.cloud-vpn.net</ftpsHost> + <networking type="2" maintenanceStatus="NORMAL"> + <property name="MAX_NODE_CONNECTION_LIMIT" value="100000"/> + <property name="MAX_NODE_CONNECTION_RATE_LIMIT" value="4000"/> + <property name="MAX_VIRTUAL_LISTENER_CONNECTION_LIMIT" value="100000"/> + <property name="MAX_VIRTUAL_LISTENER_CONNECTION_RATE_LIMIT" value="4000"/> + </networking> + <hypervisor type="VMWARE" maintenanceStatus="NORMAL"> + <diskSpeed id="STANDARD" default="true" available="true"> + <displayName>Standard</displayName> + <abbreviation>STD</abbreviation> + <description>Standard Disk Speed</description> + </diskSpeed> + <diskSpeed id="HIGHPERFORMANCE" default="false" available="true"> + <displayName>High Performance</displayName> + <abbreviation>HPF</abbreviation> + <description>Faster than Standard. Uses 15000 RPM disk with Fast Cache.</description> + </diskSpeed> + <diskSpeed id="ECONOMY" default="false" available="true"> + <displayName>Economy</displayName> + <abbreviation>ECN</abbreviation> + <description>Slower than Standard. Uses 7200 RPM disk without Fast Cache.</description> + </diskSpeed> + <property name="MIN_DISK_SIZE_GB" value="10"/> + <property name="MAX_DISK_SIZE_GB" value="1000"/> + <property name="MAX_TOTAL_ADDITIONAL_STORAGE_GB" value="14000"/> + <property name="MAX_TOTAL_IMAGE_STORAGE_GB" value="2600"/> + <property name="MAX_CPU_COUNT" value="32"/> + <property name="MIN_MEMORY_MB" value="1024"/> + <property name="MAX_MEMORY_MB" value="262144"/> + </hypervisor> + <consoleAccess maintenanceStatus="NORMAL"/> + <monitoring maintenanceStatus="NORMAL"/> + </datacenter> +</datacenters> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/infrastructure_datacenter_NA9.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/infrastructure_datacenter_NA9.xml b/libcloud/test/compute/fixtures/nttcis/infrastructure_datacenter_NA9.xml new file mode 100644 index 0000000..396ad10 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/infrastructure_datacenter_NA9.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> +<datacenters xmlns="urn:didata.com:api:cloud:types" pageNumber="1" pageCount="1" totalCount="1" pageSize="250"> + <datacenter id="NA9" type="MCP 2.0"> + <displayName>US - East 3 - MCP 2.0</displayName> + <city>Ashburn</city> + <state>Virginia</state> + <country>US</country> + <vpnUrl>https://na9.cloud-vpn.net</vpnUrl> + <ftpsHost>ftps-na.cloud-vpn.net</ftpsHost> + <networking type="2" maintenanceStatus="NORMAL"> + <property name="MAX_NODE_CONNECTION_LIMIT" value="100000"/> + <property name="MAX_NODE_CONNECTION_RATE_LIMIT" value="4000"/> + <property name="MAX_VIRTUAL_LISTENER_CONNECTION_LIMIT" value="100000"/> + <property name="MAX_VIRTUAL_LISTENER_CONNECTION_RATE_LIMIT" value="4000"/> + </networking> + <hypervisor type="VMWARE" maintenanceStatus="NORMAL"> + <diskSpeed id="STANDARD" default="true" available="true"> + <displayName>Standard</displayName> + <abbreviation>STD</abbreviation> + <description>Standard Disk Speed</description> + </diskSpeed> + <diskSpeed id="HIGHPERFORMANCE" default="false" available="true"> + <displayName>High Performance</displayName> + <abbreviation>HPF</abbreviation> + <description>Faster than Standard. Uses 15000 RPM disk with Fast Cache.</description> + </diskSpeed> + <diskSpeed id="ECONOMY" default="false" available="true"> + <displayName>Economy</displayName> + <abbreviation>ECN</abbreviation> + <description>Slower than Standard. Uses 7200 RPM disk without Fast Cache.</description> + </diskSpeed> + <cpuSpeed id="STANDARD" default="true" available="true"> + <displayName>Standard</displayName> + <description>Standard CPU Speed</description> + </cpuSpeed> + <cpuSpeed id="HIGHPERFORMANCE" default="false" available="true"> + <displayName>High Performance</displayName> + <description>Faster and more consistent than Standard. Suitable for applications that are more CPU intensive.</description> + </cpuSpeed> + <property name="MIN_DISK_SIZE_GB" value="10"/> + <property name="MAX_DISK_SIZE_GB" value="1000"/> + <property name="MAX_TOTAL_ADDITIONAL_STORAGE_GB" value="14000"/> + <property name="MAX_TOTAL_IMAGE_STORAGE_GB" value="2600"/> + <property name="MAX_CPU_COUNT" value="32"/> + <property name="MIN_MEMORY_GB" value="1"/> + <property name="MAX_MEMORY_GB" value="256"/> + <property name="VMWARE_HARDWARE_VERSION" value="vmx-10"/> + <property name="VLAN_SECURITY_GROUPS_ENABLED" value="false"/> + </hypervisor> + <backup type="COMMVAULT" maintenanceStatus="NORMAL"/> + <consoleAccess maintenanceStatius="NORMAL"/> + <monitoring maintenanceStatus="NORMAL"/> + </datacenter> +</datacenters> http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/ip_address_list_create.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/ip_address_list_create.xml b/libcloud/test/compute/fixtures/nttcis/ip_address_list_create.xml new file mode 100644 index 0000000..09317ef --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/ip_address_list_create.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<response + requestId="na9_20160321T074626030-0400_7e9fffe7-190b-46f2-9107- 9d52fe57d0ad" + xmlns="urn:didata.com:api:cloud:types"> + <operation>CREATE_IP_ADDRESS_LIST</operation> + <responseCode>OK</responseCode> + <message>IP Address List 'myAddressList' has been created.</message> + <info name="ipAddressListId" value="9e6b496d-5261-4542-91aa-b50c7f569c54"/> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/ip_address_list_delete.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/ip_address_list_delete.xml b/libcloud/test/compute/fixtures/nttcis/ip_address_list_delete.xml new file mode 100644 index 0000000..13f323a --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/ip_address_list_delete.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<response + requestId="na9_20160321T074626030-0400_7e9fffe7-190b-46f2-9107- 9d52fe57d0ad" + xmlns="urn:didata.com:api:cloud:types"> + <operation>DELETE_IP_ADDRESS_LIST</operation> + <responseCode>OK</responseCode> + <message>IP Address List with Id 84e34850-595d-436e-a885-7cd37edb24a4 has + been deleted. + </message> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/ip_address_list_edit.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/ip_address_list_edit.xml b/libcloud/test/compute/fixtures/nttcis/ip_address_list_edit.xml new file mode 100644 index 0000000..3462afa --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/ip_address_list_edit.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<response + requestId="na9_20160321T074626030-0400_7e9fffe7-190b-46f2-9107- 9d52fe57d0ad" + xmlns="urn:didata.com:api:cloud:types"> + <operation>EDIT_IP_ADDRESS_LIST</operation> + <responseCode>OK</responseCode> + <message>IP Address List 'MyIpAddressList' has been edited + successfully. + </message> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/ip_address_lists.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/ip_address_lists.xml b/libcloud/test/compute/fixtures/nttcis/ip_address_lists.xml new file mode 100644 index 0000000..708c882 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/ip_address_lists.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ipAddressLists xmlns="urn:didata.com:api:cloud:types" pageNumber="1" pageCount="4" totalCount="4" pageSize="250"> + <ipAddressList id="0291ef78-4059-4bc1-b433-3f6ad698dc41"> + <name>TestIPList2</name> + <description>Test web server IP addresses list</description> + <ipVersion>IPV4</ipVersion> + <ipAddress begin="190.1.1.0"/> + <ipAddress begin="190.1.1.3"/> + <ipAddress begin="190.1.1.10" end="190.1.1.20"/> + <ipAddress begin="190.1.2.0" prefixSize="24"/> + <state>NORMAL</state> + <createTime>2016-09-01T01:19:53.000Z</createTime> + </ipAddressList> + <ipAddressList id="bf09778f-b5ef-43a0-ba41-24ce30085deb"> + <name>TestIPList_sub_2</name> + <description>Test web server IP addresses list</description> + <ipVersion>IPV4</ipVersion> + <ipAddress begin="190.1.1.0"/> + <ipAddress begin="190.1.1.3"/> + <ipAddress begin="190.1.1.10" end="190.1.1.20"/> + <ipAddress begin="190.1.2.0" prefixSize="24"/> + <childIpAddressList id="0291ef78-4059-4bc1-b433-3f6ad698dc41" name="TestIPList2"/> + <state>NORMAL</state> + <createTime>2016-09-01T01:20:56.000Z</createTime> + </ipAddressList> + <ipAddressList id="863847dd-046d-492d-9b84-ebea39c262c6"> + <name>Test_IP_Address_List_2</name> + <description>Test Description</description> + <ipVersion>IPV4</ipVersion> + <ipAddress begin="190.2.2.100"/> + <childIpAddressList id="0291ef78-4059-4bc1-b433-3f6ad698dc41" name="TestIPList2"/> + <state>NORMAL</state> + <createTime>2016-09-05T05:37:56.000Z</createTime> + </ipAddressList> + <ipAddressList id="5e7c323f-c885-4e4b-9a27-94c44217dbd3"> + <name>Test_IP_Address_List_3</name> + <description>Test Description</description> + <ipVersion>IPV4</ipVersion> + <ipAddress begin="190.2.2.0" prefixSize="24"/> + <ipAddress begin="190.2.2.100"/> + <ipAddress begin="190.2.2.106" end="190.2.2.108"/> + <childIpAddressList id="0291ef78-4059-4bc1-b433-3f6ad698dc41" name="TestIPList2"/> + <state>NORMAL</state> + <createTime>2016-09-05T05:57:53.000Z</createTime> + </ipAddressList> +</ipAddressLists> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/ip_address_lists_FILTERBYNAME.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/ip_address_lists_FILTERBYNAME.xml b/libcloud/test/compute/fixtures/nttcis/ip_address_lists_FILTERBYNAME.xml new file mode 100644 index 0000000..301a106 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/ip_address_lists_FILTERBYNAME.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ipAddressLists xmlns="urn:didata.com:api:cloud:types" pageNumber="1" pageCount="1" totalCount="1" pageSize="250"> + <ipAddressList id="5e7c323f-c885-4e4b-9a27-94c44217dbd3"> + <name>Test_IP_Address_List_3</name> + <description>Test Description</description> + <ipVersion>IPV4</ipVersion> + <ipAddress begin="190.2.2.0" prefixSize="24"/> + <ipAddress begin="190.2.2.100"/> + <ipAddress begin="190.2.2.106" end="190.2.2.108"/> + <childIpAddressList id="0291ef78-4059-4bc1-b433-3f6ad698dc41" name="TestIPList2"/> + <state>NORMAL</state> + <createTime>2016-09-05T05:57:53.000Z</createTime> + </ipAddressList> +</ipAddressLists> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_addPublicIpBlock.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_addPublicIpBlock.xml b/libcloud/test/compute/fixtures/nttcis/network_addPublicIpBlock.xml new file mode 100644 index 0000000..5555132 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_addPublicIpBlock.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<response xmlns="urn:didata.com:api:cloud:types" requestId="na/2015-12-20T16:59:48.842-05:00/28d362bb-249c-42b6-9236-ddd8729f332c"> + <operation>ADD_PUBLIC_IP_BLOCK</operation> + <responseCode>OK</responseCode> + <message>Public IPv4 Address Block has been added successfully to Network Domain d3320077-c2ce-4523-8c65-d417e766077b.</message> + <info name="ipBlockId" value="4487241a-f0ca-11e3-9315-d4bed9b167ba"/> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_createFirewallRule.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_createFirewallRule.xml b/libcloud/test/compute/fixtures/nttcis/network_createFirewallRule.xml new file mode 100644 index 0000000..ac3162e --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_createFirewallRule.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<response +xmlns="urn:didata.com:api:cloud:types" requestId="NA9/2015-03-06T02:28:56.679-05:00/1003070b-dea9-41bd-9f0c-5c24086589b8"> +<operation>CREATE_FIREWALL_RULE</operation> +<responseCode>OK</responseCode> +<message>Request create Firewall Rule 'My.Rule.2' successful</message> +<info name="firewallRuleId" value="d0a20f59-77b9-4f28-a63b-e58496b73a6c"/> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_createNatRule.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_createNatRule.xml b/libcloud/test/compute/fixtures/nttcis/network_createNatRule.xml new file mode 100644 index 0000000..ff652a4 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_createNatRule.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<response +xmlns="urn:didata.com:api:cloud:types" requestId="NA9/2015-03-06T05:53:37.334-05:00/fb842265-fa06-4ca9-a2af-a8a6815735fc"> +<operation>CREATE_NAT_RULE</operation> +<responseCode>OK</responseCode> +<message>NAT Rule with Id d31c2db0-be6b-4d50-8744-9a7a534b5fba has been +created.</message> +<info name="natRuleId" value="d31c2db0-be6b-4d50-8744-9a7a534b5fba"/> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_deleteFirewallRule.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_deleteFirewallRule.xml b/libcloud/test/compute/fixtures/nttcis/network_deleteFirewallRule.xml new file mode 100644 index 0000000..3016297 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_deleteFirewallRule.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<response requestId="NA9/2015-03-06T04:49:42.721-05:00/f69f1106-0df7-4614-b517-844ce29013e4" +xmlns="urn:didata.com:api:cloud:types"> +<operation>DELETE_FIREWALL_RULE</operation> +<responseCode>OK</responseCode> +<message>Firewall Rule (Id:84e34850-595d-436e-a885-7cd37edb24a4) has been +deleted</message> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_deleteNatRule.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_deleteNatRule.xml b/libcloud/test/compute/fixtures/nttcis/network_deleteNatRule.xml new file mode 100644 index 0000000..2d2cebc --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_deleteNatRule.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<response +xmlns="urn:didata.com:api:cloud:types" requestId="NA9/2015-03-06T12:24:57.820-05:00/5974fe37-bac5-4345-8a88-4c93a874bf4a"> +<operation>DELETE_NAT_RULE</operation> +<responseCode>OK</responseCode> +<message>NAT Rule with Id 2187a636-7ebb-49a1-a2ff-5d617f496dce has been +deleted.</message> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_deleteNetworkDomain.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_deleteNetworkDomain.xml b/libcloud/test/compute/fixtures/nttcis/network_deleteNetworkDomain.xml new file mode 100644 index 0000000..a3cca2e --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_deleteNetworkDomain.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<response +xmlns="urn:didata.com:api:cloud:types" requestId="NA9/2015-02-24T10:19:41.471-05:00/27083502-a2ea-4331-b0cb-c2a11bb044b0"> +<operation>DELETE_NETWORK_DOMAIN</operation> +<responseCode>IN_PROGRESS</responseCode> +<message>Request to Delete Network Domain (Id: 8cdfd607-f429-4df6-9352- +162cfc0891be) has been accepted and is being processed</message> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_deleteVlan.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_deleteVlan.xml b/libcloud/test/compute/fixtures/nttcis/network_deleteVlan.xml new file mode 100644 index 0000000..9eae809 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_deleteVlan.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<response requestId="NA9/2014-04-14T13:37:20/62f06368-c3fb-11e3-b29c-001517c4643e" +xmlns="urn:didata.com:api:cloud:types"> +<operation>DELETE_VLAN</operation> +<responseCode>IN_PROGRESS</responseCode> +<message>Request to Delete VLAN (Id:0e56433f-d808-4669-821d-812769517ff8) +has been accepted and is being processed</message> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_deployNetworkDomain.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_deployNetworkDomain.xml b/libcloud/test/compute/fixtures/nttcis/network_deployNetworkDomain.xml new file mode 100644 index 0000000..4269840 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_deployNetworkDomain.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<response requestId="na/2015-01-14T13:37:20/62f06368-c3fb-11e3-b29c-001517c4643e" xmlns="urn:didata.com:api:cloud:types"> +<operation>DEPLOY_NETWORK_DOMAIN</operation> +<responseCode>IN_PROGRESS</responseCode> +<message>Request to Deploy Network Domain 'A Network Domain' has been +accepted and is being processed</message> +<info name="networkDomainId" value="f14a871f-9a25-470c-aef8-51e13202e1aa"/> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_deployVlan.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_deployVlan.xml b/libcloud/test/compute/fixtures/nttcis/network_deployVlan.xml new file mode 100644 index 0000000..946a505 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_deployVlan.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<response +xmlns="urn:didata.com:api:cloud:types" requestId="NA9/2015-02-13T05:58:00.905-05:00/04a82e12-2d51-420e-84f5-bf2630c5a5e5"> +<operation>DEPLOY_VLAN</operation> +<responseCode>IN_PROGRESS</responseCode> +<message>Request to deploy VLAN 'Production VLAN' has been accepted and is +being processed.</message> +<info name="vlanId" value="0e56433f_d808_4669_821d_812769517ff8"/> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_editFirewallRule.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_editFirewallRule.xml b/libcloud/test/compute/fixtures/nttcis/network_editFirewallRule.xml new file mode 100644 index 0000000..eff18c4 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_editFirewallRule.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<response +xmlns="urn:didata.com:api:cloud:types" requestId="NA9/2015-03-06T03:34:21.951-05:00/d7e37b41-ceff-4a8c-992d-a0220b8ebd76"> +<operation>EDIT_FIREWALL_RULE</operation> +<responseCode>OK</responseCode> +<message>Firewall Rule with id 1aa3d0ce-d95d-4296-8338-9717e0d37ff9 has +been edited</message> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_editNetworkDomain.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_editNetworkDomain.xml b/libcloud/test/compute/fixtures/nttcis/network_editNetworkDomain.xml new file mode 100644 index 0000000..07d55e5 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_editNetworkDomain.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<response xmlns="urn:didata.com:api:cloud:types" requestId="NA9/2015-02-24T09:05:41.790-05:00/b24cbc7d-0648-4070-889f-7ab97bf21941"> +<operation>EDIT_NETWORK_DOMAIN</operation> +<responseCode>OK</responseCode> +<message>Network Domain 'Development Network Domain' was edited +successfully.</message> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_editVlan.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_editVlan.xml b/libcloud/test/compute/fixtures/nttcis/network_editVlan.xml new file mode 100644 index 0000000..10d0010 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_editVlan.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<response +xmlns="urn:didata.com:api:cloud:types" requestId="NA9/2015-02-25T06:55:10.939-05:00/0593b9af-6b0c-4e5b-8e74-57b0e752f2bf"> +<operation>EDIT_VLAN</operation> +<responseCode>OK</responseCode> +<message>VLAN 'test' was edited successfully</message> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_expandVlan.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_expandVlan.xml b/libcloud/test/compute/fixtures/nttcis/network_expandVlan.xml new file mode 100644 index 0000000..03f9112 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_expandVlan.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<response +xmlns="urn:didata.com:api:cloud:types" requestId="NA9/2015-02-13T05:58:00.905-05:00/04a82e12-2d51-420e-84f5-bf2630c5a5e5"> +<operation>EXPAND_VLAN</operation> +<responseCode>IN_PROGRESS</responseCode> +<message>Request to expand VLAN 'Production VLAN' has been accepted and is +being processed.</message> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_firewallRule.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_firewallRule.xml b/libcloud/test/compute/fixtures/nttcis/network_firewallRule.xml new file mode 100644 index 0000000..50812ca --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_firewallRule.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<firewallRules xmlns="urn:didata.com:api:cloud:types" pageNumber="1" pageCount="14" totalCount="14" pageSize="50"> + <firewallRule id="756cba02-b0bc-48f4-aea5-9445870b6148" datacenterId="NA9" ruleType="DEFAULT_RULE"> + <networkDomainId>b30c224c-c95b-4cd9-bb8b-bfdfb5486abf</networkDomainId> + <name>CCDEFAULT.BlockOutboundMailIPv4</name> + <action>DROP</action> + <ipVersion>IPV4</ipVersion> + <protocol>TCP</protocol> + <source> + <ip address="ANY"/> + </source> + <destination> + <ip address="ANY"/> + <port begin="25"/> + </destination> + <enabled>true</enabled> + <state>NORMAL</state> + </firewallRule> + <firewallRule id="8ffbe8c1-e545-424b-bfcc-e25c2017537d" datacenterId="NA9" ruleType="DEFAULT_RULE"> + <networkDomainId>b30c224c-c95b-4cd9-bb8b-bfdfb5486abf</networkDomainId> + <name>SpecificSourceIP</name> + <action>DROP</action> + <ipVersion>IPV4</ipVersion> + <protocol>TCP</protocol> + <source> + <ip address="ANY"/> + </source> + <destination> + <ip address="ANY"/> + <port begin="587"/> + </destination> + <enabled>true</enabled> + <state>NORMAL</state> + </firewallRule> +</firewallRules> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_firewallRule_d0a20f59_77b9_4f28_a63b_e58496b73a6c.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_firewallRule_d0a20f59_77b9_4f28_a63b_e58496b73a6c.xml b/libcloud/test/compute/fixtures/nttcis/network_firewallRule_d0a20f59_77b9_4f28_a63b_e58496b73a6c.xml new file mode 100644 index 0000000..876f37d --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_firewallRule_d0a20f59_77b9_4f28_a63b_e58496b73a6c.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<firewallRule +xmlns="urn:didata.com:api:cloud:types" id="d0a20f59-77b9-4f28-a63b-e58496b73a6c" datacenterId="NA9" ruleType="DEFAULT_RULE"> +<networkDomainId>8cdfd607-f429-4df6-9352-162cfc0891be</networkDomainId> +<name>CCDEFAULT.BlockOutboundMailIPv4</name> +<action>DROP</action> +<ipVersion>IPV4</ipVersion> +<protocol>TCP</protocol> +<source> +<ip address="ANY"/> +</source> +<destination> +<ip address="ANY"/> +<port begin="25"/> +</destination> +<enabled>true</enabled> +<state>NORMAL</state> +</firewallRule> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_natRule.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_natRule.xml b/libcloud/test/compute/fixtures/nttcis/network_natRule.xml new file mode 100644 index 0000000..7478df6 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_natRule.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<natRules +xmlns="urn:didata.com:api:cloud:types" pageNumber="1" pageCount="2" +totalCount="2" pageSize="250"> +<natRule id="2187a636-7ebb-49a1-a2ff-5d617f496dce" datacenterId="NA9"> +<networkDomainId>484174a2-ae74-4658-9e56- +50fc90e086cf</networkDomainId> +<internalIp>10.0.0.15</internalIp> +<externalIp>165.180.12.18</externalIp> +<createTime>2015-03-06T13:43:45.000Z</createTime> +<state>NORMAL</state> +</natRule> +<natRule id="2169a38e-5692-497e-a22a-701a838a6539" datacenterId="NA9"> +<networkDomainId>484174a2-ae74-4658-9e56- +50fc90e086cf</networkDomainId> +<internalIp>10.0.0.16</internalIp> +<externalIp>165.180.12.19</externalIp> +<createTime>2015-03-06T13:45:10.000Z</createTime> +<state>NORMAL</state> +</natRule> +</natRules> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_natRule_2187a636_7ebb_49a1_a2ff_5d617f496dce.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_natRule_2187a636_7ebb_49a1_a2ff_5d617f496dce.xml b/libcloud/test/compute/fixtures/nttcis/network_natRule_2187a636_7ebb_49a1_a2ff_5d617f496dce.xml new file mode 100644 index 0000000..6bf447d --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_natRule_2187a636_7ebb_49a1_a2ff_5d617f496dce.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<natRule +xmlns="urn:didata.com:api:cloud:types" id="2187a636-7ebb-49a1-a2ff-5d617f496dce" datacenterId="NA9"> +<networkDomainId>484174a2-ae74-4658-9e56-50fc90e086cf</networkDomainId> +<internalIp>10.0.0.16</internalIp> +<externalIp>165.180.12.19</externalIp> +<createTime>2015-03-06T13:45:10.000Z</createTime> +<state>NORMAL</state> +</natRule> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_networkDomain.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_networkDomain.xml b/libcloud/test/compute/fixtures/nttcis/network_networkDomain.xml new file mode 100644 index 0000000..cb7a078 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_networkDomain.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<networkDomains xmlns="urn:didata.com:api:cloud:types" pageNumber="1" pageCount="5" totalCount="5" pageSize="250"> + <networkDomain id="b30c224c-c95b-4cd9-bb8b-bfdfb5486abf" datacenterId="NA9"> + <name>Aurora</name> + <description>Project Aurora Demo Environments</description> + <type>ADVANCED</type> + <snatIpv4Address>168.128.2.136</snatIpv4Address> + <createTime>2015-07-13T03:52:16.000Z</createTime> + <state>NORMAL</state> + </networkDomain> + <networkDomain id="b74444b5-ad7d-4ed1-a9e0-02aab80f7858" datacenterId="NA12"> + <name>Test net domain</name> + <description>description of my network</description> + <type>ESSENTIALS</type> + <snatIpv4Address>168.128.26.20</snatIpv4Address> + <createTime>2015-07-15T03:36:00.000Z</createTime> + <state>NORMAL</state> + </networkDomain> + <networkDomain id="2122a8c3-cefe-4a3d-afb4-44bc159266c7" datacenterId="NA12"> + <name>another networkj</name> + <description>net network netowkrm</description> + <type>ESSENTIALS</type> + <snatIpv4Address>168.128.26.22</snatIpv4Address> + <createTime>2015-07-15T03:40:09.000Z</createTime> + <state>NORMAL</state> + </networkDomain> + <networkDomain id="d3320077-c2ce-4523-8c65-d417e766077b" datacenterId="NA9"> + <name>Imports</name> + <description>Imported servers</description> + <type>ADVANCED</type> + <snatIpv4Address>168.128.2.69</snatIpv4Address> + <createTime>2015-08-18T03:53:02.000Z</createTime> + <state>NORMAL</state> + </networkDomain> + <networkDomain id="68a60a3c-030d-4d4b-a8fd-4a6991afc27b" datacenterId="NA9"> + <name>Platform R2.0 Lab (MCP 2.0)</name> + <description>This is the R2.0 lab for Platform on MCP 2.0</description> + <type>ESSENTIALS</type> + <snatIpv4Address>168.128.2.149</snatIpv4Address> + <createTime>2015-08-25T01:39:22.000Z</createTime> + <state>NORMAL</state> + </networkDomain> +</networkDomains> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_networkDomain_8cdfd607_f429_4df6_9352_162cfc0891be.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_networkDomain_8cdfd607_f429_4df6_9352_162cfc0891be.xml b/libcloud/test/compute/fixtures/nttcis/network_networkDomain_8cdfd607_f429_4df6_9352_162cfc0891be.xml new file mode 100644 index 0000000..bdd1c6b --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_networkDomain_8cdfd607_f429_4df6_9352_162cfc0891be.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<networkDomain xmlns="urn:didata.com:api:cloud:types" id="8cdfd607-f429-4df6-9352-162cfc0891be" datacenterId="NA12"> + <name>test</name> + <description>test2</description> + <type>ESSENTIALS</type> + <snatIpv4Address>168.128.26.20</snatIpv4Address> + <createTime>2015-07-15T03:36:00.000Z</createTime> + <state>NORMAL</state> +</networkDomain> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_publicIpBlock.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_publicIpBlock.xml b/libcloud/test/compute/fixtures/nttcis/network_publicIpBlock.xml new file mode 100644 index 0000000..3a1c1b3 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_publicIpBlock.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<publicIpBlocks xmlns="urn:didata.com:api:cloud:types" pageNumber="1" pageCount="1" totalCount="1" pageSize="250"> + <publicIpBlock id="9945dc4a-bdce-11e4-8c14-b8ca3a5d9ef8" datacenterId="NA9"> + <networkDomainId>8cdfd607-f429-4df6-9352-162cfc0891be</networkDomainId> + <baseIp>168.128.4.18</baseIp> + <size>2</size> + <createTime>2015-07-13T04:07:37.000Z</createTime> + <state>NORMAL</state> + </publicIpBlock> +</publicIpBlocks> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_publicIpBlock_4487241a_f0ca_11e3_9315_d4bed9b167ba.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_publicIpBlock_4487241a_f0ca_11e3_9315_d4bed9b167ba.xml b/libcloud/test/compute/fixtures/nttcis/network_publicIpBlock_4487241a_f0ca_11e3_9315_d4bed9b167ba.xml new file mode 100644 index 0000000..dc8814b --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_publicIpBlock_4487241a_f0ca_11e3_9315_d4bed9b167ba.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<publicIpBlock xmlns="urn:didata.com:api:cloud:types" id="9945dc4a-bdce-11e4-8c14-b8ca3a5d9ef8" datacenterId="NA9"> + <networkDomainId>8cdfd607-f429-4df6-9352-162cfc0891be</networkDomainId> + <baseIp>168.128.4.18</baseIp> + <size>2</size> + <createTime>2015-07-13T04:07:37.000Z</createTime> + <state>NORMAL</state> +</publicIpBlock> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_publicIpBlock_9945dc4a_bdce_11e4_8c14_b8ca3a5d9ef8.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_publicIpBlock_9945dc4a_bdce_11e4_8c14_b8ca3a5d9ef8.xml b/libcloud/test/compute/fixtures/nttcis/network_publicIpBlock_9945dc4a_bdce_11e4_8c14_b8ca3a5d9ef8.xml new file mode 100644 index 0000000..dc8814b --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_publicIpBlock_9945dc4a_bdce_11e4_8c14_b8ca3a5d9ef8.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<publicIpBlock xmlns="urn:didata.com:api:cloud:types" id="9945dc4a-bdce-11e4-8c14-b8ca3a5d9ef8" datacenterId="NA9"> + <networkDomainId>8cdfd607-f429-4df6-9352-162cfc0891be</networkDomainId> + <baseIp>168.128.4.18</baseIp> + <size>2</size> + <createTime>2015-07-13T04:07:37.000Z</createTime> + <state>NORMAL</state> +</publicIpBlock> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_removePublicIpBlock.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_removePublicIpBlock.xml b/libcloud/test/compute/fixtures/nttcis/network_removePublicIpBlock.xml new file mode 100644 index 0000000..8b6fe34 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_removePublicIpBlock.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<response +xmlns="urn:didata.com:api:cloud:types" requestId="NA9/2015-02-27T09:31:34.239-05:00/3e762559-c7f5-4d2b-abab-63306d406aa1"> +<operation>REMOVE_PUBLIC_IP_BLOCK</operation> +<responseCode>OK</responseCode> +<message>Public Ip Block bef4334a-844b-11e4-a91c-0030487e0302 has been +removed successfully</message> +</response> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_vlan.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_vlan.xml b/libcloud/test/compute/fixtures/nttcis/network_vlan.xml new file mode 100644 index 0000000..4575d83 --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_vlan.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<vlans xmlns="urn:didata.com:api:cloud:types" pageNumber="1" pageCount="4" totalCount="4" pageSize="250"> + <vlan id="55b236ad-9119-4b48-a1bb-cf5c76a7ac0f" datacenterId="NA9"> + <networkDomain id="8cdfd607-f429-4df6-9352-162cfc0891be" name="Aurora"/> + <name>Primary</name> + <description></description> + <privateIpv4Range address="10.0.0.0" prefixSize="24"/> + <ipv4GatewayAddress>10.0.0.1</ipv4GatewayAddress> + <ipv6Range address="2607:f480:111:1336:0:0:0:0" prefixSize="64"/> + <ipv6GatewayAddress>2607:f480:111:1336:0:0:0:1</ipv6GatewayAddress> + <createTime>2015-07-13T03:52:45.000Z</createTime> + <state>NORMAL</state> + </vlan> + <vlan id="7ede3b25-2222-4285-ab61-21ffb137a763" datacenterId="NA9"> + <networkDomain id="8cdfd607-f429-4df6-9352-162cfc0891be" name="Imports"/> + <name>Wi-Fi</name> + <description>Wi-Fi</description> + <privateIpv4Range address="10.230.98.0" prefixSize="24"/> + <ipv4GatewayAddress>10.230.98.1</ipv4GatewayAddress> + <ipv6Range address="2607:f480:111:1199:0:0:0:0" prefixSize="64"/> + <ipv6GatewayAddress>2607:f480:111:1199:0:0:0:1</ipv6GatewayAddress> + <createTime>2015-08-18T23:47:04.000Z</createTime> + <state>NORMAL</state> + </vlan> +</vlans> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/libcloud/blob/c3091843/libcloud/test/compute/fixtures/nttcis/network_vlan_0e56433f_d808_4669_821d_812769517ff8.xml ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/nttcis/network_vlan_0e56433f_d808_4669_821d_812769517ff8.xml b/libcloud/test/compute/fixtures/nttcis/network_vlan_0e56433f_d808_4669_821d_812769517ff8.xml new file mode 100644 index 0000000..7dcd5cc --- /dev/null +++ b/libcloud/test/compute/fixtures/nttcis/network_vlan_0e56433f_d808_4669_821d_812769517ff8.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<vlan +xmlns="urn:didata.com:api:cloud:types" id="0e56433f-d808-4669-821d-812769517ff8" datacenterId="NA9"> +<networkDomain id="8cdfd607-f429-4df6-9352-162cfc0891be" name="Production +Network Domain"/> +<name>Production VLAN</name> +<description>test2</description> +<privateIpv4Range address="10.0.3.0" prefixSize="24"/> +<ipv4GatewayAddress>10.0.3.1</ipv4GatewayAddress> +<ipv6Range address="2607:f480:1111:1153:0:0:0:0" prefixSize="64"/> +<ipv6GatewayAddress>2607:f480:1111:1153:0:0:0:1</ipv6GatewayAddress> +<createTime>2015-02-13T10:56:44.000Z</createTime> +<state>NORMAL</state> +</vlan> \ No newline at end of file
