~cjwatson/rabbitfixture/ctl-dist-port

« back to all changes in this revision

Viewing changes to rabbitfixture/tests/test_server.py

  • Committer: Colin Watson
  • Date: 2019-03-28 15:21:13 UTC
  • mfrom: (41.1.1 enabled-plugins-file)
  • Revision ID: cjwatson@canonical.com-20190328152113-3u9acxbg6ablboln
[r=adam-collard] Use RABBITMQ_ENABLED_PLUGINS_FILE to disable all plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
            self.assertIsInstance(resources.mnesiadir, six.string_types)
130
130
            self.assertIsInstance(resources.logfile, six.string_types)
131
131
            self.assertIsInstance(resources.nodename, six.string_types)
132
 
            self.assertIsInstance(resources.pluginsdir, six.string_types)
133
 
            self.assertEqual(resources.pluginsfile, os.devnull)
 
132
            with open(resources.pluginsfile) as pluginsfile:
 
133
                self.assertEqual("[].\n", pluginsfile.read())
134
134
 
135
135
    def test_passed_to_init(self):
136
136
        args = dict(
173
173
            "RABBITMQ_NODE_PORT": str(config.port),
174
174
            "RABBITMQ_DIST_PORT": str(config.dist_port),
175
175
            "RABBITMQ_NODENAME": config.fq_nodename,
176
 
            "RABBITMQ_PLUGINS_DIR": config.pluginsdir,
 
176
            "RABBITMQ_ENABLED_PLUGINS_FILE": config.pluginsfile,
177
177
        }
178
178
        self.assertEqual(
179
179
            expected, {name: os.getenv(name) for name in expected})