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

andela / thor-ah / 496 / 1
92%
develop: 92%

Build:
DEFAULT BRANCH: develop
Ran 20 Sep 2018 11:12AM UTC
Files 110
Run time 5s
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

20 Sep 2018 11:05AM UTC coverage: 93.412% (+0.3%) from 93.092%
496.1

push

travis-ci

aknwosu
#160555688 Super admin can update user roles (#54)

* feat(admin-role): create super admin role

A super admin will be able to update user roles on the platform.
Thus a new role and authorization is necessary.
- add new role to users model
- add method to authorize super admin
- include relevant tests

* feat(roles): enable super admin to assign admin roles

Only a super admin has access to this endpoint in the application. The super
admin can make users into "admins" and can revoke such access.
- include relevant tests
- add methods to handle user role update
- update swagger doc

[delivers 160555688]

* nitpicks: extend functionality of updateUserProfile method, update test

Enable admins to update users' profile as well as assign roles from within
the same method. Also added checks to limit assigning admin role to just
the super admin.
Refactored failing tests: used bulkcreate to create mock users.

- update relevant tests

396 of 465 branches covered (85.16%)

Branch coverage included in aggregate %.

2284 of 2404 relevant lines covered (95.01%)

3.25 hits per line

Source Files on job 496.1
  • Tree
  • List 0
  • Changed 14
  • Source Changed 9
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 291
  • Travis Job 496.1
  • 675007fd on github
  • Prev Job for on develop (#487.1)
  • Next Job for on develop (#505.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