Esempio n. 1
0
    def setUpClass(cls):
        rc = controller.BasicRootController()
        actual_out = util.capture_stdout(rc.execute, ['show', 'distribution'])
        # use regex in get_separate_output(~.+Distribution.*~.+)
        #if you are changing below Distribution keyword
        TestShowDistribution.output_list = test_util.get_separate_output(
            actual_out, 'Distribution in Seconds')
        TestShowDistribution.is_bar_present = False

        for item in TestShowDistribution.output_list:
            if "~~test - TTL Distribution in Seconds" in item:
                TestShowDistribution.test_ttl_distri = item
            elif "~~bar - TTL Distribution in Seconds" in item:
                TestShowDistribution.bar_ttl_distri = item
                TestShowDistribution.is_bar_present = True
            elif "~~~~" in item:
                TestShowDistribution.test_namespace_config = item
Esempio n. 2
0
 def setUpClass(cls):
     TestInfo.rc = controller.BasicRootController()
     actual_out = util.capture_stdout(TestInfo.rc.execute, ['info'])
     TestInfo.output_list = test_util.get_separate_output(
         actual_out, 'Information')
     # TestInfo.output_list.append(util.capture_stdout(TestInfo.rc.execute, ['info', 'sindex']))
     for item in TestInfo.output_list:
         if "~~Network Information" in item:
             TestInfo.network_info = item
         elif "~~Namespace Usage Information" in item:
             TestInfo.namespace_usage_info = item
         elif "~~Secondary Index Information" in item:
             TestInfo.sindex_info = item
         elif "~~XDR Information" in item:
             TestInfo.xdr_info = item
         elif "~~Namespace Object Information" in item:
             TestInfo.namespace_object_info = item
Esempio n. 3
0
    def setUpClass(cls):
        rc = controller.BasicRootController()
        actual_out = util.capture_stdout(rc.execute, ['show', 'config'])
        TestShowConfig.output_list = test_util.get_separate_output(
            actual_out, 'Configuration')
        TestShowConfig.is_bar_present = False

        for item in TestShowConfig.output_list:
            if "~~Service Configuration" in item:
                TestShowConfig.service_config = item
            elif "~~Network Configuration" in item:
                TestShowConfig.network_config = item
            elif "~~test Namespace Configuration" in item:
                TestShowConfig.test_namespace_config = item
            elif "~~bar Namespace Configuration" in item:
                TestShowConfig.bar_namespace_config = item
                TestShowConfig.is_bar_present = True
            elif "~~XDR Configuration" in item:
                TestShowConfig.xdr_config = item
Esempio n. 4
0
    def setUpClass(cls):
        rc = controller.BasicRootController()
        actual_out = util.capture_stdout(rc.execute, ['show', 'statistics'])
        TestShowStatistics.output_list = test_util.get_separate_output(
            actual_out, 'Statistics')
        TestShowStatistics.is_bar_present = False

        for item in TestShowStatistics.output_list:
            if "~test Bin Statistics" in item:
                TestShowStatistics.test_bin_stats = item
            elif "~bar Bin Statistics" in item:
                TestShowStatistics.bar_bin_stats = item
                TestShowStatistics.is_bar_present = True
            elif "~Service Statistics" in item:
                TestShowStatistics.service_stats = item
            elif "~bar Namespace Statistics" in item:
                TestShowStatistics.bar_namespace_stats = item
                TestShowStatistics.is_bar_present = True
            elif "~test Namespace Statistics" in item:
                TestShowStatistics.test_namespace_stats = item
            elif "~XDR Statistics" in item:
                TestShowStatistics.xdr_stats = item
Esempio n. 5
0
    def setUpClass(cls):
        TestShowLatency.rc = controller.BasicRootController()
        actual_out = util.capture_stdout(TestShowLatency.rc.execute,
                                         ['show', 'latency'])
        TestShowLatency.output_list = test_util.get_separate_output(
            actual_out, 'Latency')

        for item in TestShowLatency.output_list:
            if "~~~proxy Latency~~" in item:
                TestShowLatency.proxy_latency = item
            elif "~~query Latency~~" in item:
                TestShowLatency.query_latency = item
            elif "~~reads Latency~~" in item or "~~read Latency~~" in item:
                TestShowLatency.reads_latency = item
            elif "~~udf Latency~~" in item:
                TestShowLatency.udf_latency = item
            elif "~~writes_master Latency~~" in item:
                TestShowLatency.writes_master_latency = item
            elif "~~writes_reply Latency~~" in item:
                TestShowLatency.writes_reply_latency = item
            elif "~~write Latency~~" in item:
                TestShowLatency.write_latency = item
Esempio n. 6
0
 def setUpClass(cls):
     TestWatch.rc = controller.BasicRootController()
     actual_out = util.capture_stdout(TestWatch.rc.execute, ['watch', '1', '3', 'info', 'network'])
     TestWatch.output_list = test_util.get_separate_output(actual_out, 'Information')
 def setUpClass(cls):
     TestCollectinfo.rc = controller.BasicRootController()