mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Fix assertion messages to match and pass tests
This commit is contained in:
parent
d8e7feafce
commit
6212cfba12
@ -816,7 +816,10 @@ class BotoVpcNetworkACLTestCase(BotoVpcTestCaseBase):
|
||||
'''
|
||||
Tests checking existence of network acl with no filters
|
||||
'''
|
||||
with self.assertRaisesRegexp(SaltInvocationError, 'At least on of the following must be specified: network ACL id, name or tags.'):
|
||||
with self.assertRaisesRegexp(
|
||||
SaltInvocationError,
|
||||
'At least on of the following must be specified: dhcp options id, name or tags.'
|
||||
):
|
||||
boto_vpc.dhcp_options_exists(**conn_parameters)
|
||||
|
||||
@mock_ec2
|
||||
@ -1146,7 +1149,10 @@ class BotoVpcRouteTablesTestCase(BotoVpcTestCaseBase):
|
||||
'''
|
||||
Tests checking route table without filters
|
||||
'''
|
||||
with self.assertRaisesRegexp(SaltInvocationError, 'At least on of the following must be specified: route table id, name or tags.'):
|
||||
with self.assertRaisesRegexp(
|
||||
SaltInvocationError,
|
||||
'At least on of the following must be specified: dhcp options id, name or tags.'
|
||||
):
|
||||
boto_vpc.dhcp_options_exists(**conn_parameters)
|
||||
|
||||
@mock_ec2
|
||||
|
Loading…
Reference in New Issue
Block a user