from reconfigure.configs import CrontabConfig
from reconfigure.tests.configs.base_test import BaseConfigTest


class CrontabConfigTest (BaseConfigTest):
    sources = {
        None: """#comment line
* * * * * date
@reboot ls -al
1 * 0 1 2 date -s
NAME=TEST"""
    }
    result = {
        'normal_tasks': [
            {
                'minute': '*',
                'hour': '*',
                'day_of_month': '*',
                'month': '*',
                'day_of_week': '*',
                'command': 'date',
                'comment': 'comment line'
            },
            {
                'minute': '1',
                'hour': '*',
                'day_of_month': '0',
                'month': '1',
                'day_of_week': '2',
                'command': 'date -s',
                'comment': None,
            },

        ],
        'special_tasks': [
            {
                'special': '@reboot',
                'command': 'ls -al',
                'comment': None,
            }
        ],
        'env_settings': [
            {
                'name': 'NAME',
                'value': 'TEST',
                'comment': None
            }
        ]
    }
    config = CrontabConfig


del BaseConfigTest

47060f1cda9c0fe6815f44240a5c0a6e11be126c
<mask token>


class CrontabConfigTest(BaseConfigTest):
    <mask token>
    <mask token>
    <mask token>


<mask token>

<mask token>


class CrontabConfigTest(BaseConfigTest):
    sources = {None:
        '#comment line\n* * * * * date\n@reboot ls -al\n1 * 0 1 2 date -s\nNAME=TEST'
        }
    result = {'normal_tasks': [{'minute': '*', 'hour': '*', 'day_of_month':
        '*', 'month': '*', 'day_of_week': '*', 'command': 'date', 'comment':
        'comment line'}, {'minute': '1', 'hour': '*', 'day_of_month': '0',
        'month': '1', 'day_of_week': '2', 'command': 'date -s', 'comment':
        None}], 'special_tasks': [{'special': '@reboot', 'command':
        'ls -al', 'comment': None}], 'env_settings': [{'name': 'NAME',
        'value': 'TEST', 'comment': None}]}
    config = CrontabConfig


<mask token>

<mask token>


class CrontabConfigTest(BaseConfigTest):
    sources = {None:
        '#comment line\n* * * * * date\n@reboot ls -al\n1 * 0 1 2 date -s\nNAME=TEST'
        }
    result = {'normal_tasks': [{'minute': '*', 'hour': '*', 'day_of_month':
        '*', 'month': '*', 'day_of_week': '*', 'command': 'date', 'comment':
        'comment line'}, {'minute': '1', 'hour': '*', 'day_of_month': '0',
        'month': '1', 'day_of_week': '2', 'command': 'date -s', 'comment':
        None}], 'special_tasks': [{'special': '@reboot', 'command':
        'ls -al', 'comment': None}], 'env_settings': [{'name': 'NAME',
        'value': 'TEST', 'comment': None}]}
    config = CrontabConfig


del BaseConfigTest

from reconfigure.configs import CrontabConfig
from reconfigure.tests.configs.base_test import BaseConfigTest


class CrontabConfigTest(BaseConfigTest):
    sources = {None:
        '#comment line\n* * * * * date\n@reboot ls -al\n1 * 0 1 2 date -s\nNAME=TEST'
        }
    result = {'normal_tasks': [{'minute': '*', 'hour': '*', 'day_of_month':
        '*', 'month': '*', 'day_of_week': '*', 'command': 'date', 'comment':
        'comment line'}, {'minute': '1', 'hour': '*', 'day_of_month': '0',
        'month': '1', 'day_of_week': '2', 'command': 'date -s', 'comment':
        None}], 'special_tasks': [{'special': '@reboot', 'command':
        'ls -al', 'comment': None}], 'env_settings': [{'name': 'NAME',
        'value': 'TEST', 'comment': None}]}
    config = CrontabConfig


del BaseConfigTest

from reconfigure.configs import CrontabConfig
from reconfigure.tests.configs.base_test import BaseConfigTest


class CrontabConfigTest (BaseConfigTest):
    sources = {
        None: """#comment line
* * * * * date
@reboot ls -al
1 * 0 1 2 date -s
NAME=TEST"""
    }
    result = {
        'normal_tasks': [
            {
                'minute': '*',
                'hour': '*',
                'day_of_month': '*',
                'month': '*',
                'day_of_week': '*',
                'command': 'date',
                'comment': 'comment line'
            },
            {
                'minute': '1',
                'hour': '*',
                'day_of_month': '0',
                'month': '1',
                'day_of_week': '2',
                'command': 'date -s',
                'comment': None,
            },

        ],
        'special_tasks': [
            {
                'special': '@reboot',
                'command': 'ls -al',
                'comment': None,
            }
        ],
        'env_settings': [
            {
                'name': 'NAME',
                'value': 'TEST',
                'comment': None
            }
        ]
    }
    config = CrontabConfig


del BaseConfigTest
