[Persistence] Test ElasticSearch's persistence provider

WTD-1033.
This commit is contained in:
Victor Woeltjen
2015-03-24 18:11:41 -07:00
parent d88a0237c6
commit 55e50b6fd5
2 changed files with 170 additions and 8 deletions

View File

@ -54,12 +54,6 @@ define(
return request(subpath, "DELETE");
}
// Pull out a list of document IDs from CouchDB's
// _all_docs response
function getIdsFromAllDocs(allDocs) {
return allDocs.rows.map(function (r) { return r.id; });
}
// Get a domain object model out of CouchDB's response
function getModel(response) {
if (response && response[SRC]) {
@ -117,7 +111,7 @@ define(
* identifiers
*/
listObjects: function (space) {
return get("_all_docs").then(getIdsFromAllDocs);
return $q.when([]);
},
/**
* Create a new object in the specified persistence space.