fix tests in test_client_node_op.py
@@ -17,20 +17,20 @@ def test_empty_alias_fails():
def test_missed_alias_fails():
- with pytest.raises(TypeError) as ex_info:
+ with pytest.raises(Exception) as ex_info:
op.validate({SERVICES: []})
- ex_info.match('validation error: missed fields alias')
+ ex_info.match('validation error: missed fields: alias')
def test_missed_a_ha_field_fails():
- with pytest.raises(TypeError) as ex_info:
+ with pytest.raises(Exception) as ex_info:
op.validate({
ALIAS: 'aNode',
NODE_PORT: 9700,
CLIENT_IP: '8.8.8.8',
CLIENT_PORT: 9701,
})
- ex_info.match('validation error: missed fields node_ip')
+ ex_info.match('validation error: missed fields: node_ip')
def test_update_services_passes():
