Closed
Bug 486421
Opened 17 years ago
Closed 16 years ago
Tests are broken for non-dev sites
Categories
(addons.mozilla.org Graveyard :: Developer Pages, defect, P3)
addons.mozilla.org Graveyard
Developer Pages
Tracking
(Not tracked)
RESOLVED
WONTFIX
5.4
People
(Reporter: clouserw, Assigned: jbalogh)
Details
Attachments
(1 file)
|
4.67 KB,
patch
|
clouserw
:
review+
|
Details | Diff | Splinter Review |
A side effect of bug 476026 I imagine but setting DEV=false locks us out of all our tests because it is using the -test database for the sessions (people are required to be logged in to view tests).
It should be using the regular database.
| Assignee | ||
Comment 2•17 years ago
|
||
This one's pretty weird, I want to make sure I'm not the only one it works for. We need to make sure it works on unit tests (which only change the db config once) and web tests, which change the config every time $this->get() is called.
To test:
1. Make sure you have DEV=False and that you're logged in.
2. For unit tests: /tests?case=models/user.test.php
3. For web tests: /tests?case=controllers/users_controller.test.php
Attachment #371759 -
Flags: review?(clouserw)
| Reporter | ||
Comment 3•17 years ago
|
||
Comment on attachment 371759 [details] [diff] [review]
making tests available when DEV is False
This fixes it for me. One of your comments says the production and test schemas are different - they shouldn't be.
Attachment #371759 -
Flags: review?(clouserw) → review+
| Assignee | ||
Comment 4•17 years ago
|
||
They're different when you're testing new schema changes, which is valid, I think.
They're also different because the users table in remora.sql doesn't have the vanilla* mess.
| Assignee | ||
Comment 5•17 years ago
|
||
Ugh, this isn't as fixed as I thought it was: users_controller.test isn't a web test.
views/addons/display.test.php really is a web test, and it's broken with dev=false since there's a check for `if (DEV)` in app_controller before switching to the test db.
Updated•17 years ago
|
Priority: -- → P3
Updated•16 years ago
|
Target Milestone: 5.0.5 → 5.0.7
Updated•16 years ago
|
Priority: P3 → P2
| Assignee | ||
Comment 6•16 years ago
|
||
Pushing non-contribution bugs to 5.0.8.
Target Milestone: 5.0.7 → 5.0.8
Updated•16 years ago
|
Target Milestone: 5.0.8 → 5.0.9
| Reporter | ||
Updated•16 years ago
|
Target Milestone: 5.0.9 → 5.1
| Reporter | ||
Updated•16 years ago
|
Target Milestone: 5.1 → 5.2
| Reporter | ||
Updated•16 years ago
|
Target Milestone: 5.2 → 5.3
Updated•16 years ago
|
Priority: P2 → P3
Target Milestone: 5.3 → 5.4
| Reporter | ||
Updated•16 years ago
|
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•