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)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: clouserw, Assigned: jbalogh)

Details

Attachments

(1 file)

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.
Also appears broken on preview.amo.
Target Milestone: --- → 5.0.5
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)
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+
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.
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.
Priority: -- → P3
Target Milestone: 5.0.5 → 5.0.7
Priority: P3 → P2
Pushing non-contribution bugs to 5.0.8.
Target Milestone: 5.0.7 → 5.0.8
Target Milestone: 5.0.8 → 5.0.9
Target Milestone: 5.0.9 → 5.1
Target Milestone: 5.1 → 5.2
Target Milestone: 5.2 → 5.3
Priority: P2 → P3
Target Milestone: 5.3 → 5.4
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: