summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarren Smith <garren.smith@gmail.com>2020-03-31 11:39:32 +0200
committergarren smith <garren.smith@gmail.com>2020-04-06 17:55:49 +0200
commit1bc7c54ac2aee5302ce53a7a0c41867495f34704 (patch)
treee8417442a6d01627467161c44944f89fc2bd9422
parent377b0c26c845a5c5152ef493f833889b45625f4a (diff)
downloadcouchdb-1bc7c54ac2aee5302ce53a7a0c41867495f34704.tar.gz
Update mango test creds to same as elixir tests
-rw-r--r--Makefile2
-rw-r--r--src/mango/test/README.md4
-rw-r--r--src/mango/test/mango.py4
3 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b3eb64c99..9622c0ea0 100644
--- a/Makefile
+++ b/Makefile
@@ -349,7 +349,7 @@ mango-test: devclean all
@cd src/mango && \
python3 -m venv .venv && \
.venv/bin/python3 -m pip install -r requirements.txt
- @cd src/mango && ../../dev/run "$(TEST_OPTS)" -n 1 --admin=testuser:testpass '.venv/bin/python3 -m nose --with-xunit'
+ @cd src/mango && ../../dev/run "$(TEST_OPTS)" -n 1 --admin=adm:pass '.venv/bin/python3 -m nose --with-xunit'
################################################################################
# Developing
diff --git a/src/mango/test/README.md b/src/mango/test/README.md
index 509e32e47..08693a2e1 100644
--- a/src/mango/test/README.md
+++ b/src/mango/test/README.md
@@ -23,7 +23,7 @@ Test configuration
The following environment variables can be used to configure the test fixtures:
* `COUCH_HOST` - root url (including port) of the CouchDB instance to run the tests against. Default is `"http://127.0.0.1:15984"`.
- * `COUCH_USER` - CouchDB username (with admin premissions). Default is `"testuser"`.
- * `COUCH_PASSWORD` - CouchDB password. Default is `"testpass"`.
+ * `COUCH_USER` - CouchDB username (with admin premissions). Default is `"adm"`.
+ * `COUCH_PASSWORD` - CouchDB password. Default is `"pass"`.
* `COUCH_AUTH_HEADER` - Optional Authorization header value. If specified, this is used instead of basic authentication with the username/password variables above.
* `MANGO_TEXT_INDEXES` - Set to `"1"` to run the tests only applicable to text indexes.
diff --git a/src/mango/test/mango.py b/src/mango/test/mango.py
index 638de4787..db0fab057 100644
--- a/src/mango/test/mango.py
+++ b/src/mango/test/mango.py
@@ -48,8 +48,8 @@ class Database(object):
dbname,
host="127.0.0.1",
port="15984",
- user="testuser",
- password="testpass",
+ user="adm",
+ password="pass",
):
root_url = get_from_environment("COUCH_HOST", "http://{}:{}".format(host, port))
auth_header = get_from_environment("COUCH_AUTH_HEADER", None)