Пример #1
0
    def test_list_state_modules(self):
        '''
        Test if it list the modules loaded on the minion.
        '''
        self.assertListEqual(sysmod.list_state_modules(), [])

        self.assertListEqual(sysmod.list_state_modules('mysql_*'), [])
Пример #2
0
    def test_list_state_modules(self):
        """
        Test if it list the modules loaded on the minion.
        """
        self.assertListEqual(sysmod.list_state_modules(), [])

        self.assertListEqual(sysmod.list_state_modules("mysql_*"), [])
Пример #3
0
    def test_list_state_modules(self):
        '''
        Test if it lists the modules loaded on the minion.
        '''
        self.assertListEqual(sysmod.list_state_modules(), self._modules)

        self.assertListEqual(sysmod.list_state_modules('nonexist'), [])

        self.assertListEqual(sysmod.list_state_modules('user'), ['user'])

        self.assertListEqual(sysmod.list_state_modules('s*'), ['sys', 'sysctl', 'system'])
Пример #4
0
    def test_list_state_modules(self):
        '''
        Test if it lists the modules loaded on the minion.
        '''
        self.assertListEqual(sysmod.list_state_modules(), _modules)

        self.assertListEqual(sysmod.list_state_modules('nonexist'), [])

        self.assertListEqual(sysmod.list_state_modules('user'), ['user'])

        self.assertListEqual(sysmod.list_state_modules('s*'), ['sys', 'sysctl', 'system'])
Пример #5
0
    def test_list_state_modules(self):
        """
        Test if it lists the modules loaded on the minion.
        """
        self.assertListEqual(sysmod.list_state_modules(), self._modules)

        self.assertListEqual(sysmod.list_state_modules("nonexist"), [])

        self.assertListEqual(sysmod.list_state_modules("user"), ["user"])

        self.assertListEqual(sysmod.list_state_modules("s*"),
                             ["sys", "sysctl", "system"])