Skip to content

Commit 1b254f2

Browse files
authored
Test for ELB with 0 instances attached (#300)
1 parent fb0b5a3 commit 1b254f2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import pytest
2+
3+
from aws.elb.resources import elbs
4+
5+
6+
@pytest.mark.elb
7+
@pytest.mark.parametrize(
8+
"elb", elbs(), ids=lambda e: e["LoadBalancerName"],
9+
)
10+
def test_elb_instances_attached(elb):
11+
"""
12+
Checks to see that an ELB has attached instances and fails if
13+
there are 0
14+
"""
15+
assert len(elb["Instances"]) > 0, "ELB has zero attached instances"

0 commit comments

Comments
 (0)