nova/nova/ipv6
Jens Rosenboom 4647f418af Fix test_ipv6 and simplify to_global()
The tests test_to_global_with_bad_prefix and
test_to_global_with_bad_project are broken, they assert the TypeError
because they call to_global with an IPv6 address as MAC parameter and
do not check the functionality that they claim to check.

test_to_global_with_bad_project gets removed, because there is no
checking on the project_id, we simply hash whatever is there.

We also make sure that the correct error message is generated and add
a check to prevent regressing again.

While at it, simplify the code for to_global() in nova/ipv6/rfc2462.py.

Change-Id: I2a6f75beca1c37d135dcbb3a6eb0d739f2dd41e2
2016-06-28 20:42:32 +02:00
..
__init__.py Remove vi modelines 2014-02-03 14:19:44 +00:00
account_identifier.py Fix test_ipv6 and simplify to_global() 2016-06-28 20:42:32 +02:00
api.py Config options: Centralize ipv6 options 2016-04-05 17:09:53 +00:00
rfc2462.py Fix test_ipv6 and simplify to_global() 2016-06-28 20:42:32 +02:00