Repository: couchdb-fauxton Updated Branches: refs/heads/master 392dc5231 -> 865973ff4
add the cassim database to the list of internal databases add cassim to the list of internal databases which should only be deleted with a warning. Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/865973ff Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/865973ff Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/865973ff Branch: refs/heads/master Commit: 865973ff4e15a180dc4b90954ac68c73b75239d5 Parents: 392dc52 Author: Poltergeist <[email protected]> Authored: Thu Feb 19 19:34:02 2015 +0000 Committer: Robert Kowalski <[email protected]> Committed: Mon Feb 23 18:58:52 2015 +0100 ---------------------------------------------------------------------- app/addons/databases/resources.js | 3 ++- app/addons/databases/tests/resourcesSpec.js | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/865973ff/app/addons/databases/resources.js ---------------------------------------------------------------------- diff --git a/app/addons/databases/resources.js b/app/addons/databases/resources.js index 829f8e5..2066368 100644 --- a/app/addons/databases/resources.js +++ b/app/addons/databases/resources.js @@ -104,7 +104,8 @@ function(app, FauxtonAPI, Documents) { '_replicator', '_users', 'nodes', - 'dbs' + 'dbs', + 'cassim' ]; try { JSON.parse(data); http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/865973ff/app/addons/databases/tests/resourcesSpec.js ---------------------------------------------------------------------- diff --git a/app/addons/databases/tests/resourcesSpec.js b/app/addons/databases/tests/resourcesSpec.js index 91d76ab..b5d01a8 100644 --- a/app/addons/databases/tests/resourcesSpec.js +++ b/app/addons/databases/tests/resourcesSpec.js @@ -61,6 +61,11 @@ define([ isSystemDatabase.parse('<html></html>'); assert.notOk(isSystemDatabase.get('isSystemDatabase')); }); + it('checks if the "cassim" internal database is a system database', function () { + var isSystemDatabase = new Resources.IsSystemDatabaseModel({name: 'cassim'}); + isSystemDatabase.parse('{"couch_replicator":{}}'); + assert.ok(isSystemDatabase.get('isSystemDatabase')); + }); }); }); });
