def test_create_member_all_params(self):
     """lb-member-create with all available params."""
     resource = 'member'
     cmd = member.CreateMember(test_cli20.MyApp(sys.stdout), None)
     address = '10.0.0.1'
     admin_state_up = False
     port = '8080'
     weight = '1'
     tenant_id = 'my-tenant'
     my_id = 'my-id'
     pool_id = 'pool-id'
     args = [
         '--address', address, '--admin-state-down', '--protocol-port',
         port, '--weight', weight, '--tenant-id', tenant_id, pool_id
     ]
     position_names = [
         'address', 'admin_state_up', 'protocol_port', 'weight',
         'tenant_id', 'pool_id'
     ]
     position_values = [
         address, admin_state_up, port, weight, tenant_id, pool_id
     ]
     self._test_create_resource(resource,
                                cmd,
                                None,
                                my_id,
                                args,
                                position_names,
                                position_values,
                                admin_state_up=None)
 def test_create_member(self):
     """lb-member-create with mandatory params only."""
     resource = 'member'
     cmd = member.CreateMember(test_cli20.MyApp(sys.stdout), None)
     address = '10.0.0.1'
     port = '8080'
     tenant_id = 'my-tenant'
     my_id = 'my-id'
     pool_id = 'pool-id'
     args = [
         '--address', address, '--protocol-port', port, '--tenant-id',
         tenant_id, pool_id
     ]
     position_names = [
         'address', 'protocol_port', 'tenant_id', 'pool_id',
         'admin_state_up'
     ]
     position_values = [address, port, tenant_id, pool_id, True]
     self._test_create_resource(resource,
                                cmd,
                                None,
                                my_id,
                                args,
                                position_names,
                                position_values,
                                admin_state_up=None)