Skip to content

[BUG] Incorrect Tempest test identifiers in test lists #1165

@michal-gubricky

Description

@michal-gubricky

Summary

Some Tempest tests currently defined in our test lists are not being discovered correctly. This is due to missing the required [,negative] suffix in their identifiers. Probably there are some more incorrect identifiers.

Problem Description

When defining specific Tempest tests, simply using the class path is often insufficient for negative tests. If the [,negative] suffix (including the test ID) is missing, the tempest run command fails to match the test, resulting in it being ignored during execution.

Example

For instance, the test test_update_non_existent_security_group is currently not correctly identified unless the full string is provided.

Incorrect/Incomplete reference:

tempest.api.compute.security_groups.test_security_groups_negative.SecurityGroupsNegativeTestJSON.test_update_non_existent_security_group

Correct reference:

tempest.api.compute.security_groups.test_security_groups_negative.SecurityGroupsNegativeTestJSON.test_update_non_existent_security_group[id-27edee9c-873d-4da6-a68a-3c256efebe8f,negative]

The correct identifiers can be verified by running the following command within the tempest container/environment:

tempest run --list-tests | grep test_update_non_existent_security_group

Metadata

Metadata

Labels

IaaSIssues or pull requests relevant for Team1: IaaSbugSomething isn't working

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions