hubot-archive / hubot-pager-me

PagerDuty integration for Hubot
https://www.npmjs.com/package/hubot-pager-me
MIT License
73 stars 92 forks source link

"pagerduty registers a pager on call listener" test failure #53

Closed technicalpickles closed 8 years ago

technicalpickles commented 9 years ago

Seem

  1) pagerduty registers a pager on call listener:
     expected respond to have been called with arguments /who('s|s| is|se)? (on call|oncall|on-call)( (?:for )?(.+))?/i
    respond(/pager( me)?$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:32:11)
    respond(/pager(?: me)? as (.*)$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:60:11)
    respond(/pager forget me$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:66:11)
    respond(/(pager|major)( me)? incident (.*)$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:70:11)
    respond(/(pager|major)( me)? (inc|incidents|sup|problems)$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:75:11)
    respond(/(pager|major)( me)? (?:trigger|page) ([\w\-]+)$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:101:11)
    respond(/(pager|major)( me)? (?:trigger|page) ([\w\-]+) (.+)$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:104:11)
    respond(/(?:pager|major)(?: me)? ack(?:nowledge)? (.+)$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:158:11)
    respond(/(pager|major)( me)? ack(nowledge)?(!)?$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:164:11)
    respond(/(?:pager|major)(?: me)? res(?:olve)?(?:d)? (.+)$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:191:11)
    respond(/(pager|major)( me)? res(olve)?(d)?(!)?$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:197:11)
    respond(/(pager|major)( me)? notes (.+)$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:224:11)
    respond(/(pager|major)( me)? note ([\d\w]+) (.+)$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:239:11)
    respond(/(pager|major)( me)? schedules( (.+))?$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:265:11)
    respond(/(pager|major)( me)? (schedule|overrides)( ([\w\-]+))?( ([^ ]+))?$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:286:11)
    respond(/(pager|major)( me)? my schedule( ([^ ]+))?$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:342:11)
    respond(/(pager|major)( me)? (override) ([\w\-]+) ([\w\-:\+]+) - ([\w\-:\+]+)( (.*))?$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:404:11)
    respond(/(pager|major)( me)? (overrides?) ([\w\-]*) (delete) (.*)$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:454:11)
    respond(/pager( me)? (.+) (\d+)$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:470:11)
    respond(/am i (on call|oncall|on-call)(.+)?/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:511:11)
    respond(/who(’s|'s|s| is|se)? (on call|oncall|on-call)( (?:for )?(.+))?/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:545:11)
    respond(/(pager|major)( me)? services$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:572:11)
    respond(/(pager|major)( me)? maintenance (\d+) (.+)$/i, function () {}) at module.exports (/Users/technicalpickles/github/hubot-pager-me/src/scripts/pagerduty.coffee:588:11)
  AssertionError: expected respond to have been called with arguments /who('s|s| is|se)? (on call|oncall|on-call)( (?:for )?(.+))?/i
      respond(/pager( me)?$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:32:11)
      respond(/pager(?: me)? as (.*)$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:60:11)
      respond(/pager forget me$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:66:11)
      respond(/(pager|major)( me)? incident (.*)$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:70:11)
      respond(/(pager|major)( me)? (inc|incidents|sup|problems)$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:75:11)
      respond(/(pager|major)( me)? (?:trigger|page) ([\w\-]+)$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:101:11)
      respond(/(pager|major)( me)? (?:trigger|page) ([\w\-]+) (.+)$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:104:11)
      respond(/(?:pager|major)(?: me)? ack(?:nowledge)? (.+)$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:158:11)
      respond(/(pager|major)( me)? ack(nowledge)?(!)?$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:164:11)
      respond(/(?:pager|major)(?: me)? res(?:olve)?(?:d)? (.+)$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:191:11)
      respond(/(pager|major)( me)? res(olve)?(d)?(!)?$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:197:11)
      respond(/(pager|major)( me)? notes (.+)$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:224:11)
      respond(/(pager|major)( me)? note ([\d\w]+) (.+)$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:239:11)
      respond(/(pager|major)( me)? schedules( (.+))?$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:265:11)
      respond(/(pager|major)( me)? (schedule|overrides)( ([\w\-]+))?( ([^ ]+))?$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:286:11)
      respond(/(pager|major)( me)? my schedule( ([^ ]+))?$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:342:11)
      respond(/(pager|major)( me)? (override) ([\w\-]+) ([\w\-:\+]+) - ([\w\-:\+]+)( (.*))?$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:404:11)
      respond(/(pager|major)( me)? (overrides?) ([\w\-]*) (delete) (.*)$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:454:11)
      respond(/pager( me)? (.+) (\d+)$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:470:11)
      respond(/am i (on call|oncall|on-call)(.+)?/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:511:11)
      respond(/who(’s|'s|s| is|se)? (on call|oncall|on-call)( (?:for )?(.+))?/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:545:11)
      respond(/(pager|major)( me)? services$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:572:11)
      respond(/(pager|major)( me)? maintenance (\d+) (.+)$/i, function () {}) at module.exports (src/scripts/pagerduty.coffee:588:11)
      at Context.<anonymous> (test/pager-me-test.coffee:75:54)

Will need to git-bisect to find when it was introduced, but possible related to https://github.com/hubot-scripts/hubot-pager-me/pull/45 ?

aaronblythe commented 8 years ago

I believe this is resolved in PR #66