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
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
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
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
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
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
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
- Replace assertEqual for package list checks to assertIn and assertNotIn
for object in TestEnvironmentTemplatesSanity class.
Change-Id: I0ef348438bd8ec3cc4ef6027fdc95165495390d5
Related-Bug: #1545090
- 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
- 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