TEST_CRONS = {
    'supervised': {
        'id': 1,
        'app_id': '6b018c2b-77b7-40ca-bb82-cc8378252f67',
        'name': 'Supervised Daemon',
        'slug': 'supervised',
        'cron': None,
        'overrun': 0
    },
    'minutes_1': {
        'id': 2,
        'app_id': '6b018c2b-77b7-40ca-bb82-cc8378252f67',
        'name': 'Every minute',
        'slug': 'minutes_1',
        'cron': '*/1 * * * *',
        'overrun': 0
    },
    'minutes_1_overrun': {
        'id': 3,
        'app_id': '6b018c2b-77b7-40ca-bb82-cc8378252f67',
        'name': 'Every minute with overrun',
        'slug': 'minutes_1_overrun',
        'cron': '*/1 * * * *',
        'overrun': 3
    },
}


TEST_BEES = {
    'test_supervised_bee' : {
        'id': 1,
        'app_id': '6b018c2b-77b7-40ca-bb82-cc8378252f67',
        'name': 'Test Supervised Bee',
        'slug': 'test_supervised_bee',
        'description': 'Test supervised Bee script',
        'command_id': 1,
        'command_slug': 'test_bee',
        'args': [
            '-l',
            '/tmp/test_supervised_bee.log',
            '-i',
            '10'
        ],
        'quiet_restart': False,
        'enabled': False,
        'module': None,
        'command': 'test_bee.sh',
        'cron_id': 1,
        'cron': None
    },
    'test_supervised_pybee': {
        'id': 2,
        'app_id': '6b018c2b-77b7-40ca-bb82-cc8378252f67',
        'name': 'Test Supervised PyBee',
        'slug': 'test_supervised_pybee',
        'description': 'Test supervised PyBee module',
        'command_id': 2,
        'command_slug': 'test_pybee',
        'args': {
            'log': '/tmp/test_supervised_pybee.log',
            'interval_seconds': 10
        },
        'quiet_restart': False,
        'enabled': False,
        'module': 'test_pybee',
        'command': None,
        'cron_id': 1,
        'cron': None
    },
    'test_scheduled_bee': {
        'id': 3,
        'app_id': '6b018c2b-77b7-40ca-bb82-cc8378252f67',
        'name': 'Test Scheduled Bee',
        'slug': 'test_scheduled_bee',
        'description': 'Test scheduled Bee script',
        'command_id': 1,
        'command_slug': 'test_bee',
        'args': [
            '-l',
            '/tmp/test_scheduled_bee.log',
            '-i',
            '10',
            '-d',
            '40'
        ],
        'quiet_restart': False,
        'enabled': False,
        'module': None,
        'command': 'test_bee.sh',
        'cron_id': 2,
        'cron': '*/1 * * * *'
    },
    'test_scheduled_pybee': {
        'id': 4,
        'app_id': '6b018c2b-77b7-40ca-bb82-cc8378252f67',
        'name': 'Test Scheduled PyBee',
        'slug': 'test_scheduled_pybee',
        'description': 'Test scheduled PyBee module',
        'command_id': 2,
        'command_slug': 'test_pybee',
        'args': {
            'duration': 40,
            'log': '/tmp/test_scheduled_pybee.log',
            'interval_seconds': 10
        },
        'quiet_restart': False,
        'enabled': False,
        'module': 'test_pybee',
        'command': None,
        'cron_id': 2,
        'cron': '*/1 * * * *'
    },
    'test_supervised_bee_error': {
        'id': 5,
        'app_id': '6b018c2b-77b7-40ca-bb82-cc8378252f67',
        'name': 'Test Supervised Bee Error',
        'slug': 'test_supervised_bee_error',
        'description': 'Test supervised Bee script and exit with error',
        'command_id': 1,
        'command_slug': 'test_bee',
        'args': [
            '-l',
            '/tmp/test_supervised_bee.log',
            '-i',
            '10',
            '-e',
            '2'
        ],
        'quiet_restart': False,
        'enabled': False,
        'module': None,
        'command': 'test_bee.sh'
    },
    'test_supervised_pybee_error': {
        'id': 6,
        'app_id': '6b018c2b-77b7-40ca-bb82-cc8378252f67',
        'name': 'Test Supervised PyBee Error',
        'slug': 'test_supervised_pybee_error',
        'description': 'Test supervised PyBee module and exit with error',
        'command_id': 2,
        'command_slug': 'test_pybee',
        'args': {
            'log': '/tmp/test_supervised_pybee.log',
            'interval_seconds': 10,
            'exit': 2
        },
        'quiet_restart': False,
        'enabled': False,
        'module': 'test_pybee',
        'command': None
    },
    'test_scheduled_bee_error': {
        'id': 7,
        'app_id': '6b018c2b-77b7-40ca-bb82-cc8378252f67',
        'name': 'Test Scheduled Bee Error',
        'slug': 'test_scheduled_bee_error',
        'description': 'Test scheduled Bee script and exit with error',
        'command_id': 1,
        'command_slug': 'test_bee',
        'args': [
            '-l',
            '/tmp/test_scheduled_bee.log',
            '-i',
            '10',
            '-d',
            '40',
            '-e',
            '2'
        ],
        'quiet_restart': False,
        'enabled': False,
        'module': None,
        'command': 'test_bee.sh'
    },
    'test_scheduled_pybee_error': {
        'id': 8,
        'app_id': '6b018c2b-77b7-40ca-bb82-cc8378252f67',
        'name': 'Test Scheduled PyBee Error',
        'slug': 'test_scheduled_pybee_error',
        'description': 'Test scheduled PyBee module and exit with error',
        'command_id': 2,
        'command_slug': 'test_pybee',
        'args': {
            'duration': 40,
            'log': '/tmp/test_scheduled_pybee.log',
            'interval_seconds': 10,
            'exit': 2
        },
        'quiet_restart': False,
        'enabled': False,
        'module': 'test_pybee',
        'command': None
    },
}
