Commit Graph

14 Commits

Author SHA1 Message Date
zhurong 1ea1cda5d4 Remove murano_tempest_tests from murano repo
Change-Id: I5da1c660393df335f8d5e8ab17b23bb21a8e3257
2017-12-07 02:03:48 +00:00
Andrea Frittoli 90d5d47a9a Refine skip messages
Fix a few nits in skip messages.

Change-Id: Ie2da617839983f71dab459ce5afa698ad21441a9
2017-08-01 06:58:03 +01:00
Andrea Frittoli 12beb64c78 Handle available volume client versions
If Cinder is not available or Cinder v1 only is available skip
volume attachment tests. Else prefer volume v3 where available
or fallback to v2 otherwise.

This requires a Tempest patch for the snapshots v3 client.

Change-Id: If3b6a2c71498c19a0a8dfeb4c51e2c80e5a918f4
Depends-on: I21f07f7b3e8f22055e7978c0bf4aa01b80b493d9
2017-07-28 23:58:43 +01:00
Felipe Monteiro 7cc0980232 Add idempotent_id decorators to murano_tempest_tests
This commit does 2 things:
  1) Adds idempotent_id decorators to murano_tempest_tests using
     check-uuid --package murano_tempest_tests --fix

  2) Fixes the external white list error that is thrown by tox -e pep8
     (which uses bandit but which was previously not included in
      whitelist_externals)

Change-Id: I8d75601a40baf5749f12151df18a116e8fab628c
2017-07-24 20:33:49 +01:00
zhurong e667abdb84 Make cinder volume attachments available
This commit is revert from Ib996bf50e1b7d542b98cf9d7125b824771c143d6,

Change-Id: Ie866833d205c119254b811654426c586c338d7c8
Closes-Bug: #1703387
2017-07-19 09:21:58 +08:00
zhurong 0c42290126 Unskip test_deploy_app_with_volume_creation test
1.Unskip test_deploy_app_with_volume_creation test
2.change flavor from m1.small to m1.tiny, to reduce the
test failing chances.

Closes-Bug: #1701230

Change-Id: Ib996bf50e1b7d542b98cf9d7125b824771c143d6
2017-07-07 08:34:23 +00:00
Kirill Zaitsev 8fcf417d1c Skip cinder volume creation test
The tempest test  is currently broken and blocks the gate.
This commit adds expectedFailure decorator around it.
So when the bug is fixed we would not forget to unskip the test.

Change-Id: Id3adbf59e116e2d73c74e782a345c7ca8d6fa41e
Related-Bug: #1701230
2017-06-29 13:45:46 +00:00
Paul Bourke 107fc981be Make CinderVolume attachment info available
Make the 'attachments' attribute of OS::Cinder::Volume available in
MuranoPL.

Users can do the following in their applications:

  - For: blockDevice
    In: $this.instance.blockDevices
    Do:
      - For: attachment
        In: $blockDevice.volume.attachments
        Do:
          - $reporter.report($this, attachment.device)
          - $reporter.report($this, attachment.attachment_id)
          ...

Implements: blueprint devicename-from-volume-attachment
Change-Id: I2986efde085dd8029f2520cb5744e75f6a66f282
2017-04-13 10:32:21 +01:00
Felipe Monteiro 10752e6bba Renames wait_for_volume_status in tempest tests for consistency.
A recent change in Tempest [0] is breaking 2 murano tempest tests;
wait_for_volume_status was changed to wait_for_volume_resource_status,
causing an AttributeError to be thrown [1].

Additionally, a recent change in Cinder [2] removed multiattach
for all drivers, causing one of the murano tempest scenario tests
involving deploying an environment using a multiattach-enabled volume
to fail.

This patch renames the function wait_for_volume_status to be compatible
with the recent Tempest change. It also uses staticmethod delete
functions provided by the Tempest API for delete_volume and
delete_snapshot. It also removes the multiattach property in the
relevant tempest test.

[0] https://review.openstack.org/#/c/394588/29/tempest/common/waiters.py
[1] http://logs.openstack.org/01/435101/2/check/gate-tempest-dsvm-murano-api-ubuntu-xenial/911be71/console.html
[2] https://review.openstack.org/#/c/428365/

Related-Bug: #1668848
Co-Authored-By: ricolin <rico.lin@easystack.cn>
Change-Id: I15ae3f9c931ba606883a22a5af719f79685093a7
2017-03-03 06:25:54 +03:00
Stan Lagun b0c4222ff6 Don't purge random stacks
Cinder tests were deleting all the Heat stacks in their teardown.
This caused strange deployments errors when the tests were executed
cocurrently because stacks from other tests were deleted and partially
recreated in concurrent deployments which caused different consistency
errors.

Change-Id: I1670fa4613914c463328c3aa45c3a385efcc2a8c
Closes-Bug: #1643936
2016-11-22 19:01:31 +03:00
Victor Ryzhenkin 8783d53147 Move test with cinder backup creation to the IsolatedAdmin suite
- Move test_deploy_app_with_volume_creation_from_backup to the
IsolatedAdmin test suite
- Make tests using cinder v2 version due tempest defaults
- Unskip test_deploy_app_with_volume_creation_from_backup test

Closes-Bug: #1634876

Change-Id: I8b3ab7f000804f6b368d06ef877776b324774ad4
2016-10-20 16:08:04 +03:00
Alexander Tivelkov 254202b98e Unblocking the gate
Skipped test_deploy_app_with_volume_creation_from_backup test

Tempest integration test is failing for volume creation from backup
(reported as bug #1634876). To unblock the gate the appropriate test
is skipped for now while the bug is being investigated.

AgentListener unit test didn't properly override configuration, so in
some circumstances it could be executed with the disabled murano agent
which was leading to errors.

At the same time AgentListener itself contained some legacy code
leading to under-initialized state in case if the listener was
disabled in config file.

Related-bug: #1634876
Change-Id: I5642b8017c61f77afb68463ba8eb3906eeae7225
Closes-bug: #1634483
2016-10-19 15:54:31 +03:00
Victor Ryzhenkin f547dff5c4 Repair cinder integration tests
- Use image from nova scenario tests for cinder tests
- Correct environment status wait function
- Replace backup waiters with new tempest changes
- Use devstack trueorfalse common function to determine
boolean values

Closes-Bug: #1626872

Change-Id: Id2172d3d9b314eb8132d97ec8868028c714a35c3
2016-10-17 16:50:33 +03:00
olehbaran cf22984c15 Add cinder volumes attachment tests
This commit adds cinder volumes support tests for app deployment:
 - with existing volume
 - with volume creation
 - with volume from image creation
 - with volume from volume creation
 - with volume from snapshot creation
 - with volume from backup creation
 - with volume creation, multiattach and readonly on
 - which using boot volume as image

Change-Id: Ie1e0f050faf3bdc0b32f7bda15d78995434ee812
targets: bp normalize-murano-tests
2016-08-04 10:16:26 +03:00