• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bigeasy / addendum / 34 / 3
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 19 May 2018 09:01PM UTC
Files 2
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 May 2018 08:23PM UTC coverage: 38.961% (+3.3%) from 35.616%
34.3

push

travis-ci

bigeasy
Test application registration.

Registration is initiated by the application performing a `POST` against
the `/register` end point of the Compassion Local API. The `POST`
payload includes the postback URL of the application.

The `POST` also includes the name of an island which is supposed to be
unique for an application. You can use the same Compassion instance for
multiple applications giving each application a unique name. Here we use
the NPM module name and if we stick to that as a convention we will
probably not have any collisions.

The `POST` also includes a unique id for this application instance. Each
application instance is a participant in the collective application. It
is up to the user to ensure that this id is unique for each instance. It
does not have to be unique for each run, though. It can be reused on
crash-restart, so you can use something unique to the particular
instance like a Kubernetes pod id.

Hmm… What really needs to be unique is the combination of island and id,
so if you're using the Kubernetes pod id you can use it with different
applications that are sharing a local Compassion instance.

Registration is where you register the post backs you're interested in,
but you always have to have a `register` post back in order to get your
authentication token. You need this token when you make a call to the
Compassion. If you get any error response, your application should
crash-restart.

Also, you can provide a token that will be used to call your end points
so that if you crash-restart so fast that Compassion doesn't see you go
missing, you can reject postbacks which will cause Compassion to remove
its entry for the application making it ready to accept a new instance.

0 of 12 branches covered (0.0%)

30 of 77 relevant lines covered (38.96%)

0.74 hits per line

Source Files on job 34.3
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 27
  • Travis Job 34.3
  • 21db4e20 on github
  • Prev Job for on master (#33.1)
  • Next Job for on master (#35.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc