~cjwatson/rabbitfixture/fix-esrch-handling

« back to all changes in this revision

Viewing changes to rabbitfixture/tests/test_server.py

  • Committer: Free Ekanayaka
  • Date: 2016-09-05 09:38:34 UTC
  • mfrom: (36.1.1 disable-plugins)
  • Revision ID: free.ekanayaka@canonical.com-20160905093834-m30f9im4gc9ppp4f
Export the RABBITMQ_ENABLED_PLUGINS_FILE environment
variable and make it point to /dev/null by default.

This matches the default value of RABBITMQ_PLUGINS_DIR, which
is currently an empty temporary directory, and prevents
the fixture from failing if the system-wide rabbitmq configuration
has plugins enabled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
            self.assertIsInstance(resources.mnesiadir, (str, unicode))
123
123
            self.assertIsInstance(resources.logfile, (str, unicode))
124
124
            self.assertIsInstance(resources.nodename, (str, unicode))
 
125
            self.assertIsInstance(resources.pluginsdir, (str, unicode))
 
126
            self.assertEqual(resources.pluginsfile, os.devnull)
125
127
 
126
128
    def test_passed_to_init(self):
127
129
        args = dict(