couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robertkowal...@apache.org
Subject [1/3] fauxton commit: updated refs/heads/master to f772160
Date Mon, 10 Aug 2015 11:12:00 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/master a6431cc50 -> f772160aa


csrf: fix tests

when fauxton requests session token & csrf token it handles them
as additional data it sends to each ajax request.

the testsuite tries to open 5984:/_alldocs and friends in several
places right after running the test. as the csrf cookie is sent
via ajax, a plain GET will result in a CSRF error

PR: #494
PR-URL: https://github.com/apache/couchdb-fauxton/pull/494
Reviewed-By: Robert Newson <rnewson@apache.org>
Reviewed-By: Garren Smith <garren.smith@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/4f0e092a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/4f0e092a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/4f0e092a

Branch: refs/heads/master
Commit: 4f0e092a214e11b0460b2bc9dad668b5d2614d12
Parents: a6431cc
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Sat Aug 8 00:20:54 2015 +0200
Committer: Robert Kowalski <robertkowalski@apache.org>
Committed: Mon Aug 10 13:11:16 2015 +0200

----------------------------------------------------------------------
 app/addons/databases/tests/nightwatch/createsDatabase.js | 2 +-
 app/addons/documents/tests/nightwatch/createsDocument.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/4f0e092a/app/addons/databases/tests/nightwatch/createsDatabase.js
----------------------------------------------------------------------
diff --git a/app/addons/databases/tests/nightwatch/createsDatabase.js b/app/addons/databases/tests/nightwatch/createsDatabase.js
index 4f6b1ee..97f7428 100644
--- a/app/addons/databases/tests/nightwatch/createsDatabase.js
+++ b/app/addons/databases/tests/nightwatch/createsDatabase.js
@@ -45,7 +45,7 @@ module.exports = {
       .setValue('#js-new-database-name', [newDatabaseName])
       .clickWhenVisible('#js-create-database', waitTime, false)
       .checkForDatabaseCreated(newDatabaseName, waitTime)
-      .url(baseUrl + '/_all_dbs')
+      .url(baseUrl + '/#/_all_dbs')
       .waitForElementVisible('html', waitTime, false)
       .getText('html', function (result) {
         var data = result.value,

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/4f0e092a/app/addons/documents/tests/nightwatch/createsDocument.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/nightwatch/createsDocument.js b/app/addons/documents/tests/nightwatch/createsDocument.js
index e16de06..742a6b0 100644
--- a/app/addons/documents/tests/nightwatch/createsDocument.js
+++ b/app/addons/documents/tests/nightwatch/createsDocument.js
@@ -34,7 +34,7 @@ module.exports = {
       ')
       .clickWhenVisible('#doc-editor-actions-panel .save-doc')
       .checkForDocumentCreated(newDocumentName)
-      .url(baseUrl + '/' + newDatabaseName + '/_all_docs')
+      .url(baseUrl + '/#/database/' + newDatabaseName + '/_all_docs')
       .waitForElementPresent('body', waitTime, false)
       .getText('body', function (result) {
         var data = result.value,


Mime
View raw message