On 06/01/2015 13:40, Aline Manera
wrote:
On 06/01/2015 10:03, Daniel Henrique Barboza wrote:
Running the ./run-tests.sh script with
these patches in my machine (Lenovo T410 with Fedora 20) gives
the following error:
======================================================================
FAIL: test_network_lifecycle (test_network.NetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test_network.py", line 148, in test_network_lifecycle
_do_test(net)
File "test_network.py", line 101, in _do_test
self.assertEquals(201, resp.status)
AssertionError: 201 != 400
----------------------------------------------------------------------
I made sure to run make clean // autogen.sh --system // make
after applying the patches. Removing the patches fixes this
behavior.
Hope it helps!
Thanks for checking it, Daniel!
I verified the test case and it is failing because I assumed in
the test case any interface would be good to create a bridged
network which is not always true.
So I will remove the below code and send the V2
+ # Verify the current system has at least one interface
to create a
+ # bridged network
+ interfaces =
json.loads(self.request('/interfaces').read())
Daniel, could you please check if changing change the above line
to
interfaces = json.loads(self.request('/interfaces?type=nic').read())
fix the issue you had?
Thanks
Aline Manera