Example #1
0
 def test_update_ipsecpolicy(self):
     """vpn-ipsecpolicy-update myid --name newname --tags a b."""
     resource = 'ipsecpolicy'
     cmd = ipsecpolicy.UpdateIPsecPolicy(test_cli20.MyApp(sys.stdout), None)
     self._test_update_resource(resource, cmd, 'myid',
                                ['myid', '--name', 'newname'],
                                {'name': 'newname', })
 def test_update_ipsecpolicy_other_params(self):
     # vpn-ipsecpolicy-update myid --transform-protocol esp
     # --pfs group14  --encapsulation-mode transport
     resource = 'ipsecpolicy'
     cmd = ipsecpolicy.UpdateIPsecPolicy(test_cli20.MyApp(sys.stdout), None)
     self._test_update_resource(
         resource, cmd, 'myid', [
             'myid', '--transform-protocol', 'esp', '--pfs', 'group14',
             '--encapsulation-mode', 'transport'
         ], {
             'transform_protocol': 'esp',
             'pfs': 'group14',
             'encapsulation_mode': 'transport',
         })