Skip to content

Commit 474f5fb

Browse files
committed
1541 add validation of some fields to loadbal detail test
1 parent a7690bd commit 474f5fb

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

SoftLayer/fixtures/SoftLayer_Network_LBaaS_LoadBalancer.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@
5858
'uuid': 'ab1a1abc-0e83-4690-b5d4-1359625dba8f',
5959
}
6060
},
61+
{
62+
'clientTimeout': 15,
63+
'defaultPool': {
64+
'healthMonitor': {
65+
'uuid': '222222ab-bbcc-4f32-9b31-1b6d3a1959c0'
66+
},
67+
'protocol': 'HTTP',
68+
'protocolPort': 256,
69+
'uuid': 'ab1a1abc-0e83-4690-b5d4-1359625dba8x',
70+
}
71+
},
6172
{'connectionLimit': None,
6273
'createDate': '2019-08-21T17:19:25-04:00',
6374
'defaultPool': {'createDate': '2019-08-21T17:19:25-04:00',

tests/CLI/modules/loadbal_tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ def test_lb_health_update_fails(self, update_lb_health_monitors):
215215
def test_lb_detail(self):
216216
result = self.run_command(['lb', 'detail', '1111111'])
217217
self.assert_no_fail(result)
218+
self.assertIn('Id', result.output)
219+
self.assertIn('UUI', result.output)
220+
self.assertIn('Address', result.output)
218221

219222
def test_lb_detail_by_name(self):
220223
name = SoftLayer_Network_LBaaS_LoadBalancer.getObject.get('name')

0 commit comments

Comments
 (0)