X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_ro%2Ftests%2Ftest_vimconn_vmware_xml_response.py;fp=osm_ro%2Ftests%2Ftest_vimconn_vmware_xml_response.py;h=41793241679c50d689aea36711b135b3e9438a07;hb=c30a04ecfb1b64d931b9523fcbd8445be442e376;hp=0000000000000000000000000000000000000000;hpb=ae3b28df67aa29254eeeba87fc82472bd49d9173;p=osm%2FRO.git diff --git a/osm_ro/tests/test_vimconn_vmware_xml_response.py b/osm_ro/tests/test_vimconn_vmware_xml_response.py new file mode 100644 index 00000000..41793241 --- /dev/null +++ b/osm_ro/tests/test_vimconn_vmware_xml_response.py @@ -0,0 +1,296 @@ +# -*- coding: utf-8 -*- + +## +# Copyright 2016-2017 VMware Inc. +# This file is part of ETSI OSM +# All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. +# +# For those usages not covered by the Apache License, Version 2.0 please +# contact: osslegalrouting@vmware.com +## + +vdc_xml_response = """ + + + + + + + + + + + + + + + + + + + Org3-VDC-PVDC1 + AllocationVApp + + + MHz + 0 + 0 + 0 + 2000 + 0 + + + MB + 0 + 0 + 0 + 2048 + 71 + + + + + + + + + + + + + + + + + + + + + vmx-04 + vmx-07 + vmx-08 + vmx-09 + vmx-10 + vmx-11 + + + 0 + 1000 + 0 + 0 + true + + + + + 1000 + """ + +network_xml_response = """ + + + + + Openmano created + + + + true + 12.169.24.23 + 255.255.255.0 + 12.169.24.102 + corp.local + true + + + 12.169.24.115 + 12.169.241.150 + + + + + bridged + false + + false + """ + +delete_network_xml_response = """ + + + + + Openmano created + + + + true + 12.169.24.23 + 255.255.255.0 + 12.169.24.102 + corp.local + true + + + 12.169.241.115 + 12.169.241.150 + + + bridged + false + + false + """ + +create_network_xml_response = """ + + + + + + + + Openmano created + + + + + +
+ + + + + false + 12.16.113.1 + 255.255.255.0 + 12.16.113.2 + true + + 12.168.113.3 + 12.168.113.52 + + + + bridged + false + false + """ + +catalog1_xml_response = """ + + + + + + + + + + + Ubuntu-vm +false2017-03-17T03:17:11.293-07:005 +""" + +catalog2_xml_response = """ + + + + + + + + + + + cirros +false2017-03-08T02:06:07.003-08:005 +""" + +vapp_xml_response = """ + + + + + + + + + + + + + + + + + + + + +Lease settings section + 07776000 +VApp startup section + + The list of logical networks +External-Network-1074 + +The configuration parameters for logical networks + +External-Network-1074false192.168.254.1255.255.255.0 +true192.168.254.100192.168.254.199 +isolatedfalsetrue + +true +192.169.241.253255.255.255.0192.169.241.102corp.localtrue +192.169.241.115192.169.241.150 +bridgedfalse +trueSnapshot information section2017-09-21T01:15:31.627-07:00 + +false + + + + + + + + + + + + + + + + + + + + + + + + + +Ubuntu-vm Virtual hardware requirementsVirtual Hardware Family0 Test1_vm-69a18104-8413-4cb8-bad7-b5afaec6f9favmx-11 00:50:56:01:12:a20 true testing_T6nODiW4-68f68d93-0350-4d86-b40b-6e74dedf994d Vmxnet3 ethernet adapter on "testing_T6nODiW4-68f68d93-0350-4d86-b40b-6e74dedf994d" Network adapter 0 1 VMXNET3 10 0 SCSI Controller SCSI Controller 0 2 lsilogic 6 0 Hard disk Hard disk 1 2000 2 17 42949672960 byte 0 SATA Controller SATA Controller 0 3 vmware.sata.ahci 20 0 false CD/DVD Drive CD/DVD Drive 1 16000 3 15 0 false Floppy Drive Floppy Drive 1 8000 14 hertz * 10^6 Number of Virtual CPUs 1 virtual CPU(s) 4 0 3 1 0 1 byte * 2^20 Memory Size 1024 MB of memory 5 0 4 1024 0 + + + + +Specifies the operating system installedUbuntu Linux (64-bit)Specifies the available VM network connections0 0 12.19.21.20 true 00:50:56:01:12:a2 DHCPSpecifies Guest OS Customization Settingstruefalse47d12505-5968-4e16-95a7-18743edb0c8bfalsefalsefalsetruefalse0falseUbuntu-vm-001Specifies Runtime infoSnapshot information section2017-09-21T01:15:53.863-07:00Ubuntu-vm VMware ESXi 6.0.0 VMware, Inc. en falsefalse""" + +task_xml = """ +
"""