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

bigeasy / addendum / 34
100%

Build:
DEFAULT BRANCH: master
Ran 19 May 2018 09:01PM UTC
Jobs 3
Files 2
Run time 21s
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

pending completion
34

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%)

2.22 hits per line

Jobs
ID Job ID Ran Files Coverage
2 34.2 19 May 2018 09:01PM UTC 0
38.96
Travis Job 34.2
3 34.3 19 May 2018 09:01PM UTC 0
38.96
Travis Job 34.3
4 34.4 19 May 2018 09:02PM UTC 0
38.96
Travis Job 34.4
Source Files on build 34
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #34
  • 21db4e20 on github
  • Prev Build on master (#33)
  • Next Build on master (#35)
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