Esempio n. 1
0
class JMCommand(Command):
    #a default response type
    response = [('accepted', Boolean())]
class JMMsgSignatureVerify(JMCommand):
    arguments = [('verif_result', Boolean()), ('nick', String()),
                 ('fullmsg', String()), ('hostid', String())]
class JMFillResponse(JMCommand):
    arguments = [('success', Boolean()), ('ioauth_data', String())]
class AddUnexpectedSuccess(Command):
    """
    Add an unexpected success.
    """
    arguments = [(b'testName', NativeString()), (b'todo', NativeString())]
    response = [(b'success', Boolean())]
class TestWrite(Command):
    """
    Write test log.
    """
    arguments = [(b'out', NativeString())]
    response = [(b'success', Boolean())]
Esempio n. 6
0
class Run(Command):
    """
    Run a test.
    """
    arguments = [(b'testCase', NativeString())]
    response = [(b'success', Boolean())]
class AddSkip(Command):
    """
    Add a skip.
    """
    arguments = [(b'testName', NativeString()), (b'reason', NativeString())]
    response = [(b'success', Boolean())]
Esempio n. 8
0
class CameraCmd(Command):
    arguments = [('camera_cmd', String())]
    response = [('status', Boolean())]
    requiresAnswer = False
Esempio n. 9
0
class JMFillResponse(JMCommand):
    """Returns ioauth data from MAKER if successful.
    """
    arguments = [(b'success', Boolean()), (b'ioauth_data', JsonEncodable())]
Esempio n. 10
0
class NavigationCmd(Command):
    arguments = [('speed', Float()), ('heading', Float())]
    response = [('status', Boolean())]
    requiresAnswer = False
Esempio n. 11
0
class ManualDriveCmd(Command):
    arguments = [('throttle', Float()), ('steering', Float())]
    response = [('status', Boolean())]
    requiresAnswer = False
Esempio n. 12
0
class HaltCmd(Command):
    arguments = []
    response = [('status', Boolean())]
    requiresAnswer = False
Esempio n. 13
0
class HeartbeatCmd(Command):
    arguments = [('enabled', Boolean())]
    response = [('status', Boolean())]
    requiresAnswer = False
Esempio n. 14
0
class Start(Command):
    """
    Set up the worker process, giving the running directory.
    """
    arguments = [(b'directory', NativeString())]
    response = [(b'success', Boolean())]
Esempio n. 15
0
class JMFillResponse(JMCommand):
    """Returns ioauth data from MAKER if successful.
    """
    arguments = [('success', Boolean()), ('ioauth_data', String())]
class AddSuccess(Command):
    """
    Add a success.
    """
    arguments = [(b'testName', NativeString())]
    response = [(b'success', Boolean())]
Esempio n. 17
0
class JMMsgSignatureVerify(JMCommand):
    """A response to a request to verify the bitcoin signature
    of a message-channel layer message from the daemon
    """
    arguments = [('verif_result', Boolean()), ('nick', String()),
                 ('fullmsg', String()), ('hostid', String())]
Esempio n. 18
0
class EncryptedStoreSet(Command):
    arguments = [(b'blob', ObjBlob()), (b'type', String())]
    # should be providing auths
    Responses = [(b'done', Boolean()), (b'ttl', DateTime())]
    """