summaryrefslogtreecommitdiff
path: root/heat/tests/openstack/trove
Commit message (Collapse)AuthorAgeFilesLines
* Enable to specify network for Trove Clusterchestack2017-12-151-3/+16
| | | | | | | | | we should enable heat to specify network for trove cluster after [1] merged [1] https://review.openstack.org/#/c/179443/ Change-Id: I161b7cc1c4824f6aa4a4667bf2d909a2ead81cb4
* Remove obsolete cache_data from StackZane Bitter2017-07-211-3/+1
| | | | | | | | | This is no longer required as the convergence 'lightweight stack' used for checking individual resources has now merged with the other code paths: in every case intrinsic functions are resolved using the data about resources stored in StackDefinition and accessed via ResourceProxy. Change-Id: I41cf21c8e1babe819b4b6c668749ed5915ae3b54
* Fix python-novaclient 8.0.0 related issuesrabi2017-05-161-23/+0
| | | | | | | | | | New python-novaclient release has removed support for network/image/floating_ip apis. This also means nova-network support would also cease to exist after this change. Change-Id: Icbcf279c10720f99a0aed1a3aaaf3945c5442a8a Closes-Bug: #1690936
* Remove usage of parameter enforce_typeChangBo Guo(gcb)2017-05-081-1/+1
| | | | | | | | | | | | Oslo.config deprecated parameter enforce_type and change its default value to True in Ifa552de0a994e40388cbc9f7dbaa55700ca276b0. Remove the usage of it to avoid DeprecationWarning: "Using the 'enforce_type' argument is deprecated in version '4.0' and will be removed in version '5.0': The argument enforce_type has changed its default value to True and then will be removed completely." Change-Id: I91b0f0a52b5ce8654702510eed76d5dea8cc8fe4 Related--Bug: #1517839
* OS::Trove::Instance observe reality implementationPeter Razumovsky2017-03-231-8/+40
| | | | | | | | | | Add override methods get_live_resource_data and parse_live_resource_data. Also, add translation rule for flavor. implements bp get-reality-for-resources Change-Id: I37f0a7af5d1fd3031f2d0f2141a52b7443df8ebb
* No need to check if resource not createdhuangtianhua2017-02-151-0/+1
| | | | | | | Check fail directly if resource not created. Change-Id: I315fa5f2acc7780156df27ec40ea701672ef65d1 Closes-Bug: #1652902
* Refactor OS::Trove::Instance resource testsPeter Razumovsky2017-01-201-406/+224
| | | | | | | Refactor trove instance tests and rename os_database module to actual name "instance". Change-Id: Ie84a0f32f8228b7fe83e1a4945512c3440d9e45c
* Default implementation parse_live_resource_dataPeter Razumovsky2016-12-141-5/+2
| | | | | | | | | | | | Add default implementation for parse_live_resource_data to reduce number of override methods in resource plugins. Also, add separate method for resolving update_allowed properties. implements bp get-reality-for-resources Change-Id: Ie7ee043d06fbf3bc910fa40dc7f8f17c2fbb4303
* Move call trove cluster delete to check completePeter Razumovsky2016-11-211-1/+48
| | | | | | | | | | | | There could be situation, when cluster cannot be available for deleting, for example, it has BUILDING status. In such case delete call will raise UnprocessableEntity exc. So, need to move cluster delete to check_delete_complete and try to delete cluster. Also, test successful cluster delete was fixed. Change-Id: Ie05f33d6a3f653406d80a362066cac3ffec1e1ef Closes-bug: #1597374
* Remove oslo-incubator use in other client pluginsrabi2016-11-182-2/+2
| | | | | | | | | | | | | | | oslo incubator code is planned to be removed from the clients this cycle. Remove the redundant usage of it from other client plugins. This also includes an unrelated change(to remove the vpnaas post configuration, as we have removed the plugin from the gate jobs), to fix the gate. Last but not least, it limits the number of connections to the database to work around a convergence issue. Change-Id: I01c46197dfebb1eb674817ce81792972a06e529f
* Allow hyphens in OS::Trove::Instance database namesJason Dunsmore2016-09-061-0/+13
| | | | | | | Trove allows hyphens in database names. Change-Id: I1b25c1adaecb7de8edf1599829aa341b91b19e41 Closes-Bug: #1619021
* Fix is_using_neutronRabi Mihsra2016-07-271-0/+2
| | | | | | | | | | | Recently we moved to use SessionClient with the client plugins and it seems, just creating the client does not ensure that the service is available. We should check for the endpoint. Change-Id: Iae9fa8758314a4b04224127a181eb1054aa72d8a Closes-Bug: #1606951
* Clean up tests setupDmitriy Uvarenkov2016-06-101-2/+0
| | | | | | | | | | utils.setup_dummy_db() is called in parent class. resources.initialise() seem to have no actual effect in this tests. self.ctx = utils.dummy_context() is often declared but not used. Change-Id: Iadcfd58b365ea8788f08a12ffaba612c6e5286cb
* Unit tests: Don't use ResourceDefinition as cfn snippetZane Bitter2016-05-011-4/+9
| | | | | | | | Eliminate from the unit tests the deprecated use of a ResourceDefinition as if it were a snippet from a CloudFormation template, in preparation for this being removed in future. Change-Id: I0449d3bff19c1294a9d0a475a4a9b623c73e11db
* Add one general testing of resource_mappingSergey Kraynev2016-02-251-6/+0
| | | | | | | | | | | | | | | Each resource in Heat has resource_mapping fucntion for loading his type in environment for futher using. This method should be callable and should return dictionary, where key is resource type and value is corresponding resource class. More over resource_type should have format: "Platform Type"/"Service type"/.../"Resource Name" This patch adds common test for this method and check all modules in heat.engine.resources sub-directories. Duplicate useless tests were removed. Change-Id: I8148811418c21277a4b732de98a53c5291f57f1f
* Merge "Cleanup neutron finder functions"Jenkins2016-02-221-8/+10
|\
| * Cleanup neutron finder functionsRabi Mishra2016-02-181-8/+10
| | | | | | | | | | | | | | There are too many functions doing similar things. Let's get rid of some of them to avoid confusion. Change-Id: I7674bfebf682bc784572caa6a4ab8bc5dceca46b
* | Fix several nits in os_database trove resourceSergey Kraynev2016-02-191-4/+1
|/ | | | | | | | | | | | | | | This patch fixes several issues: - Set using LOG.warning instead of LOG.warn - Using common.HeatTestCase class as parent class for InstanceUpdateTests. Which allows to hide annoying output: "Unexpected instance state change during update. Retrying." - Stop re-registering OS::Trove::Instance, which is a root cause of message: "Changing OS::Trove::Instance from <class 'heat.engine.resources.openstack.trove.os_database.OSDBInstance'> to <class 'heat.engine.resources.openstack.trove.os_database.OSDBInstance'>" Change-Id: I1ccba614e29c089cfa933d347cc55b9145b25a23
* Merge "Updated validation for OS::Trove::Instance"Jenkins2016-02-121-8/+2
|\
| * Updated validation for OS::Trove::InstanceChris Hultin2016-02-051-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Trove supports using a default datastore version if none is specified in the request. The OS::Trove::Instance resource was raising an exception rather than allowing Trove to use the default version in the event that there were multiple versions of a specific datastore available and a version was not specified. By removing the section of code that performed this validation, we can allow Trove to determine which datastore version to use. Change-Id: I0ff1ebd1e7d70ea0a98630584174cf8ce1ce6abd Closes-Bug: #1542437
* | Allow updates for OS::Trove::InstanceRandall Burt2016-02-011-0/+274
|/ | | | | Change-Id: I83b1550557424aaa48bf275ddd6e4c39984dc1e2 Closes-Bug: #1524463
* Use flavors.get when finding with idRabi Mishra2015-12-282-4/+8
| | | | | | | flavors.get is more efficient than flavors.find when looking for falvors with id. Change-Id: I82a12e5287766d88a815c15a68515b3918a63988
* Use flavors.find interface to find flavorsRabi Mishra2015-12-162-12/+11
| | | | | | | This patch uses 'flavors.find' to look for flavors rather than finding them from 'flavors.list' output. Change-Id: I48b058a6b01d941d2e0f362900d0c85bc7c71fbc
* Use EntityNotFound instead of FlavorMissingricolin2015-11-271-1/+1
| | | | | | | Replace and remove FlavorMissing. Partial-Bug: #1515603 Change-Id: I638dac724b6e3df87848a025d40b663fe804b6af
* Change namespace for Trove resources and testsricolin2015-11-183-0/+910
Change namespace to more specified. Use path to specify resource or test should be enough. Change-Id: Ie1b524017c3b192ae73dad026cf460d18b1025f4