Comment 3 for bug 2057942

Revision history for this message
Brian Haley (brian-haley) wrote :

And the reason the test passed is it mocked the router object returned:

        routers_db = [{
            'id': uuidutils.generate_uuid(),
            'external_gateways': [{'network_id': ext_net_id}]}]

So it essentially had the valid key.

This is one of the drawbacks of unit tests.