]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make DHCPv6 out of bounds API test deterministic
authorKevin Benton <blak111@gmail.com>
Wed, 24 Jun 2015 10:27:16 +0000 (03:27 -0700)
committerKevin Benton <blak111@gmail.com>
Wed, 24 Jun 2015 10:31:10 +0000 (03:31 -0700)
commita84ef9ae54a7dfe6d9dee54a01b189dd40bce423
treee3a23e2fe98612173cca2072a91512d1b5a4c222
parent3e57e83c6f42f6c24ae6fc292c19992b9d0a4844
Make DHCPv6 out of bounds API test deterministic

The test_dhcp_stateful_fixedips_outrange API test was randomly
picking an IP from last + 1 up to last + 10 in the allocation
range. This made it fail randomly when there was an issue related
to the subnet allocation having an off-by-one issue.

This adjusts the test to just always test last +1 and +2.

Related-Bug: #1468163
Change-Id: I641ab092e0ea0aae67ec717b492118a2f8a6f4fd
neutron/tests/api/test_dhcp_ipv6.py