Commit Graph

29 Commits

Author SHA1 Message Date
Ghanshyam Mann a96aab9567 Move orchestration_client from tempest to murano tempest plugin.
orchestration_client in Tempest is planned to be removed and heat
client present in heat_tempest_plugin is supposed to be used
- ba43685c13/heat_tempest_plugin/services/clients.py (L103)

Meanwhile murano_tempest_plugin is the only user of tempest orchestration_client
so moving that here and it can be removed once murano switch to use
client from heat_tempest_plugin.

Change-Id: I8f160c6b9b59d6915d6fb346be7816b4b8084939
2022-05-20 21:03:54 -05:00
Zuul 71f0ce08dd Merge "Remove obsolete json.loads with _parse_resp" 2018-02-11 22:05:52 +00:00
Rocky e4b04df9c8 Remove obsolete json.loads with _parse_resp
Replace json.loads to _parse_resp since the tempest bug 1539927
is fixed and released.

Change-Id: Ic923a4985c99ea61e3b476b696c29fb0aa3d577c
2018-02-09 14:31:13 +11:00
Rocky 933ec08a96 Fix for python3
Change-Id: I81b676e0f3489f1c6dcd05918f4bd9b2ca034823
2018-02-09 11:07:30 +11:00
Wriju Bhattacharya 767623d98f Added Tempest API client methods and Tempest tests for sessions and deployments
Added tests for following scenarios:
    * deploy session
    * list all deployments
    * list deployments (in a specific environment)
    * list a specific deployment's statuses

Added application_catalog_client methods for following functionality:
    * list all deployments
    * list deployments (in a specific environment)
    * list a specific deployment's statuses

Change-Id: I0ac1b2a6216fd1794ba06ee0b26e6c2c90118526
2017-08-23 16:55:33 -04:00
Felipe Monteiro e2c430470b Remove long-ago deprecated show_categories
The API catalog endpoint `show_categories` was deprecated back
in Liberty cycle. It should be removed.

This commit removes the deprecated endpoint `show_categories`,
removes it from the API router, and removes references to it
in Tempest tests -- which now test `list_categories` instead.

Change-Id: If1bea7448c0d4aa5fdf37c8400323589d73fdb21
2017-06-22 15:58:25 +01:00
Jenkins e293698533 Merge "Replace six.iteritems() with .items()" 2017-05-03 20:35:15 +00:00
M V P Nitesh 25e04021fd Replace six.iteritems() with .items()
1.As mentioned in [1], we should avoid using six.iteritems to achieve
iterators. We can use dict.items instead, as it will return iterators
in PY3 as well. And dict.items/keys will more readable.
2.In py2, the performance about list should be negligible, see the
link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: I45fa65427318e1c35bb521de46e81ea12ca7b770
2017-05-03 09:17:18 +00:00
Paul Bourke b158b75d2e Add mising timeout to ApplicationCatalogClient
Requests made by tests using this client were not specifiying a timeout,
causing them to appear to hang indefinitely when there's a problem.

Change-Id: Ibcbe7a4af8566339c68265c11df9a09ebbe7f6ca
2017-04-19 16:52:57 +01:00
Valerii Kovalchuk 235c44e7a5 Add environment edit API
'/environments/<env_id>/model/<path>' endpoint added.
GET request responds with the subsection of <env_id>'s object
model located in its <path>.
PATCH request applies json-patch from request body to <end_id>'s
model. It does not contain <path> in the URL.

Change-Id: I672d43464ed7d5722cc574f1a10700b070664f34
Implements: bp environment-edit
2016-10-06 12:48:57 +00:00
Valerii Kovalchuk 57cc16da68 Allow to PUT an empty object model
It was impossible to delete the last component from the env via
CLI, because it was prohibited to make put request with empty body.

APIImpact
Change-Id: I462072ad7c90eec1790b74cae958809aa316c25c
Closes-bug: #1511645
2016-10-03 18:28:53 +00:00
Kirill Zaitsev 0e1647bc09 Add tempest GLARE sanity check tests
This commit adds very basic api tests for glare artifact type for murano
Also adds initial implementation of upload/delete package methods to
tempest artifact client.

Change-Id: Idc6c06570f4674d5d998fc4fb1ec72208662ff2e
Targets: bp murano-glare-devstack-testing
2016-07-22 15:01:34 +03:00
Victor Ryzhenkin a1387135e8 Initial implementation of artifacts client in tempest plugin
- Add artifacts tempest client
- Extend test utils with common utils of muranoclient to parse packages

Change-Id: I55c02a922b80f792afbe9f7be309c66115ebd6b8
targets: bp murano-glare-devstack-testing
2016-07-21 17:36:48 +03:00
Valerii Kovalchuk 38c54ee310 Implement API call and RPC call for static actions
Static public methods can be called synchronously through the
API call without creating environment, object instances and
database records. It is proposed to make RPC call as the single
request-responce for now.
However async API and RPC calls may also be implemented later
exploiting the same pattern as for calling instance methods.
New call can be done through client method (see
Ib6a60f8e33c5d3593a55db9f758e94e27f0a4445)
Tempest and unit tests are added.

APIImpact
Implements: blueprint static-actions
Change-Id: I17ab2eba0fd6c42309667f42d0644d21940ab02d
2016-07-07 17:21:59 +00:00
Jenkins 64b4bb518b Merge "Fix application template update" 2016-06-28 08:58:04 +00:00
visitor 6b3a85019d Including a description field for environment and environment templates
Current environment and environment template information miss a description
 field to describe its functionality. Fixing this request implies to provide
 an extra field in both environment and environment template for that
 information, for instance called text, since description includes the object json.

Change-Id: Ic7dc5f420f453a3f4fa2769860b4a603ab14eaad
Closes-Bug: #1588276
2016-06-23 08:15:13 +02:00
visitor fca418aabc Fix application template update
Updating an application/service in a environment template
does not work and return 404 error.  This patchs solves that
bug.

Change-Id: I03f51c45512c4282ef99ddc1ed9ba55460827a94
Closes-Bug: #1587833
2016-06-21 09:42:28 +02:00
Victor Ryzhenkin 191885bfe9 Update tempest plugin after tempest-lib deprecation
Latest tempest code doesn't using tempest-lib anymore. Tempest-lib
project now marked for deprecation. Tempest-lib code now lives in
tempest repository and to avoid any Import errors connected with
tempest-lib we should update our tempest tests.

- This patch replaces all insertions of tempest_lib to tempest.lib

Change-Id: Ifed108f3b56cc35cc7c5e53f7a0d128e3d4643f8
Closes-Bug: #1551863
2016-03-02 01:09:38 +03:00
Victor Ryzhenkin 1d7224808e Add environment templates test suite to the tempest plugin
- Add environment templates checks to the tempest plugin
- Separate positive and negative checks
- Optimize tests to take a little bit less of time
- Add two new tests for Conflict exception
- Fixed grammar and semantic errors
- Add skip test for public template actions due #1540709

Change-Id: I76d4356e15a2b844734d434cb6f3ed58f9ccb5ab
Targets: blueprint migrate-to-tempest-plugin
2016-02-02 12:59:48 +03:00
Victor Ryzhenkin c62ffc1edc Add categories management test suite to the tempest plugin
- Add categories-related checks to the tempest plugin
- Separate negative and positive checks
- Update base client class with service management methods
- Refactor test implementation and improve code quality
- Streamline repository tests

Change-Id: If61a63624b0d100fb061ad5a807e8017d703e760
Targets: blueprint migrate-to-tempest-plugin
2016-02-01 15:48:46 +00:00
Victor Ryzhenkin 5f4da6e57d Add service management tests suite to the tempest plugin
- Add service management tests to the tempest plugin
- Separate positive and negative checks
- Update base client class with service management methods
- Refactor test implementation and improve code quality

Change-Id: I9989fb519725e4c67da5d40c07d7ca7693c205f4
Targets: blueprint migrate-to-tempest-plugin
2016-01-31 11:47:43 +00:00
Victor Ryzhenkin bc1301a9a9 Add session management test suite to the tempest plugin
- Add session management tests to the murano tempest plugin
- Rework base functions to handle possible errors on request stage
- Separate negative and positive checks

Change-Id: I90825e45d47782d3cce59e0547a33cde3abad602
Targets: blueprint migrate-to-tempest-plugin
2016-01-29 23:15:47 +00:00
Victor Ryzhenkin 3a62a747a8 Add environment management test suite to the tempest plugin
- Add automated tempest tests for environment management API
- Separate negative and positive tests into two different files
- Update base client class with environment management functions

Change-Id: I0ffb99db3520c090bbab74246f0cee044d9daf8e
Targets: blueprint migrate-to-tempest-plugin
2016-01-29 23:15:19 +00:00
Victor Ryzhenkin 4547adc242 Add application catalog repository tests to the tempest plugin.
- Added application catalog package repository tests
- Fixed some flubs in plugin code, for example,
replaced service_broker to application_catalog in app-catalog client
class.

Change-Id: I6bbec1993ef5fd334527e0820743d42b656e3b7e
Targets: blueprint migrate-to-tempest-plugin
2016-01-27 22:16:25 +00:00
Victor Ryzhenkin 26169769f0 [cfapi] Add multiple tests for cfapi service
- Add test for multiple provision action for one space id
- Add test for check purge '?' section during provision

Change-Id: Ic0abefdbd677cd1c906640346a72e4d1423a9183
Implements: blueprint murano-cfapi-func-tests
2015-11-30 18:08:28 +03:00
Victor Ryzhenkin a41cd76976 Add binding test for cfapi
- Add test which will check binding route and functional of cfapi
service.

Change-Id: I958be30ce4fb871a460b37111bd6264f477a5bfb
Targets: blueprint murano-cfapi-func-tests
2015-11-24 17:01:11 +00:00
Victor Ryzhenkin aa0a6ea469 Add negative test for cfapi last_status route.
- Add test which will check, that cfapi returns expected error-code
from last_status request, if requested instance_id doesn't exist.

Change-Id: I2845aad6d08182f64dd4b6ce5f494c564c989c63
Targets: blueprint murano-cfapi-func-tests
2015-11-24 17:00:45 +00:00
Victor Ryzhenkin 586d9312ca Add provision and deprovision test for cfapi
- Add Mock app which will be imported during the test run.
This app will be deployed through Cloudfoundry API Murano Service
Broker.
- Change plugin to make possible create a zip archive
in murano_tempest_tests directory.
- Add application_catalog client into services directory to
perform operations with packages.
- Add utils to make possible dummy app generation.
- Add functions to provide additional functionality to
service_broker client.
- Add functions to service_broker base to make cleanups easier.
- Add provision and deprovision test.

Targets: blueprint murano-cfapi-func-tests

Change-Id: I6fc75f53b8f0c7b2a96ff2e1d5a63529efaf98df
2015-11-24 16:58:24 +00:00
Victor Ryzhenkin c7d7bdc774 Initial commit for service broker tests in tempest plugin
- Add tempest plugin structure
- Add basic functional for tempest service broker REST client
- Add config opts for application catalog and service broker API services
- Add base for service broker tests
- Add service broker test for list applications
- Add tempest plugin configure function into devstack murano plugin

Change-Id: If4c8f95a9d69fccf6f261510b6e02eb67c738ee5
Targets: blueprint murano-cfapi-func-tests
2015-11-06 00:48:40 +03:00