1
0

test_rabbitmq.py 654 B

123456789101112131415161718192021222324
  1. # -*- coding: utf-8 -*-
  2. from __future__ import absolute_import, print_function, unicode_literals
  3. import pytest
  4. from tests.support.case import ModuleCase
  5. @pytest.mark.skip_if_not_root
  6. @pytest.mark.windows_whitelisted
  7. @pytest.mark.requires_salt_modules("rabbitmq")
  8. class RabbitModuleTest(ModuleCase):
  9. """
  10. Validates the rabbitmqctl functions.
  11. To run these tests, you will need to be able to access the rabbitmqctl
  12. commands.
  13. """
  14. def test_user_exists(self):
  15. """
  16. Find out whether a user exists.
  17. """
  18. ret = self.run_function("rabbitmq.user_exists", ["null_user"])
  19. self.assertEqual(ret, False)