Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Errors when running fxa-auth-server verification_tests locally #454

Closed
pdehaan opened this issue Dec 19, 2013 · 1 comment
Closed

Errors when running fxa-auth-server verification_tests locally #454

pdehaan opened this issue Dec 19, 2013 · 1 comment

Comments

@pdehaan
Copy link
Contributor

pdehaan commented Dec 19, 2013

$ npm test

> fxa-auth-server@0.0.0 test /Users/pdehaan/dev/tmp-fxa/fxa-auth-server
> ./scripts/tap-coverage.js ./test/run

ok test/run/account_reset_token_tests.js .............. 13/13
ok test/run/api_error_tests.js .......................... 8/8
ok test/run/auth_token_tests.js ....................... 16/16
ok test/run/browserid_protocol_tests.js ................. 6/6
ok test/run/db_tests.js ............................... 60/60
ok test/run/forgot_password_token_tests.js ............ 17/17
ok test/run/hkdf_tests.js ............................... 6/6
ok test/run/integration_tests.js ...................... 40/40
ok test/run/key_fetch_token_tests.js .................. 16/16
ok test/run/key_stretch_tests.js ...................... 14/14
ok test/run/pbkdf2_tests.js ............................. 4/4
ok test/run/raw_password_tests.js ..................... 15/15
ok test/run/scrypt_tests.js ............................. 3/3
ok test/run/session_token_tests.js .................... 12/12
ok test/run/signer_tests.js ......................... 122/122
ok test/run/srp_session_tests.js ........................ 5/5
not ok test/run/verification_tests.js .................. 1/16
    Command: "node" "verification_tests.js"
    TAP version 13
    not ok 1 account is unverified
      ---
        file:   /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/run/verification_tests.js
        line:   46
        column: 15
        stack:  
          - getCaller (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.equal (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:162:10)
          - Test._testAssert [as equal] (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-test.js:87:16)
          - Client.create.then.then.then.then.then.then.then.verifyCode (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/run/verification_tests.js:46:15)
          - onSettled (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:258:10)
          - onTick (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:40:4)
          - process._tickCallback (node.js:415:13)
        found:  connect ECONNREFUSED
        wanted: Unverified account
        diff:   |
          FOUND:  connect ECONNREFUSED
          WANTED: Unverified account
                  ^ (at position = 0)
      ...
    not ok 2 Cannot call method 'emailStatus' of null
      ---
        file:   /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js
        line:   258
        column: 10
        stack:  
          - getCaller (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.fail (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:95:10)
          - Test._testAssert [as fail] (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-test.js:87:16)
          - /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/ptaptest.js:46:15
          - onSettled (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:258:10)
          - onTick (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:40:4)
          - process._tickCallback (node.js:415:13)
      ...
    not ok 3 bad attempt
      ---
        file:   /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js
        line:   258
        column: 10
        stack:  
          - getCaller (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.equal (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:162:10)
          - Test._testAssert [as equal] (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-test.js:87:16)
          - /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/run/verification_tests.js:135:15
          - onSettled (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:258:10)
          - onTick (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:40:4)
          - process._tickCallback (node.js:415:13)
        found:  connect ECONNREFUSED
        wanted: Invalid verification code
        diff:   |
          FOUND:  connect ECONNREFUSED
          WANTED: Invalid verification code
                  ^ (at position = 0)
      ...
    not ok 4 Cannot call method 'emailStatus' of null
      ---
        file:   /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js
        line:   258
        column: 10
        stack:  
          - getCaller (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.fail (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:95:10)
          - Test._testAssert [as fail] (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-test.js:87:16)
          - /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/ptaptest.js:46:15
          - onSettled (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:258:10)
          - onTick (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:40:4)
          - process._tickCallback (node.js:415:13)
      ...
    not ok 5 connect ECONNREFUSED
      ---
        file:   /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js
        line:   258
        column: 10
        stack:  
          - getCaller (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.fail (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:95:10)
          - Test._testAssert [as fail] (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-test.js:87:16)
          - /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/ptaptest.js:46:15
          - onSettled (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:258:10)
          - onTick (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:40:4)
          - process._tickCallback (node.js:415:13)
      ...
    not ok 6 connect ECONNREFUSED
      ---
        file:   /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js
        line:   258
        column: 10
        stack:  
          - getCaller (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.fail (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:95:10)
          - Test._testAssert [as fail] (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-test.js:87:16)
          - /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/ptaptest.js:46:15
          - onSettled (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:258:10)
          - onTick (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:40:4)
          - process._tickCallback (node.js:415:13)
      ...
    not ok 7 connect ECONNREFUSED
      ---
        file:   /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js
        line:   258
        column: 10
        stack:  
          - getCaller (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.fail (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:95:10)
          - Test._testAssert [as fail] (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-test.js:87:16)
          - /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/ptaptest.js:46:15
          - onSettled (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:258:10)
          - onTick (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:40:4)
          - process._tickCallback (node.js:415:13)
      ...
    not ok 8 used a try
      ---
        file:   /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js
        line:   258
        column: 10
        stack:  
          - getCaller (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.equal (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:162:10)
          - Test._testAssert [as equal] (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-test.js:87:16)
          - /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/run/verification_tests.js:390:15
          - onSettled (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:258:10)
          - onTick (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:40:4)
          - process._tickCallback (node.js:415:13)
        found:  ~
        wanted: 2
        type:   
          found:  undefined
          wanted: undefined
      ...
    not ok 9 bad attempt 1
      ---
        file:   /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js
        line:   258
        column: 10
        stack:  
          - getCaller (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.equal (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:162:10)
          - Test._testAssert [as equal] (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-test.js:87:16)
          - /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/run/verification_tests.js:391:15
          - onSettled (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:258:10)
          - onTick (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:40:4)
          - process._tickCallback (node.js:415:13)
        found:  connect ECONNREFUSED
        wanted: Invalid verification code
        diff:   |
          FOUND:  connect ECONNREFUSED
          WANTED: Invalid verification code
                  ^ (at position = 0)
      ...
    not ok 10 used a try
      ---
        file:   /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js
        line:   258
        column: 10
        stack:  
          - getCaller (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.equal (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:162:10)
          - Test._testAssert [as equal] (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-test.js:87:16)
          - /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/run/verification_tests.js:404:15
          - onSettled (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:258:10)
          - onTick (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:40:4)
          - process._tickCallback (node.js:415:13)
        found:  ~
        wanted: 1
        type:   
          found:  undefined
          wanted: undefined
      ...
    not ok 11 bad attempt 2
      ---
        file:   /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js
        line:   258
        column: 10
        stack:  
          - getCaller (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.equal (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:162:10)
          - Test._testAssert [as equal] (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-test.js:87:16)
          - /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/run/verification_tests.js:405:15
          - onSettled (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:258:10)
          - onTick (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:40:4)
          - process._tickCallback (node.js:415:13)
        found:  Cannot call method 'verifyPasswordResetCode' of null
        wanted: Invalid verification code
        diff:   |
          FOUND:  Cannot call method 'verifyPasswordResetC
          WANTED: Invalid verification code
                  ^ (at position = 0)
      ...
    not ok 12 used a try
      ---
        file:   /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js
        line:   258
        column: 10
        stack:  
          - getCaller (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.equal (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:162:10)
          - Test._testAssert [as equal] (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-test.js:87:16)
          - /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/run/verification_tests.js:418:15
          - onSettled (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:258:10)
          - onTick (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:40:4)
          - process._tickCallback (node.js:415:13)
        found:  ~
        wanted: 0
        type:   
          found:  undefined
          wanted: undefined
      ...
    not ok 13 bad attempt 3
      ---
        file:   /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js
        line:   258
        column: 10
        stack:  
          - getCaller (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.equal (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:162:10)
          - Test._testAssert [as equal] (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-test.js:87:16)
          - /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/run/verification_tests.js:419:15
          - onSettled (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:258:10)
          - onTick (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:40:4)
          - process._tickCallback (node.js:415:13)
        found:  Cannot call method 'verifyPasswordResetCode' of null
        wanted: Invalid verification code
        diff:   |
          FOUND:  Cannot call method 'verifyPasswordResetC
          WANTED: Invalid verification code
                  ^ (at position = 0)
      ...
    not ok 14 token is now invalid
      ---
        file:   /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js
        line:   258
        column: 10
        stack:  
          - getCaller (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.equal (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:162:10)
          - Test._testAssert [as equal] (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-test.js:87:16)
          - /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/run/verification_tests.js:432:15
          - onSettled (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:258:10)
          - onTick (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:40:4)
          - process._tickCallback (node.js:415:13)
        found:  Cannot call method 'verifyPasswordResetCode' of null
        wanted: Invalid authentication token in request signature
        diff:   |
          FOUND:  Cannot call method 'verifyPasswordResetC
          WANTED: Invalid authentication token in request 
                  ^ (at position = 0)
      ...
    not ok 15 connect ECONNREFUSED
      ---
        file:   /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js
        line:   258
        column: 10
        stack:  
          - getCaller (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.fail (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-assert.js:95:10)
          - Test._testAssert [as fail] (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/tap/lib/tap-test.js:87:16)
          - /Users/pdehaan/dev/tmp-fxa/fxa-auth-server/test/ptaptest.js:46:15
          - onSettled (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:258:10)
          - onTick (/Users/pdehaan/dev/tmp-fxa/fxa-auth-server/node_modules/p-promise/p.js:40:4)
          - process._tickCallback (node.js:415:13)
      ...
    ok 16 test/run/verification_tests.js

    1..16
    # tests 16
    # pass  1
    # fail  15

total ............................................... 358/373

not ok
code coverage: 94.8%
generating coverage.html: complete in 1.5s

npm ERR! Test failed.  See above for more details.
npm ERR! not ok code 0
@dannycoates
Copy link
Contributor

I can't reproduce. Please reopen if this is still a problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants