Fix URL for node lookup

Change-Id: I5b128a74bf0442f61d722978308c03c6ec45f8d8
This commit is contained in:
Jim Rollenhagen 2014-03-27 12:25:11 -07:00
parent aee1555156
commit 6329ae46db
2 changed files with 3 additions and 2 deletions

View File

@ -71,7 +71,7 @@ class APIClient(object):
raise errors.HeartbeatError('Invalid Heartbeat-Before header')
def lookup_node(self, hardware_info):
path = '/{api_version}/drivers/teeth/lookup'.format(
path = '/{api_version}/drivers/teeth/vendor_passthru/lookup'.format(
api_version=self.api_version
)
# This hardware won't be saved on the node currently, because of how

View File

@ -115,7 +115,8 @@ class TestBaseIronicPythonAgent(unittest.TestCase):
request_args = self.api_client.session.request.call_args[0]
self.assertEqual(request_args[0], 'POST')
self.assertEqual(request_args[1], API_URL + 'v1/drivers/teeth/lookup')
self.assertEqual(request_args[1],
API_URL + 'v1/drivers/teeth/vendor_passthru/lookup')
data = self.api_client.session.request.call_args[1]['data']
content = json.loads(data)