'Test that the v2.0 API can\'t fetch v3 endpoints without publicURLs.
v2.0 API will return endpoints created by v3 API, but publicURL is
required for the service in the v2.0 API, therefore v3 endpoints of
a service which don\'t have publicURL will be ignored.'

def test_pure_v3_endpoint_without_publicurl_invisible_from_v2(self):

    region_id = self._region_create()
    body = {'endpoint': unit.new_endpoint_ref(self.service_id, region_id=region_id)}
    for interface in catalog.controllers.INTERFACES:
        if (interface == 'public'):
            continue
        body['endpoint']['interface'] = interface
        self.admin_request(method='POST', token=self.get_scoped_token(), path='/v3/endpoints', expected_status=http_client.CREATED, body=body)
    r = self.admin_request(token=self.get_scoped_token(), path='/v2.0/endpoints')
    self.assertEqual(0, len(r.result['endpoints']))
