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

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

Build:
Build:
LAST BUILD BRANCH: alb-support-v1
DEFAULT BRANCH: master
Ran 29 Oct 2015 06:40PM UTC
Jobs 1
Files 12
Run time 2s
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
1052

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

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

583 of 983 relevant lines covered (59.31%)

0.59 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
37
100.0
bootstrap_cfn/fab_tasks.py

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
bootstrap_cfn/r53.py
65
100.0
bootstrap_cfn/fab_tasks.py
Jobs
ID Job ID Ran Files Coverage
1 1052.1 29 Oct 2015 06:40PM UTC 0
59.31
Travis Job 1052.1
Source Files on build 1052
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1052
  • 3935adb2 on github
  • Prev Build on feature-maintenance-mode (#1047)
  • Next Build on feature-maintenance-mode (#1054)
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