Updating /cluster to use v1beta 3 specs, and change a lot of polling to
healthz instead of api endpoints.
This commit is contained in:
@@ -37,12 +37,12 @@ class TestRegistrator():
|
||||
@patch('json.loads')
|
||||
@patch('httplib.HTTPConnection')
|
||||
def test_register(self, httplibmock, jsonmock):
|
||||
result = self.r.register('foo', 80, '/v1beta1/test')
|
||||
result = self.r.register('foo', 80, '/v1beta3/test')
|
||||
|
||||
httplibmock.assert_called_with('foo', 80)
|
||||
requestmock = httplibmock().request
|
||||
requestmock.assert_called_with(
|
||||
"POST", "/v1beta1/test",
|
||||
"POST", "/v1beta3/test",
|
||||
json.dumps(self.r.data),
|
||||
{"Content-type": "application/json",
|
||||
"Accept": "application/json"})
|
||||
|
Reference in New Issue
Block a user