How to use the carbonate.config function in carbonate

To help you get started, we’ve selected a few carbonate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github graphite-project / carbonate / tests / test_config.py View on Github external
def test_config_replication_factor(self):
        c = config.Config(self.simple_config)

        self.assertEqual(c.replication_factor(), 1)
github graphite-project / carbonate / tests / test_sieve.py View on Github external
def setUp(self):
        config_file = "tests/conf/simple.conf"
        config = carbonate.config.Config(config_file)
        self.cluster = carbonate.cluster.Cluster(config)
github graphite-project / carbonate / tests / test_config.py View on Github external
def test_config_multiple_clusters(self):
        c = config.Config(self.real_config)

        expected = ['main', 'standalone', 'fnv']
        self.assertEqual(set(c.clusters()), set(expected))