Commit Graph

11 Commits

Author SHA1 Message Date
zhurong b6d544c27f Remove six usage
Change-Id: Ic6865589c1265185cb22d4caa197b3293fe50465
2020-04-16 02:32:26 -07: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
Alexey Deryugin 849b8ea600 Make tests compose packages in temporarily directory
OpenStack Puppet CI uses packaged version of Murano,
so we don't have write permissions to test directory.
We need to compose Murano packages required for
tests in temporarily directories to fix it.

Closes-Bug: #1620706
Change-Id: I0334869237208f707b66b1e473e6044b1d3fe06f
2016-09-08 13:02:20 +00:00
oshykhkerimov 8d6763e3ec Add tempest versioning test suite
This patch adds tempest tests for Murano Package versioning.
The next tests are provided:
1. Upload two packages which differ with only versions and
check their availability in artifact repository.
2. Deployment test of two packages in one environment, which
differ with only versions.
3. Deploy package with missed class by manifest version require.
4. Deploy package with available class by manifest version require.

Change-Id: I48fb1a1af475a99f3b7a6313338d2bbcfb95d579
2016-08-15 14:39:31 +00:00
Jenkins 353a71020d Merge "Refactor tempest utils readlines() to read()" 2016-08-10 09:33:57 +00:00
MStolyarenko efa70b7afc Add base and packages for tempest murano scenario tests
This commit adds implementation of methods and resources
which are used for tempest app deployment and cinder volumes
support tests

Change-Id: Ibd70aa56987d8f69547fb9f114b6a1a69cfcbe0c
targets: bp normalize-murano-tests
2016-08-03 15:59:59 +03:00
Omar Shykhkerimov 5175caf432 Refactor tempest utils readlines() to read()
Change-Id: I7882d312a3a42a9fb766b3507641c586a665f36f
2016-07-28 16:41:37 +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
Nikolay Starodubtsev 2d0ed82d9b Fix cfapi test job
After change I17ab2eba0fd6c42309667f42d0644d21940ab02d was merged cfapi
job starts failing. This cause of it is the change in mock_muranopl.yaml
file which is used in tempest tests. Now we remove this change and
update mechanism which added class name by overwrite mock_muranopl.yaml.

Related-Bug: #1604050
Change-Id: I9ab62cd60b25e39f9ec90a85dfa25c80fc3adbad
2016-07-20 13:36:11 +00: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
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