Commit Graph

126 Commits

Author SHA1 Message Date
Ghanshyam Mann 1ca439adb0 Fix import of orchestration_client in base class
orchestration_client is recently moved from tempest
to murano-tempest-plugin but there is one import error
and instantiation of orchestration_client. Fixing the
error.

Change-Id: I0743a6c1e9a97740aa5e5cb7f10bc0f06aabbf05
2022-05-23 20:18:01 -05:00
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
Andreas Jaeger 110bde6cd8 Remove retired congress
Congress has been retired and requirements-check fails now, remove
congress.

See also https://review.opendev.org/721741

Change-Id: Ic2d74543f65a60ccb567aae4c4012c422884bb50
2020-06-06 10:11:12 +02:00
zhurong b6d544c27f Remove six usage
Change-Id: Ic6865589c1265185cb22d4caa197b3293fe50465
2020-04-16 02:32:26 -07:00
Andreas Jaeger 393b270951 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Change-Id: I2683bc1a7c962da137de4b77aac450f08d1f6c4a
2020-03-30 08:33:58 +02:00
Ghanshyam Mann 6175bf8f7c Remove use of deprecated config options for volume API selection
Tempest has moved the Volume APIs testing to v3 as default and can be run
under v2 API via catalog_type.
- https://review.opendev.org/#/q/topic:volume-default-testing-v3+(status:open+OR+status:merged)

Below config options were deprecated since Rocky and now Tempest is going
to remove those (Needed-By patch):
    * ``CONF.volume-feature-enabled.api_v2``
    * ``CONF.volume-feature-enabled.api_v3``

Change-Id: Ib35bc0c4f9581857aba2fca4a17dc24e7424e8bd
Needed-By: https://review.opendev.org/#/c/698754/
2019-12-12 17:02:31 +00:00
Rocky 42f113e69e Remove possible existing packages in deployment test
In scenario test, test packages will be uploaded and then deleted after test
executed. But in case of the packages deletion failure, it will block the
following tests.

This patch checks and removes those test packages before uploading them.

Change-Id: I90c5d903d8c5c3eeface2735bba61d01a877aaf8
2019-02-28 20:37:15 +11:00
zhurong 435e59405e Fix python2 and python3 compatible
Change-Id: Icfada31a9aa9393def784bfe1f0b8fd49279abba
2018-12-13 18:15:45 +08:00
zhurong 6a462b61e2 Revert "Skip test_deploy_app_with_volume_creation_readonly test to unblock murano gate"
This reverts commit 7ad8e9ef63.

Change-Id: I55c1ba452120bc68a819cc447715409f7b4bfb13
2018-08-07 10:58:24 +08:00
zhurong 354550af1f Add a space for the skip message
Change-Id: I10d5b2c019b9bc0952ed0471de5a8b8bfcb82a85
2018-08-04 15:25:07 +08:00
Chandan Kumar 3788a62b1f Use tempest.lib.decorators instead of nose
* tempest.lib.decorators provides a better way to handle attrs, let's
  use it instead of using nose from tempest.lib stable api.

Change-Id: Iad64bbaac517b8e1f53ec7046691a79e63f4f74d
2018-08-02 01:15:17 +05:30
zhurong 6aa5f13cab Move functional test to murano-tempest-plugin
Change-Id: I19debb3ca8cceb99d21a5bc500264b18e6bce8ce
2018-07-30 10:57:38 +00:00
Zuul 55717365c7 Merge "Add apt-get update in application deployment" 2018-02-12 08:18:24 +00:00
Zuul 71f0ce08dd Merge "Remove obsolete json.loads with _parse_resp" 2018-02-11 22:05:52 +00:00
Zuul b93dcc797f Merge "Fix for python3" 2018-02-11 22:00:45 +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
zhurong 535e537647 Add 'orchestration' config group for murano tempest
Since I1c02fd88c3d93b511ff4a6b54b668ebd306481a9 this commit
Remove deprecated 'orchestration' config group options,
cause the error in murano tempest test:
tempest.lib.exceptions.UnknownServiceClient: Service clients named orchestration are not known
we should add those config in murano tempest.

Change-Id: I5cd674b94ee472c5b5ab6a9a51170d89880887a4
2018-01-31 07:42:24 +00:00
zhurong 0a35a3c88f Revert "Skip test_deploy_app_with_volume_creation_from_backup test to unblock murano gate"
cinder change: I9f1f39b30d43dc16a474febcf6549cf1901732ec has merged
This reverts commit 04d53edd7f.

Change-Id: I1122de2b790c7dbdf2c983c845efb90d4bb16a25
2018-01-16 00:38:47 +00:00
Rocky 8829dd49cd Add apt-get update in application deployment
apt-get update should be performed first before installing the
debian packages, otherwise it may breaks during the application
script execution in tests.

Change-Id: I0c2e35fe1c05182ab7a9db094f787df9a8df1248
2018-01-11 13:53:38 +11:00
zhurong 04d53edd7f Skip test_deploy_app_with_volume_creation_from_backup test to unblock murano gate
Since Idd6c6be1c8bdf4dcf730f67e75a58a0329fe5259 this commit add the
jsonschema validation for backup restore, restore a volume using null
name or uuid will failed. This breaks the original process.
So we skip this test, when it fixed, revert this patch.

Change-Id: Iaba14c48e1a4f7d837df4a9881953d2cfa311545
2018-01-09 14:49:04 +08:00
zhurong 7ad8e9ef63 Skip test_deploy_app_with_volume_creation_readonly test to unblock murano gate
Change-Id: Ia473acdb952e3bede04416269abf690122e74db9
2017-12-25 05:00:46 +00:00
zhurong 64f763a4ac Fix tempest-dsvm-murano-cfapi NoSuchOptError
Change-Id: Ieb0a94fec4ba3ae25ee65eda442b4cdef090d3fd
2017-12-07 13:36:16 +08:00
zhurong 1f048b81ff Fix pep8 error
Change-Id: I7fbf2ea9fd49ec547553a4d3e8452cff989779d0
2017-12-05 10:50:51 +08:00
Jenkins ff2860119e Merge "Added Tempest API client methods and Tempest tests for sessions and deployments" 2017-08-24 09:59:10 +00: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
Jenkins 2c46d469ab Merge "Added Tempest tests for publicizing a package" 2017-08-04 09:37:00 +00:00
Wriju Bhattacharya 311f98038d Added Tempest tests for publicizing a package
Added tests for following scenarios:
    * publicize a non-public package
    * publicize a package as non-admin user (negative test)

Change-Id: I0c2ef75535cdd894ce30d1c1404ce964ec00b248
2017-08-03 12:21:18 -04:00
Jenkins 09c2a3367e Merge "Added Tempest negative tests for environments" 2017-08-03 02:49:58 +00:00
Wriju Bhattacharya 091d36fefb Added Tempest negative tests for environments
Added negative tests for the scenarios:
  * Abandon environment with invalid id
  * Update environment with invalid id

Change-Id: I19d37cd0664a5faa789f79f1163c701316bf890d
2017-08-02 14:07:57 -04:00
Andrea Frittoli 47ae16b5d3 Refine skip messages
Fix a few nits in skip messages.

Change-Id: Ie2da617839983f71dab459ce5afa698ad21441a9
2017-08-01 06:58:03 +01:00
Andrea Frittoli eb19ad160a 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 7988509b14 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
Jenkins 0575528aba Merge "Update testtools.testcase.attr to decorators.attr" 2017-07-20 12:08:24 +00:00
Felipe Monteiro ee7dfac465 Update testtools.testcase.attr to decorators.attr
Tempest has moved their attr decorator to tempest.lib [0]. So now
that decortators.attr is a part of Tempest's stable library, we
should use it instead of testtools.testcase.attr, since it is
the standardized way of adding attributes to test cases in
Tempest.

This allows the possibility of doing:

    @decorators.attr(type=['foo', 'bar'])

Rather than:

    @testtools.testcase.attr('foo')
    @testtools.testcase.attr('bar')

[0] https://review.openstack.org/#/c/456236/

Change-Id: I76c23e46e57dbdbbce046f1522ed5489e5ec9d1f
2017-07-19 18:10:00 +00:00
Jenkins 9166e6eac1 Merge "Make cinder volume attachments available" 2017-07-19 15:03:45 +00:00
zhurong f02a186f47 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
Andrea Frittoli f01e90a95b Init the orchestration client from config (part2)
Tempest will not be initialising the orchestration client by default
anymore since Heat is not a service hosted in Tempest (for a long time now).
The client is still available in Tempest (as long as it's not made
available by heat somewhere else), so to use it it's enough to pass it's
configuration to it.

This was partly fixed in Ic6fef4b4f260d13efd7b035bc012369f0da55602 but
the patch was not complete.

Change-Id: Iba1680276fec776a81f1e91fd591137e39bf6d07
2017-07-18 21:19:39 +01:00
Andrea Frittoli bf03946f09 Init the orchestration client from config
Tempest will not be initialising the orchestration client by default
anymore since Heat is not a service hosted in Tempest (for a long time now).
The client is still available in Tempest (as long as it's not made
available by heat somewhere else), so to use it it's enough to pass it's
configuration to it.

Change-Id: Ic6fef4b4f260d13efd7b035bc012369f0da55602
2017-07-17 16:19:36 +01:00
zhurong bd3d15d2d2 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
Jenkins fb276c3eba Merge "Use default credentials if None has been passed" 2017-07-05 11:25:05 +00:00
Sofiia Andriichenko d2a12c76cb Use default credentials if None has been passed
Reason - credentials do not load  on import in tempest plugin clients.py


Change-Id: I0303d9c7c9d1b35486874ea999dc36b2430c6ac4
Closes-Bug: #1701255
2017-07-03 13:39:18 +00:00
Kirill Zaitsev 7f08dbec6c 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
Jenkins 2bc0fa4025 Merge "Use tempest.test.BaseTestCase for murano tempest tests" 2017-06-26 13:05:06 +00: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
Felipe Monteiro 54d51480ee Use tempest.test.BaseTestCase for murano tempest tests
While Tempest's own plugin documentation recommends that
plugins only consume tempest.lib [0], the BaseTestCase in
tempest.test is more feature-rich, comprehensive, and fault-tolerant
than the BaseTestCase in tempest.lib.

Many plugins like keystone_tempest_plugin already use the
BaseTestCase in tempest.test. Also, QA PTL said it would be
fine to make the transition when asked in IRC [1][2].

This commit specifically:
  - uses the base tempest class pattern specified in
    `tempest.test.BaseTestCase`: skip_checks for skipping tests based
    on environment config settings; setup_clients for instantiating
    clients and client managers; resource_setup for setting up
    class-level resources; and resource_cleanup for cleaning up
    class-level resources
  - removes unusued helpers like verify_nonempty, except in classes
    that explicitly already use it
  - removes clearing credentials in tearDown because the code isn't
    even executed due to a bug introduced by
    I51434685555c1da92401891a60285bf52571b8b5
  - separate admin clients from non-admin clients by using os_admin
    vs os_primary

[0] https://docs.openstack.org/developer/tempest/plugin.html#plugin-structure
[1] http://eavesdrop.openstack.org/irclogs/%23openstack-qa/%23openstack-qa.2017-06-12.log.html#t2017-06-12T20:38:19
[2] http://eavesdrop.openstack.org/irclogs/%23openstack-qa/%23openstack-qa.2017-06-12.log.html#t2017-06-12T21:45:56

Change-Id: Ia09dbc52ba13ca822a539e509e0e517592435aec
2017-06-17 16:13:51 +01:00
Jenkins 410422d7c4 Merge "Stop using aliases for creds manager" 2017-05-10 19:50:05 +00:00
Jenkins e293698533 Merge "Replace six.iteritems() with .items()" 2017-05-03 20:35:15 +00:00
Jenkins a4c05dc83e Merge "Allow users to assign a security group to an app" 2017-05-03 19:42:46 +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