svmp overseer testing always failed (grunt fail = npm test)

34 views
Skip to first unread message

bob yuan

unread,
Aug 1, 2018, 1:47:01 PM8/1/18
to SVMP Users

BobdeMacBook-Pro:svmp-overseer bob$ node server.js

2018-08-01T17:39:44.985Z - info: Loading config file: /Volumes/SD/svmp/svmp-overseer/lib/../config/config-local.yaml

2018-08-01T17:39:45.589Z - info: Mongoose:  connected to: mongodb://localhost/svmp_overseer_production_db

express-session deprecated undefined resave option; provide resave option lib/console/express.js:63:13

express-session deprecated undefined saveUninitialized option; provide saveUninitialized option lib/console/express.js:63:13

2018-08-01T17:39:46.236Z - info: SVMP REST API running on port 3000 with SSL

^C

BobdeMacBook-Pro:svmp-overseer bob$ grunt

BobdeMacBook-Pro:svmp-overseer bob$ npm test


> svmp-o...@2.0.0 test /Volumes/SD/svmp/svmp-overseer

> grunt --config test/config.yaml


Running "mochaTest:src" (mochaTest) task

2018-08-01T17:40:31.338Z - info: Loading config file: test/config.yaml

2018-08-01T17:40:32.022Z - info: Mongoose:  connected to: mongodb://localhost/svmp_overseer_production_db

express-session deprecated undefined resave option; provide resave option lib/console/express.js:63:13

express-session deprecated undefined saveUninitialized option; provide saveUninitialized option lib/console/express.js:63:13

2018-08-01T17:40:32.642Z - info: SVMP REST API running on port 3000 with SSL



  1) "before all" hook


  0 passing (2s)

  1 failing


  1)  "before all" hook:

     Error: timeout of 2000ms exceeded

      at Timeout.<anonymous> (/Volumes/SD/svmp/svmp-overseer/node_modules/grunt-mocha-test/node_modules/mocha/lib/runnable.js:139:19)

      at ontimeout (timers.js:498:11)

      at tryOnTimeout (timers.js:323:5)

      at Timer.listOnTimeout (timers.js:290:5)




Warning: Task "mochaTest:src" failed. Used --force, continuing.


Done, but with warnings.

BobdeMacBook-Pro:svmp-overseer bob$ 5~

could you help me out this issue.
the config files is below

config-local.yaml-->
port: 3000

rest_server_url: 'http://localhost:3000'

################################################################################
# Database settings
################################################################################

# MongoDB database url
db:
    production: "mongodb://localhost/svmp_overseer_production_db"
    test: "mongodb://localhost/svmp_overseer_test_db"

################################################################################
# WebConsole settings
################################################################################

# Web session secret
session_secret: "this should be something really long"

# Email settings used to notify admin and users on account creation
# If the host field is left empty, email functionality will be ignored
smtp:
    host: ""
    port: 465
    secure_connection: true
    username: ""
    password: ""
    admin_email: ""

################################################################################
# SSL/TLS configuration
################################################################################

# default = false
enable_ssl: true

# SSL certificate and private key paths
# (required if tls_proxy == true)
server_certificate: '/Volumes/SD/svmp/svmp-overseer/tls/overseer-cert.pem'
private_key: '/Volumes/SD/svmp/svmp-overseer/tls/overseer-key.pem'

# SSL private key password
# (if the server private key file is password protected)
private_key_pass: 'a'

# TLS CA Cert to validate user certs against
# only used if use_tls_user_auth == true
ca_cert: '/Volumes/SD/svmp/svmp-overseer/tls/ca-cert.pem'



tls/*.cnf->
[ req_attributes ]
challengePassword              = a

Reply all
Reply to author
Forward
0 new messages