Mock call to sysctl for test_get_free_namespace_port
The code under test shouldn't execute local commands for multiple
reasons (eg the command doesn't exist on the test system), so mock out
the execution of sysctl in test_get_free_namespace_port (copying the
code from test_get_unused_port).
Reviewed: https:/ /review. openstack. org/363917 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=5e4204804ea 4b364d27d014d13 ecb529bc370ea6
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5e4204804ea4b36 4d27d014d13ecb5 29bc370ea6
Author: Corey Wright <email address hidden>
Date: Wed Aug 31 14:34:13 2016 -0500
Mock call to sysctl for test_get_ free_namespace_ port
The code under test shouldn't execute local commands for multiple free_namespace_ port (copying the unused_ port).
reasons (eg the command doesn't exist on the test system), so mock out
the execution of sysctl in test_get_
code from test_get_
Change-Id: I58aa578274310a e2ca015069f99ed b84716fb0b5
Closes-bug: #1619028