summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Gachnang <josh@pcsforeducation.com>2014-03-19 14:01:49 -0700
committerJosh Gachnang <josh@pcsforeducation.com>2014-03-19 14:01:49 -0700
commit85234b702c6aee6c3929cdb145d5edc19a90c3bf (patch)
treeb2daf1f425865e2aac24ffb41808235f5147e363
parentd0323f3ec1668f35a3153628d733678eb9dcf5d0 (diff)
downloadironic-python-agent-85234b702c6aee6c3929cdb145d5edc19a90c3bf.tar.gz
Using RFC5737 example ip addrs
-rw-r--r--teeth_agent/tests/agent.py6
-rw-r--r--teeth_agent/tests/overlord_agent_api.py10
2 files changed, 8 insertions, 8 deletions
diff --git a/teeth_agent/tests/agent.py b/teeth_agent/tests/agent.py
index a032a021..8f90e7a6 100644
--- a/teeth_agent/tests/agent.py
+++ b/teeth_agent/tests/agent.py
@@ -120,8 +120,8 @@ class TestBaseAgent(unittest.TestCase):
def setUp(self):
self.encoder = encoding.RESTJSONEncoder(indent=4)
self.agent = agent.TeethAgent('https://fake_api.example.org:8081/',
- ('31.41.59.26', 9990),
- ('42.42.42.42', 9999))
+ ('203.0.113.1', 9990),
+ ('192.0.2.1', 9999))
def assertEqualEncoded(self, a, b):
# Evidently JSONEncoder.default() can't handle None (??) so we have to
@@ -165,7 +165,7 @@ class TestBaseAgent(unittest.TestCase):
self.agent.api_client.lookup_node = mock.Mock()
self.agent.run()
- listen_addr = ('42.42.42.42', 9999)
+ listen_addr = ('192.0.2.1', 9999)
wsgi_server_cls.assert_called_once_with(
listen_addr[0],
listen_addr[1],
diff --git a/teeth_agent/tests/overlord_agent_api.py b/teeth_agent/tests/overlord_agent_api.py
index 32a8e0ac..20f92ad7 100644
--- a/teeth_agent/tests/overlord_agent_api.py
+++ b/teeth_agent/tests/overlord_agent_api.py
@@ -48,7 +48,7 @@ class TestBaseTeethAgent(unittest.TestCase):
heartbeat_before = self.api_client.heartbeat(
uuid='deadbeef-dabb-ad00-b105-f00d00bab10c',
- advertise_address=('42.42.42.42', '9999')
+ advertise_address=('192.0.2.1', '9999')
)
self.assertEqual(heartbeat_before, expected_heartbeat_before)
@@ -66,7 +66,7 @@ class TestBaseTeethAgent(unittest.TestCase):
self.assertRaises(errors.HeartbeatError,
self.api_client.heartbeat,
uuid='deadbeef-dabb-ad00-b105-f00d00bab10c',
- advertise_address=('42.42.42.42', '9999'))
+ advertise_address=('192.0.2.1', '9999'))
def test_heartbeat_invalid_status_code(self):
response = httmock.response(status_code=404)
@@ -76,7 +76,7 @@ class TestBaseTeethAgent(unittest.TestCase):
self.assertRaises(errors.HeartbeatError,
self.api_client.heartbeat,
uuid='deadbeef-dabb-ad00-b105-f00d00bab10c',
- advertise_address=('42.42.42.42', '9999'))
+ advertise_address=('192.0.2.1', '9999'))
def test_heartbeat_missing_heartbeat_before_header(self):
response = httmock.response(status_code=204)
@@ -86,7 +86,7 @@ class TestBaseTeethAgent(unittest.TestCase):
self.assertRaises(errors.HeartbeatError,
self.api_client.heartbeat,
uuid='deadbeef-dabb-ad00-b105-f00d00bab10c',
- advertise_address=('42.42.42.42', '9999'))
+ advertise_address=('192.0.2.1', '9999'))
def test_heartbeat_invalid_heartbeat_before_header(self):
response = httmock.response(status_code=204, headers={
@@ -98,7 +98,7 @@ class TestBaseTeethAgent(unittest.TestCase):
self.assertRaises(errors.HeartbeatError,
self.api_client.heartbeat,
uuid='deadbeef-dabb-ad00-b105-f00d00bab10c',
- advertise_address=('42.42.42.42', '9999'))
+ advertise_address=('192.0.2.1', '9999'))
def test_lookup_node(self):
response = httmock.response(status_code=200, content={