Unittests leaving a dirty /tmp directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Fix Released
|
Low
|
Lucas Alvares Gomes |
Bug Description
When running the unittests it's leaving the /tmp directory dirty. It's creating 2 files prefixed with "configdrive" on every run, e.g:
(venv)[
-rw------- 1 lucasagomes lucasagomes 0 Jul 7 13:34 /tmp/configdriv
-rw------- 1 lucasagomes lucasagomes 0 Jul 7 13:34 /tmp/configdriv
-rw------- 1 lucasagomes lucasagomes 0 Jul 7 13:34 /tmp/configdriv
-rw------- 1 lucasagomes lucasagomes 0 Jul 7 13:32 /tmp/configdriv
-rw------- 1 lucasagomes lucasagomes 0 Jul 7 13:32 /tmp/configdriv
-rw------- 1 lucasagomes lucasagomes 0 Jul 7 13:34 /tmp/configdriv
We should mock the file creation.
How to reproduce:
1 - Run the unittests
2- Check the /tmp directory
Changed in ironic: | |
assignee: | nobody → Lucas Alvares Gomes (lucasagomes) |
importance: | Undecided → Medium |
Changed in ironic: | |
status: | New → In Progress |
Changed in ironic: | |
milestone: | none → 4.0.0 |
status: | Fix Committed → Fix Released |
Importance low as it does not affect actual features