Project

General

Profile

Actions

Bug #1974

open

Tests should run with a different cachedir

Added by Greg Sutcliffe over 11 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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

Also available in: Atom PDF