Actions
Bug #1974
openTests should run with a different cachedir
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
Currently the caching in tmp/ can cause the testsuite to affect production. The following scenario will reproduce the issue:
1) Create a Host in the UI
2) View the Host's PXELinux template - observe that foreman_url() creates the right url (using Settings[:foreman_url] )
3) Run the tests (or at least functional/unattended_controller_test.rb)
4) Refresh the template view - the url will now have "http://test.host" instead of the correct value.
This seems to be because all running environments (including test) share the same cachedir. Tests should probably cache to test/tmp/
No data to display
Actions