Bug #9967
Unit tests do not isolate user setup
Description
On several places we set User.current in setup or even in test method without clearing the value afterwards.
Related issues
Associated revisions
Fixes #9967 - make sure User.current is isolated
(cherry picked from commit fbbda1282c4ea4f17bd12132aa61f4a66832e8b8)
History
#1
Updated by The Foreman Bot about 7 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2278 added
- Pull request deleted (
)
#2
Updated by Eric Helms about 7 years ago
- Blocked by Bug #9979: Organization spec tests do not configure User.current during setup added
#3
Updated by Marek Hulán about 7 years ago
- Blocks Bug #9947: CVE-2015-1844 - GET /api/hosts doesn't respect organization/location membership added
#4
Updated by Marek Hulán about 7 years ago
- Legacy Backlogs Release (now unused) set to 40
#5
Updated by Marek Hulán about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset fbbda1282c4ea4f17bd12132aa61f4a66832e8b8.
#6
Updated by Dominic Cleal about 7 years ago
- Legacy Backlogs Release (now unused) changed from 40 to 28
Fixes #9967 - make sure User.current is isolated