Add skip if public_network_id is not specified
If public_network_id is not specified in tempest.conf,
the testcases using it should be skipped, otherwize we will
get errors like:
BadRequest: Bad request
Details: {u'message': u"Invalid input for external_gateway_info.
Reason: '' is not a valid UUID.",
u'type': u'HTTPBadRequest', u'detail': u''}
Besides, _create_router in dynamic_creds will try to create_router
using self.public_network_id as external_gateway_info, which will also
raise Error when self.public_network_id is None, so here is to pass
external_gateway_info to create_router only when self.public_network_id
is not None.
Change-Id: I567f9a51d301bcfea782d549298dbd3a598f3b85
13 files changed