Commit Graph

11 Commits

Author SHA1 Message Date
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
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
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
David Moreau-Simard 17f65f93c5 Reduce the amount of smoke tests from 61 to 40
Smoke testing is designed around a compromise in testing quality in
order to have results in a way that consumes less resources and time.

We want to be able to have a reasonable confidence that the service
works fairly well without having to run too many tests.

As such, let's keep what still amounts to a fairly good testing of
each component tagged as smoke.
More in-depth testing can still be achieved with the right pattern
matching but smoke testing will not be as lengthy and resource
consuming now.

Change-Id: I1544fe8d0b4548e6c078310b08fc83af2c10b211
2016-11-25 19:11:52 +00:00
Victor Ryzhenkin d2c120f218 Do not override credential provider in tenant isolation tests
Currently the dynamic cred provider will be overrided each time
when the dynamic crededentials were generated. It causes resource
leakage in tests which used multiple dynamic credentials
e.g tenant isolation tests.

This patch makes cred generator reuse dynamic cred provider which
used for creation of first isolated credentials for second isolated
credentials too.

Change-Id: I657d66fd7cc4463e6a97cbf25d3db0cd6ff66602
Closes-Bug: #1606987
2016-08-01 08:53:22 +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
Lin Yang 57d20a1320 Change to tempest stable API
Previously several places in murano tempest test use unstable tempest
api. In fact, it should use api from tempest.lib.* [1]. So fixed them
to make them more robust and resilient to tempest changes. The
unstable api removed here include:
  * tempest.clients
  * tempest.test

[1] http://docs.openstack.org/developer/tempest/plugin.html#stable-tempest-apis-plugins-may-use

Change-Id: I018b00cc026a707da6afe40a327b44e97c16db53
Related-Bug: #1589713
2016-06-16 18:14:20 +08:00
Victor Ryzhenkin 4ff81ee2d2 Support GLARE configuration in Murano tempest plugin
- Add plugin variables for GLARE
- Add skip checks for repository test suites.

Change-Id: Idb62fb306bb853d6a3e15afd35452a1d8f5267dd
Targets: blueprint murano-glare-devstack-testing
2016-05-24 12:35:47 +00:00
Victor Ryzhenkin 35b4d37446 Don't use list lenght check in Repository test suite
- Replace assertEqual for package list checks to assertIn and assertNotIn
for object in TestRepositorySanity class.

Change-Id: Iec3c1edbb98de3332888dd01b2b428c8496c3fa1
Closes-Bug: #1545090
2016-02-13 17:08:17 +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 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