当前位置: 首页>>代码示例>>Python>>正文


Python mockcassandra.start_cassandra函数代码示例

本文整理汇总了Python中mockcassandra.mockcassandra.start_cassandra函数的典型用法代码示例。如果您正苦于以下问题:Python start_cassandra函数的具体用法?Python start_cassandra怎么用?Python start_cassandra使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了start_cassandra函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: setUpClass

    def setUpClass(cls):
        if (os.getenv('LD_LIBRARY_PATH', '').find('build/lib') < 0):
            if (os.getenv('DYLD_LIBRARY_PATH', '').find('build/lib') < 0):
                assert(False)

        cls.cassandra_port = AnalyticsFixture.get_free_port()
        mockcassandra.start_cassandra(cls.cassandra_port)
开发者ID:cijohnson,项目名称:contrail-controller,代码行数:7,代码来源:test_analytics_uflow.py

示例2: setUpClass

    def setUpClass(cls):
        if StatsTest._check_skip_test() is True:
            return

        if (os.getenv('LD_LIBRARY_PATH', '').find('build/lib') < 0):
            if (os.getenv('DYLD_LIBRARY_PATH', '').find('build/lib') < 0):
                assert(False)

        cls.cassandra_port = StatsTest.get_free_port()
        mockcassandra.start_cassandra(cls.cassandra_port)
开发者ID:chrigl,项目名称:contrail-controller,代码行数:10,代码来源:analytics_statstest.py

示例3: setUpClass

    def setUpClass(cls):
        if AnalyticsTest._check_skip_test() is True:
            return

        if os.getenv("LD_LIBRARY_PATH", "").find("build/lib") < 0:
            if os.getenv("DYLD_LIBRARY_PATH", "").find("build/lib") < 0:
                assert False

        cls.cassandra_port = AnalyticsTest.get_free_port()
        mockcassandra.start_cassandra(cls.cassandra_port)
开发者ID:vmahuli,项目名称:contrail-controller-test,代码行数:10,代码来源:analytics_systest.py

示例4: setUpClass

    def setUpClass(cls):
        if AnalyticsTest._check_skip_test() is True:
            return

        if (os.getenv('LD_LIBRARY_PATH', '').find('build/lib') < 0):
            if (os.getenv('DYLD_LIBRARY_PATH', '').find('build/lib') < 0):
                assert(False)

        cls.cassandra_port = AnalyticsTest.get_free_port()
        mockcassandra.start_cassandra(cls.cassandra_port)
        cls.redis_port = AnalyticsTest.get_free_port()
        mockredis.start_redis(
            cls.redis_port, builddir+'/testroot/bin/redis-server')
开发者ID:srajag,项目名称:contrail-controller,代码行数:13,代码来源:analytics_systest.py

示例5: setUpClass

    def setUpClass(cls):
        if AnalyticsDbTest._check_skip_test() is True:
            return

        if (os.getenv('LD_LIBRARY_PATH', '').find('build/lib') < 0):
            if (os.getenv('DYLD_LIBRARY_PATH', '').find('build/lib') < 0):
                assert(False)

        cls.cassandra_port = AnalyticsDbTest.get_free_port()
        mockcassandra.start_cassandra(cls.cassandra_port,cassandra_user='cassandra', cassandra_password='cassandra')
        cls.redis_port = AnalyticsDbTest.get_free_port()
        mockredis.start_redis(cls.redis_port)
        cls.redis_password_port = AnalyticsDbTest.get_free_port()
        mockredis.start_redis(cls.redis_password_port, password='contrail')
开发者ID:secof,项目名称:contrail-controller,代码行数:14,代码来源:test_analytics_db_password.py

示例6: setUpClass

    def setUpClass(cls):
        if AnalyticsDbTest._check_skip_test() is True:
            return

        if os.getenv("LD_LIBRARY_PATH", "").find("build/lib") < 0:
            if os.getenv("DYLD_LIBRARY_PATH", "").find("build/lib") < 0:
                assert False

        cls.cassandra_port = AnalyticsDbTest.get_free_port()
        mockcassandra.start_cassandra(cls.cassandra_port)
        cls.redis_port = AnalyticsDbTest.get_free_port()
        mockredis.start_redis(cls.redis_port)
        cls.redis_password_port = AnalyticsDbTest.get_free_port()
        mockredis.start_redis(cls.redis_password_port, password="contrail")
开发者ID:avinkon,项目名称:contrail-controller,代码行数:14,代码来源:test_analytics_db.py

示例7: setUpClass

    def setUpClass(cls):
        if AnalyticsTest._check_skip_test() == True:
            return

        if (os.getenv('LD_LIBRARY_PATH','').find('build/lib') < 0):
            if (os.getenv('DYLD_LIBRARY_PATH','').find('build/lib') < 0):
                assert(False)
        cls.cassandra_port = AnalyticsTest.get_free_port()
        # the sstableloader seems to work only if we have storage port is
        # default 7000 - needs to be investigated
        cls.storage_port = 7000
        cls._cassbase, cls._basefile = mockcassandra.start_cassandra(cls.cassandra_port, cls.storage_port)
开发者ID:Pojen-Huang,项目名称:contrail-controller,代码行数:12,代码来源:test_analytics_perf.py

示例8: setUpClass

 def setUpClass(cls):
     cls.cassandra_port = ConfigTest.get_free_port()
     mockcassandra.start_cassandra(cls.cassandra_port)
开发者ID:Juniper,项目名称:contrail-controller,代码行数:3,代码来源:config_systest.py


注:本文中的mockcassandra.mockcassandra.start_cassandra函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。