Uploaded image for project: 'Usergrid (Retired)'
  1. Usergrid (Retired)
  2. USERGRID-1261

notifications.js test failures

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • Stack
    • None

    Description

      New integration tests in notifications.js are failing on Jenkins (local and remote) with errors like this:

      1) should send a single notification to a user
      notification -> user - via matrix query

      2) should send a single notification to a user
      notification -> groups - via matrix query

      3) should send a single notification to groups with the same users
      teardown

      4) "after all" hook

      22 passing (6s)
      4 failing

      1) ** Usergrid REST Integration Tests ** notifications notification -> user - direct path should send a single notification to a user:
      Uncaught AssertionError: expected {
      duration: 0,
      error: 'uncaught',
      error_description: 'Internal Server Error',
      error_id: '995d68a5-d3f2-11e5-8ac9-32aa25126e99',
      exception: 'org.apache.usergrid.rest.exceptions.UncaughtException',
      timestamp: 1455547461327
      } to be null
      at Assertion.fail (node_modules/should/lib/assertion.js:183:17)
      at Assertion.prop.(anonymous function) (node_modules/should/lib/assertion.js:68:17)
      at test/notifications/notifications.js:250:43
      at Request._callback (lib/notifications.js:33:9)
      at Request.self.callback (node_modules/request/request.js:197:22)
      at Request.<anonymous> (node_modules/request/request.js:1050:14)
      at IncomingMessage.<anonymous> (node_modules/request/request.js:996:12)
      at endReadableNT (_stream_readable.js:905:12)

      2) ** Usergrid REST Integration Tests ** notifications notification -> user - via matrix query should send a single notification to a user:
      Uncaught AssertionError: expected {
      duration: 0,
      error: 'uncaught',
      error_description: 'Internal Server Error',
      error_id: '99faba1f-d3f2-11e5-8ac9-32aa25126e99',
      exception: 'org.apache.usergrid.rest.exceptions.UncaughtException',
      timestamp: 1455547462358
      } to be null
      at Assertion.fail (node_modules/should/lib/assertion.js:183:17)
      at Assertion.prop.(anonymous function) (node_modules/should/lib/assertion.js:68:17)
      at test/notifications/notifications.js:273:43
      at Request._callback (lib/notifications.js:33:9)
      at Request.self.callback (node_modules/request/request.js:197:22)
      at Request.<anonymous> (node_modules/request/request.js:1050:14)
      at IncomingMessage.<anonymous> (node_modules/request/request.js:996:12)
      at endReadableNT (_stream_readable.js:905:12)

      3) ** Usergrid REST Integration Tests ** notifications notification -> groups - via matrix query should send a single notification to groups with the same users:
      Uncaught AssertionError: expected {
      duration: 0,
      error: 'uncaught',
      error_description: 'Internal Server Error',
      error_id: '9a9636d9-d3f2-11e5-8ac9-32aa25126e99',
      exception: 'org.apache.usergrid.rest.exceptions.UncaughtException',
      timestamp: 1455547463375
      } to be null
      at Assertion.fail (node_modules/should/lib/assertion.js:183:17)
      at Assertion.prop.(anonymous function) (node_modules/should/lib/assertion.js:68:17)
      at test/notifications/notifications.js:296:43
      at Request._callback (lib/notifications.js:33:9)
      at Request.self.callback (node_modules/request/request.js:197:22)
      at Request.<anonymous> (node_modules/request/request.js:1050:14)
      at IncomingMessage.<anonymous> (node_modules/request/request.js:996:12)
      at endReadableNT (_stream_readable.js:905:12)

      4) ** Usergrid REST Integration Tests ** "after all" hook:
      Uncaught AssertionError: expected {
      duration: 0,
      error: 'uncaught',
      error_description: 'Internal Server Error',
      error_id: '9ac0f049-d3f2-11e5-8ac9-32aa25126e99',
      exception: 'org.apache.usergrid.rest.exceptions.UncaughtException',
      timestamp: 1455547463656
      } to be null
      at Assertion.fail (node_modules/should/lib/assertion.js:183:17)
      at Assertion.prop.(anonymous function) (node_modules/should/lib/assertion.js:68:17)
      at test/teardown.js:77:39
      at Request._callback (lib/entities.js:58:17)
      at Request.self.callback (node_modules/request/request.js:197:22)
      at Request.<anonymous> (node_modules/request/request.js:1050:14)
      at IncomingMessage.<anonymous> (node_modules/request/request.js:996:12)
      at endReadableNT (_stream_readable.js:905:12)

      Build step 'Execute shell' marked build as failure
      Finished: FAILURE

      Attachments

        Activity

          People

            mrusso Michael Russo
            djohnson David Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: