seglo/connect-prism — pull request #26 by ziprandom (2014-11-30 16:41:48+00:00)
Title: multiple mockPaths & mockpath selection via http header

This adds the ability to configure the mockPaths as an array. Each directory will be searched and the first match returned. This way a generic mock pool for an app can be overwritten in a feature mocks directory for use in a complex test suite.

Secondly this directory may also be set via a http header: REQUEST-MOCK-CUSTOM-NAMESPACE to trigger custom mocking scenarios from the browser.

The creation of missing MockPaths was moved to only happen, if the Mock Namespace is actually requested.