Closed Bug 864070 Opened 11 years ago Closed 11 years ago

default database host for unit tests should be localhost


(Socorro :: Infra, task)

Not set


(Not tracked)



(Reporter: rhelmer, Assigned: selenamarie)



(Whiteboard: [qa-])

'jenkins-pg92' is hardcoded in databaseHost.default of socorro/unittest/config/

Running unit tests doesn't work for "normal" users until this is changed, and it
is very non obvious what to look for (user "nothung" in IRC just reported fixing it by search and finding!topic/ which is not terrible great UX :) )

This should be 'localhost' by default, jenkins can override this var in scripts/ instead, something like:

export databaseHost="jenkins-pg92"
Assignee: rhelmer → sdeckelmann
Target Milestone: --- → 44
Unsure what the exact problem is but "export" does not work, see:

That job has :rhelmer's patch and then also the change to that would make local installs function properly. 

Moving to trying a different approach here:
Cutting and pasting pawel's tip from the mailing list (see Google Groups link in first post), here is the quick fix:

In socorro/unittest/config/ I switched 
databaseHost.default = 'jenkins-pg92' to databaseHost.default = 'localhost'
Commits pushed to master at
bug 864070 change postgres default hostname to localhost

* Adds 'make jenkins' to Makefile
* Adds for settings jenkins hostname
Merge pull request #1195 from selenamarie/bug864070-make-pg-localhost-default

bug 864070 change postgres default hostname to localhost
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
this didn't make it into 44, but it is in 45.
Target Milestone: 44 → 45
You need to log in before you can comment on or make changes to this bug.