summaryrefslogtreecommitdiffstats
path: root/newton/newton/requests
AgeCommit message (Collapse)AuthorFilesLines
2018-06-05Remove inactive code for imagefile APIYun Huang2-217/+0
Change-Id: Ifa8f3bdf763bbf9e15c1de904a8708065d03ceb3 Issue-ID: MULTICLOUD-207 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-04-28Support inject many filesHuang Haibin1-2/+10
Change-Id: I5e7c6ee7553b7f7e2fe0d8289d2a0c9bf4077f75 Issue-ID: MULTICLOUD-216 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
2018-03-29Add image API for newtonYun Huang3-0/+231
Change-Id: Iad30d138124f1309373f2b716cad024cd691c234 Issue-ID: MULTICLOUD-207 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-03-27Fix UT bug in test-vportYun Huang1-3/+10
Change-Id: Ide8564230765d8a060bc812c3ee0e48a317c9436 Issue-ID: MULTICLOUD-203 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-03-27Fix UT bug in test-imageYun Huang1-1/+3
Change-Id: Ic2175e0bd87ee56d1a0457b69090ec0098c51c76 Issue-ID: MULTICLOUD-203 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-03-27Fix UT bug in test-flavorYun Huang1-2/+5
Change-Id: I9e92cc4d1f3b2704dcf77b5e49f7bc13d4ba969f Issue-ID: MULTICLOUD-203 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-03-15Delete repeat file with share directoryHuang Haibin12-2139/+0
Change-Id: I93ecf179670216cb0b82803048daf22d0cd3b915 Issue-ID: MULTICLOUD-138 Signed-off-by: Huang Haibin <haibin.huang@intel.com>
2018-03-10newton use share libraryHuang Haibin14-866/+46
Change-Id: I0ed8ced042862edf8afa87fec3b457d019e811b4 Issue-ID: MULTICLOUD-138 Signed-off-by: Huang Haibin <haibin.huang@intel.com>
2018-03-06Update Newton license headerYun Huang16-18/+32
Change-Id: I2ee874ab6a4f13e7a5b2fe32f80ba0225d086a9f Issue-ID: MULTICLOUD-140 Signed-off-by: Yun Huang <yun.huang@windriver.com>
2018-01-13Merge "Centralize the release version for UTs"Bin Yang10-138/+233
2018-01-09Add UTs for VimDriverUtils classVictor Morales2-102/+233
The VimDriverUtils class contains utility methods for managing sessions and vim information, as well as others for replacing keys of a dictionary. This change add Unit Tests that validates their correct functionality. Change-Id: Ie569cc995c3e0ebc27f33e4c58652bb0ed34c0a7 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-83
2018-01-05Centralize the release version for UTsVictor Morales10-138/+233
The URL is formed based on the OpenStack release version supported. Given that OpenStack release cycles are targeting twice a year, it's necessary mechanism to adopt this changes. This commit centralizes the release information into a configuration value. Change-Id: Ie7f0c819472593f706520e7f2563db31b9d42444 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-83
2017-10-31Merge "Update tests to make use of abstracted test_base"Bin Yang8-677/+295
2017-10-31Workaround for keystone url without versionBin Yang1-2/+4
Append v3 to end of keystone url if version is missing Change-Id: Ic0d2ad254b4cf542b5040fed189ad85fe5176e84 Issue-Id: MULTICLOUD-123 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2017-10-26Update tests to make use of abstracted test_baseShashank Kumar Shankar8-677/+295
This patch updates various tests to make use of the abstracted test_base. Issue-Id: MULTICLOUD-83 Change-Id: I85573f1086e0ce19db48ae70827d27f3b9a1a4ca Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
2017-10-18Add Unit Test Abstract Base in test_baseShashank Kumar Shankar2-160/+227
This patch adds an Abstract Test class so that all common type of test functions are in this class and they can be resused without having to be repeated in each test case. This patch also updates test_image to make use of the abstracted test_base Issue-Id: MULTICLOUD-83 Change-Id: If11ce71627f018a614e04e90d3353a4fc2fb3cfe Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
2017-09-29Merge "Add UTs for requests/hosts and limits"Bin Yang2-0/+200
2017-09-29Merge "Adding UT for vport.py"Bin Yang1-0/+190
2017-09-28Add UTs for requests/hosts and limitsShashank Kumar Shankar2-0/+200
This patch adds unit tests for requests/hosts and requests/limits Change-Id: I1d8d3009fd2ee70770f3e20cb4aa5a0adb38dbfa Issue-Id: MULTICLOUD-83 Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
2017-09-28Adding UT for vport.pyKiran1-0/+190
This change contains unit tests for vport.py using the latest test_base wrapper. Removed unused imports Used status constant instead of numbers for status_code Change-Id: Ic7f5b793c2432a819fde0cfd1576046f08b8013d Signed-off-by: Kiran <kiran.k.kamineni@intel.com> Issue-Id: MULTICLOUD-83
2017-09-28Merge "Create UTs for Tenants APIView"Bin Yang3-24/+99
2017-09-28Create UTs for Tenants APIViewVictor Morales3-24/+99
The Tenants APIView class didn't have Unit Tests that validates its functionality. This change creates UTs for two specific scenarios * Retrieving tenants/projects information * Retrieving tenants/projects information thru a querystring Change-Id: Ibeaf8af991ae3c3d926867f04285449f41f050c9 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: MULTICLOUD-83
2017-09-28Create UTs for Registry APIViewVictor Morales2-17/+15
This change creates unit tests for the Registry APIView class and refactors its code to simplify it and reuse some functionality Change-Id: I33a01e750e80d4acbae12bbd873484bbb423f1cf Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: MULTICLOUD-83
2017-09-28Merge "Refactor flavor UTs"Bin Yang2-275/+228
2017-09-28Merge "Update UTs for requests/image and network"Bin Yang2-183/+81
2017-09-28Merge "Add UTs for requests/subnets"Bin Yang1-0/+188
2017-09-27Update UTs for requests/image and networkShashank Kumar Shankar2-183/+81
This patch updates unit tests for requests/image and network to make use of new get_mock_session method. Change-Id: Ic207094b8c2bd7fae09cf718bca41d64b17f1b13 Issue-Id: MULTICLOUD-83 Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
2017-09-27Add UTs for requests/subnetsShashank Kumar Shankar1-0/+188
This patch adds unit tests for requests/subnets. Change-Id: Icc363b190867504af3125d8a8b5ca090c3691d6f Issue-Id: MULTICLOUD-83 Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
2017-09-27Adding Unit Tests for requests/volumesKiran1-0/+188
Updated with test_base usage Incorporated review feedback Updated with consolidated url variable used in all calls Change-Id: Id0898ac4bda7e1ac8c21e017234a4f5856d1c61e Signed-off-by: Kiran <kiran.k.kamineni@intel.com> Issue-Id: MULTICLOUD-83
2017-09-27Refactor flavor UTsVictor Morales2-275/+228
The creation of base class helps to reduce code and improve existing Unit Tests. This changes uses the latest improvements. Change-Id: Ib0fa298c72df73761320ab415c22d6eabbc8caea Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: MULTICLOUD-83
2017-09-26Improve get_mock_session methodVictor Morales3-80/+49
The previous implementation of get_mock_session method didn't accept other responses for different actions. This change makes it more flexible Change-Id: I68ceda07b1011cce4b81e22cf429393dfcbf73b1 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: MULTICLOUD-83
2017-09-26Merge "Create UTs for Server APIView"Bin Yang3-45/+404
2017-09-25Create UTs for Server APIViewVictor Morales3-45/+404
It was created the Unit tests that covers some of the functions exposed by the API of Servers. Change-Id: I60f9045dab133c59c62755d8564bdad2b6a02f26 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: MULTICLOUD-83
2017-09-25Add UTs for requests/imagesShashank Kumar Shankar1-0/+271
This patch adds unit tests for requests/images. Change-Id: I214314ba8b9e78374e140803a25e5d64d78fd548 Issue-Id: MULTICLOUD-83 Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
2017-09-25Add UTs for requests/flavorsShashank Kumar Shankar4-557/+858
This patch adds unit tests for requests/flavors and moves the common mock info to a seperate file to avoid multiple copies in each test file. Change-Id: Iacd37742d5c32dc60cbeece00e5c30b983f99881 Issue-Id: MULTICLOUD-83 Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
2017-09-21Add UTs for requests/networksShashank Kumar Shankar2-1/+796
This patch adds unit tests for requests/networks. Change-Id: Ia756693796d752ab1716aef177560c69220e7904 Issue-Id: MULTICLOUD-83 Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
2017-09-21Fix url pattern errorBin Yang1-0/+2
Change-Id: Ic7aa3c1791482be38ee9debcedb52bbf57add96e Issue-Id: MULTICLOUD-89 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2017-09-18Refactor Service UTsVictor Morales2-4/+2
The Unit tests that covers the get function of Service resource was generic, this change pretends to translate it to use cases. Change-Id: Iaec6d0751b5501612aebb240423da750bd56abff Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: MULTICLOUD-83
2017-09-06Refactor proxy APIBin Yang1-19/+21
refactor logger and auth method fix identity proxy bug Change-Id: Ie26c01c2fbf0869dcc77b8c182b775bce90b8d69 Issue-Id: MULTICLOUD-58 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2017-09-04Fix restcall to AAIBin Yang1-2/+2
fix restcall to AAI, and fix extension API response Change-Id: I0d786135de5c4d96d447a51af99adfe04178765e Issue-Id: MULTICLOUD-58 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2017-09-01Clean up *pass* instructionsVictor Morales9-48/+0
The *pass* python instruction is required in some circunstances. Change-Id: I00acab2bad03a97eba7a7e0a3298f2685f21c298 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: MULTICLOUD-83
2017-08-31Add Python 3.5 supportVictor Morales11-21/+21
Python 2.7 will be supported until 2020[1]. This changes helps to prepares the transition to the transition to Python 3.x and those systems which not support other versions. [1] https://hg.python.org/peps/rev/76d43e52d978 Change-Id: Ic2847e907e29d565c89b0448135393f923de20e3 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: MULTICLOUD-83
2017-08-29Add OpenStack proxy for newtonBin Yang1-16/+118
refactor seed code for newton add proxy for identiy,service, add registration, extension management Issue-Id: MULTICLOUD-58 Change-Id: I6a7a21427af4c88b7f060470c1176009c13fc19e Signed-off-by: Bin Yang <bin.yang@windriver.com>
2017-04-19Fix bug with regarding to region_name filterv2.0.0release/mercuryBin Yang10-28/+14
Change-Id: Icbf6418ca0b25ca39e47b572a0793b559d57ea81 Issue-Id: MULTIVIM-62 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2017-03-31Fix issue to delete flavor APIBin Yang1-10/+19
delete extra-specs of flavor might fail, but does not impact the deletion of flavor, so leave it alone Change-Id: I0352cf4e3eb2894b0868b7dc8ab62acfbc060778 Issue-Id: MULTIVIM-61 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2017-03-29Fix bug in server APIBin Yang1-2/+16
add nicArray to server information model Change-Id: I58940d2d18a233b5c01bf930acc6c98d68b803ca Issue-Id: MULTIVIM-59 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2017-03-29Fix bug in server APIBin Yang1-27/+180
fix bug resulting in failing to attach volume to server Change-Id: I9e9be9632c36967d29f983fbd082e4a6ed87ce3c Issue-Id: MULTIVIM-59 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2017-03-28Expose detail information upon API call failureBin Yang10-11/+86
Change-Id: I6e42cebeb7e1c5edd3f77b8c0c6c091d04fcb364 Issue-Id: MULTIVIM-58 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2017-03-28Fix issue of server APIBin Yang1-1/+3
Add name field in response Change-Id: I5b9c9b37b6760962667bd136e1a9b48974048f0d Issue-Id: MULTIVIM-57 Signed-off-by: Bin Yang <bin.yang@windriver.com>
2017-03-27Add traceback to all APIsBin Yang10-21/+56
fix a bug in vport API as well. Change-Id: I2e4db0b1576a3208285df59db8a238315dd48f91 Issue-Id: MULTIVIM-55 Signed-off-by: Bin Yang <bin.yang@windriver.com>