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
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
Felipe Monteiro 634e0daa9a 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
zhurong 828445c555 Deleting dates from dictionaries to skip it in assert
Ref [1] test_create_and_delete_env_template and
test_get_public_private_both_env_templates tests failed, due to
the dates are not assert.
This patch will delete the dates from the dictionaries.

[1]: http://logs.openstack.org/92/408792/1/check/gate-tempest-dsvm-murano-api-ubuntu-xenial/5d02736/testr_results.html.gz



Change-Id: I571b98612c28f0638b095d80d1872b9b54b8c0c5
2016-12-12 01:29:50 +00:00
Jenkins b8044f5d39 Merge "Fix removes date_time items from dictionaries" 2016-11-29 19:36:45 +00:00
Ilya Popov 787f14baa2 Fix removes date_time items from dictionaries
Some functional tests fail because they assert dictionaries
with date/time items. For example, test_environment_template_create
checks that dictionary env_template exists in env_template_list
dicrionary list. All mentioned dictionaries have date/time items
with keys 'Created' and 'Updated'. If the system, where functional
tests are executed will be quite slow - time in these dictionaries
could differ. This behavior will result corresponding test to fail
even if all tasks will be executed successfully because time in
dictionaries for 'Created' and 'Updated' keys will differ and
assert will fail

Removing the date/time items from dictionaries will help to
successfully pass functional tests

Closes-Bug: #1626733

Change-Id: Ife3e157d9c3e8f0a6c1680b6134fd2c40dd62faf
2016-11-29 09:37:10 +03:00
David Moreau-Simard f0bc9476be 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
Jenkins df761a16f3 Merge "Fix application template update" 2016-06-28 08:58:04 +00:00
visitor 806fd1c75f 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 6e35fb4b57 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
Lin Yang 736821143e 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 039114c36f Do not use list lenght checks in Env-Templates test suite
- Replace assertEqual for package list checks to assertIn and assertNotIn
for object in TestEnvironmentTemplatesSanity class.

Change-Id: I0ef348438bd8ec3cc4ef6027fdc95165495390d5
Related-Bug: #1545090
2016-03-02 18:41:55 +03:00
Lin Yang 72cc7bf68e Fix incorrect result of listing templates
- When user executes 'murano env-template-list', it only returns all
  templates belong this tenant, and doesn't include public templates
  from other tenants.
- It returns all templates belong to tenant when only requests
  private templates.

Change-Id: I50f70f28827c851139f74cff3923843c3d48170b
Closes-Bug: #1542626
Closes-Bug: #1540709
2016-02-09 23:07:07 +08:00
Victor Ryzhenkin f9fd0445ab 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