ps-user-channel Send user_ids along with pusher data

This commit allows to enable per-user channels by sending user_ids along
with the pusher payload. That way we can send the message to user based
channels instead of a repo based channels.

Piotr Sarnacki avatar Piotr Sarnacki

Push event #2359.1 passed

  • Ran for
AMD64
Ruby: 2.2
Git
buluma/ansible-role-security:.travis.yml@6cba333
---
services: docker

env:
  - distro: centos7
  - distro: centos6
  - distro: ubuntu1604
  - distro: ubuntu1404
#  - distro: debian8
#  - distro: fedora27

script:
  # Configure test script so we can run extra tests after playbook is run.
  - export container_id=$(date +%s)
  - export cleanup=false

  # Download test shim.
  - wget -O ${PWD}/tests/test.sh https://gist.githubusercontent.com/buluma/3e4a443e0e2cfdffa9137edff909917e/raw/
  - chmod +x ${PWD}/tests/test.sh

  # Run tests.
  - ${PWD}/tests/test.sh

  # Make sure fail2ban process is running.
  - >
    sudo docker exec ${container_id} ps -ax | grep -q 'fail2ban'
    && (echo 'fail2ban is on: pass' && exit 0)
    || (echo 'fail2ban is on: fail' && exit 1)
notifications:
  webhooks: https://galaxy.ansible.com/api/v1/notifications/
Build Config
{
  "env": {
    "global": [
      "COVERAGE=1"
    ]
  },
  "rvm": [
    2.2
  ],
  "dist": "trusty",
  "sudo": false,
  "cache": [
    "bundler"
  ],
  "addons": {
    "postgresql": 9.3
  },
  "script": [
    "bundle exec rspec"
  ],
  "language": "ruby",
  "services": [
    "memcached",
    "redis",
    "rabbitmq"
  ],
  "before_script": [
    "bundle exec rake db:create --trace"
  ],
  "before_install": [
    "bundle config https://gems.contribsys.com/ $BUNDLE_GEMS__CONTRIBSYS__COM"
  ]
}