unit tests do not clean after themselves
Bug #2070449 reported by
Martin Kopec
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Undecided
|
Katarina Strenkova |
Bug Description
After executing unit tests, there are 2 files left behind, one called None and the other resource_list.json
Steps to reproduce:
$ git clone https:/
$ cd tempest
$ tox-epy310
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
None
resource_list.json
Ideally, the files should be deleted after testing. Another issue is that if a user has a custom resource_list.json it will get overwritten by the unit tests.
Changed in tempest: | |
status: | New → Confirmed |
Changed in tempest: | |
assignee: | nobody → Katarina Strenkova (kstrenko) |
Changed in tempest: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
Reviewed: https:/ /review. opendev. org/c/openstack /tempest/ +/923293 /opendev. org/openstack/ tempest/ commit/ 69f622b1085c233 13c81db34e6b031 93f28a6ac4
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 69f622b1085c233 13c81db34e6b031 93f28a6ac4
Author: Katarina Strenkova <email address hidden>
Date: Tue Jul 2 14:14:39 2024 +0000
Fix unit tests cleanup for --resource-list option
This patch fixes the incomplete cleanup of unit tests for resources( )` function. These unit tests are tied with the
`record_
tempest cleanup --resource-list option. The issue was the creation
of None file and resource_list.json file while running unit tests.
Closes-Bug: #2070449
Change-Id: Id8ff96606b30d5 2ad4c8a6bd31bcb 09ae03cc963