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

ministryofjustice / bootstrap-cfn / 1047
59%
master: 58%

Build:
Build:
LAST BUILD BRANCH: alb-support-v1
DEFAULT BRANCH: master
Ran 29 Oct 2015 11:28AM UTC
Jobs 1
Files 12
Run time 1s
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
1047

push

travis-ci

filipposc5
Add enter and exit maintenance fab tasks

Adds two fab tasks called enter_maintenance which takes a maintenance_ip as
a parameter and exit_maintenance. This is slightly complicated as there is
nothing stopping us from having multiple internet facing ELBs, so we kind
of have to loop through our stack and config to find the right ones.
When exiting maintenance in order to get the dns_name we need to get the
real load balancer object from AWS so we need to work our way to that by:

a) create a mapping of logical name into physical name for our stack's elbs
b) obtain all ELB object, filtering for physical names that belong to our
   stack
and then for each elb:

1) taking the config name from the cloudformation yaml
2) converting it to the logical name using get_elb_safe_name()
   (effectively converts something like shiny-foo into ELBshinyfoo)
3) traverse (b) to lookup the dns_name for the logical name

35 of 35 new or added lines in 1 file covered. (100.0%)

581 of 975 relevant lines covered (59.59%)

0.6 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
31
100.0
bootstrap_cfn/fab_tasks.py
Jobs
ID Job ID Ran Files Coverage
1 1047.1 29 Oct 2015 11:28AM UTC 0
59.59
Travis Job 1047.1
Source Files on build 1047
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1047
  • 83625ba4 on github
  • Next Build on feature-maintenance-mode (#1052)
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