Closed Bug 843030 Opened 12 years ago Closed 12 years ago

monolith: Factor out ES testing harness into standalone library

Categories

(Marketplace Graveyard :: Statistics, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hschlichting, Assigned: hschlichting)

Details

(Whiteboard: [u=dev c=mkt-statistics p=])

As part of monolith-aggregator I wrote a general ES testing harness inspired by the work done in kazoo. You point it to an unpacked ES tarball, it creates a temporary directory, sets up/copies all required files and starts a new ES server on a random port in the range 9201-9299. It also comes with a testcase base class, which takes care of test isolation, so all indexes are deleted and settings and templates are reset before each test and you get access to a pyelasticsearch client (or the connection info for the server). This is generally useful, once it has documentation. The maintainer of pyelasticsearch didn't want this included in the library yet, but maybe at a later point once the code has proven itself.
The code with a lot more tweaks and improvements is now available at http://pyelastictest.readthedocs.org/
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.