diff options
author | Zuul <zuul@review.opendev.org> | 2020-02-19 23:40:22 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2020-02-19 23:40:22 +0000 |
commit | 7466e87d4b48ce059d2ff08f8edce95eecd2d22f (patch) | |
tree | d0d4e51f81fd6391e1f0f18c9e52cf714b2f8c4f /heat/tests | |
parent | 786c12000b6657db1a09e896ecaa9ca66dbabccd (diff) | |
parent | f4ca6e828822b1143379ef0567fa0741957971b2 (diff) | |
download | heat-7466e87d4b48ce059d2ff08f8edce95eecd2d22f.tar.gz |
Merge "Make properties updatable for IKE policy of VPNaaS"
Diffstat (limited to 'heat/tests')
-rw-r--r-- | heat/tests/openstack/neutron/test_neutron_vpnservice.py | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/heat/tests/openstack/neutron/test_neutron_vpnservice.py b/heat/tests/openstack/neutron/test_neutron_vpnservice.py index f34485732..12ec8d23c 100644 --- a/heat/tests/openstack/neutron/test_neutron_vpnservice.py +++ b/heat/tests/openstack/neutron/test_neutron_vpnservice.py @@ -737,21 +737,30 @@ class IKEPolicyTest(common.HeatTestCase): rsrc = self.create_ikepolicy() self.mockclient.update_ikepolicy.return_value = None + new_props = { + 'name': 'New IKEPolicy', + 'auth_algorithm': 'sha512', + 'description': 'New description', + 'encryption_algorithm': 'aes-256', + 'lifetime': { + 'units': 'seconds', + 'value': 1800 + }, + 'pfs': 'group2', + 'ike_version': 'v2' + } + update_body = { + 'ikepolicy': new_props + } scheduler.TaskRunner(rsrc.create)() props = dict(rsrc.properties) - props['name'] = 'New IKEPolicy' - props['auth_algorithm'] = 'sha512' + props.update(new_props) + update_template = rsrc.t.freeze(properties=props) scheduler.TaskRunner(rsrc.update, update_template)() self.mockclient.create_ikepolicy.assert_called_once_with( self.IKE_POLICY_CONF) - update_body = { - 'ikepolicy': { - 'name': 'New IKEPolicy', - 'auth_algorithm': 'sha512' - } - } self.mockclient.update_ikepolicy.assert_called_once_with( 'ike123', update_body) |