Pārlūkot izejas kodu

Testing on appveyor

Oz N Tiram 8 gadi atpakaļ
vecāks
revīzija
b1ecc3e9fa
2 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 1
      appveyor.yml
  2. 0 2
      tests/init_mongo.js

+ 1 - 1
appveyor.yml

@@ -33,7 +33,7 @@ install:
   - "%PYTHON%/Scripts/pip.exe install -r requirements.txt"
 
 test_script:
-  - C:/mongodb/bin/mongo.exe pwmantest --eval "db.createUser({user: \"tester\", pwd: \"12345678\"});"
+  - C:/mongodb/bin/mongo.exe pwmantest tests/init_mongo.js
   - psql -c "CREATE USER tester WITH PASSWORD '123456';"
   - psql -c "create database pwman"
   - psql -c "grant ALL ON DATABASE pwman to tester"

+ 0 - 2
tests/init_mongo.js

@@ -1,7 +1,5 @@
 // run this script with $ mongo < init_mongo.js
 
-use pwmantest
-
 db.createUser({user: "tester", pwd: "12345678",
               roles: [{role: "dbAdmin", db: "pwmantest"},
                       {role: "readWrite", db: "pwmantest"},]