1234567891011121314151617181920212223242526 |
- # -*- coding: utf-8 -*-
- # Import python libs
- from __future__ import absolute_import, unicode_literals, print_function
- import pytest
- # Import Salt Testing libs
- from tests.support.case import ModuleCase
- @pytest.mark.skip_if_not_root
- @pytest.mark.requires_salt_modules('rabbitmq')
- @pytest.mark.windows_whitelisted
- class RabbitModuleTest(ModuleCase):
- '''
- Validates the rabbitmqctl functions.
- To run these tests, you will need to be able to access the rabbitmqctl
- commands.
- '''
- def test_user_exists(self):
- '''
- Find out whether a user exists.
- '''
- ret = self.run_function('rabbitmq.user_exists', ['null_user'])
- self.assertEqual(ret, False)
|