Ejemplo n.º 1
0
 def test_update_flow_classifier_name(self):
     """flow-classifier-update myid --protocol any."""
     resource = 'flow_classifier'
     cmd = fc.FlowClassifierUpdate(test_cli20.MyApp(sys.stdout), None)
     self._test_update_resource(resource, cmd, 'myid',
                                ['myid', '--name', 'myname'],
                                {'name': 'myname'})
Ejemplo n.º 2
0
 def test_update_flow_classifier_description(self):
     """flow-classifier-update myid --name newname."""
     resource = 'flow_classifier'
     cmd = fc.FlowClassifierUpdate(test_cli20.MyApp(sys.stdout), None)
     myid = 'myid'
     args = [
         myid, '--description', 'flow_classifier1', '--description',
         'flow_classifier2'
     ]
     updatefields = {'description': 'flow_classifier2'}
     self._test_update_resource(resource, cmd, myid, args, updatefields)