From 2e5dfb4e27219e5b315bfda17c20901696c68df6 Mon Sep 17 00:00:00 2001 From: Allen Shih Date: Mon, 19 Aug 2019 19:32:10 -0700 Subject: [PATCH] wdmNext automation refactor improvements --- .../happy/test-templates/WeaveWdmNext.py | 561 +- .../test-templates/WeaveWdmNextOptions.py | 176 + .../test_weave_wdm_next_application_key_01.py | 34 +- .../test_weave_wdm_next_application_key_02.py | 38 +- .../test_weave_wdm_next_mutual_resub.py | 109 +- ...test_weave_wdm_next_mutual_subscribe_01.py | 36 +- ...test_weave_wdm_next_mutual_subscribe_02.py | 36 +- ...test_weave_wdm_next_mutual_subscribe_03.py | 38 +- ...test_weave_wdm_next_mutual_subscribe_04.py | 38 +- ...test_weave_wdm_next_mutual_subscribe_05.py | 36 +- ...test_weave_wdm_next_mutual_subscribe_06.py | 37 +- ...test_weave_wdm_next_mutual_subscribe_07.py | 38 +- ...test_weave_wdm_next_mutual_subscribe_08.py | 38 +- ...test_weave_wdm_next_mutual_subscribe_09.py | 36 +- ...test_weave_wdm_next_mutual_subscribe_10.py | 37 +- ...test_weave_wdm_next_mutual_subscribe_11.py | 37 +- ...test_weave_wdm_next_mutual_subscribe_12.py | 38 +- ...test_weave_wdm_next_mutual_subscribe_13.py | 36 +- ...test_weave_wdm_next_mutual_subscribe_14.py | 37 +- ...test_weave_wdm_next_mutual_subscribe_15.py | 38 +- ...test_weave_wdm_next_mutual_subscribe_16.py | 38 +- ...test_weave_wdm_next_mutual_subscribe_17.py | 36 +- ...test_weave_wdm_next_mutual_subscribe_18.py | 37 +- ...test_weave_wdm_next_mutual_subscribe_19.py | 37 +- ...test_weave_wdm_next_mutual_subscribe_20.py | 38 +- ...test_weave_wdm_next_mutual_subscribe_21.py | 34 +- ...test_weave_wdm_next_mutual_subscribe_22.py | 34 +- ...test_weave_wdm_next_mutual_subscribe_23.py | 34 +- ...test_weave_wdm_next_mutual_subscribe_24.py | 34 +- ...test_weave_wdm_next_mutual_subscribe_25.py | 33 +- ...test_weave_wdm_next_mutual_subscribe_26.py | 34 +- ...test_weave_wdm_next_mutual_subscribe_27.py | 34 +- ...test_weave_wdm_next_mutual_subscribe_28.py | 34 +- ...test_weave_wdm_next_mutual_subscribe_29.py | 33 +- ...test_weave_wdm_next_mutual_subscribe_30.py | 34 +- ...test_weave_wdm_next_mutual_subscribe_31.py | 34 +- ...test_weave_wdm_next_mutual_subscribe_32.py | 34 +- ...test_weave_wdm_next_mutual_subscribe_33.py | 33 +- ...test_weave_wdm_next_mutual_subscribe_34.py | 35 +- ...test_weave_wdm_next_mutual_subscribe_35.py | 34 +- ...test_weave_wdm_next_mutual_subscribe_36.py | 34 +- ...test_weave_wdm_next_mutual_subscribe_37.py | 33 +- ...test_weave_wdm_next_mutual_subscribe_38.py | 34 +- ...test_weave_wdm_next_mutual_subscribe_39.py | 34 +- ...test_weave_wdm_next_mutual_subscribe_40.py | 34 +- ...test_weave_wdm_next_mutual_subscribe_41.py | 35 +- ...test_weave_wdm_next_mutual_subscribe_42.py | 35 +- ...test_weave_wdm_next_mutual_subscribe_43.py | 38 +- ...test_weave_wdm_next_mutual_subscribe_44.py | 36 +- ...test_weave_wdm_next_mutual_subscribe_45.py | 36 +- ...test_weave_wdm_next_mutual_subscribe_46.py | 36 +- ...test_weave_wdm_next_mutual_subscribe_47.py | 37 +- ...test_weave_wdm_next_mutual_subscribe_48.py | 35 +- ...test_weave_wdm_next_mutual_subscribe_49.py | 35 +- ...test_weave_wdm_next_mutual_subscribe_50.py | 35 +- ...test_weave_wdm_next_mutual_subscribe_51.py | 36 +- ...test_weave_wdm_next_mutual_subscribe_52.py | 36 +- ...test_weave_wdm_next_mutual_subscribe_53.py | 37 +- ...test_weave_wdm_next_mutual_subscribe_54.py | 36 +- ...test_weave_wdm_next_mutual_subscribe_55.py | 37 +- ...test_weave_wdm_next_mutual_subscribe_56.py | 35 +- ...test_weave_wdm_next_mutual_subscribe_57.py | 35 +- ...test_weave_wdm_next_mutual_subscribe_58.py | 35 +- ...test_weave_wdm_next_mutual_subscribe_59.py | 36 +- ...test_weave_wdm_next_mutual_subscribe_60.py | 39 +- ...test_weave_wdm_next_mutual_subscribe_61.py | 40 +- ...test_weave_wdm_next_mutual_subscribe_62.py | 39 +- ...test_weave_wdm_next_mutual_subscribe_63.py | 39 +- ...test_weave_wdm_next_mutual_subscribe_64.py | 44 +- ...test_weave_wdm_next_mutual_subscribe_65.py | 44 +- ..._weave_wdm_next_mutual_subscribe_faults.py | 113 +- ...est_weave_wdm_next_one_way_subscribe_01.py | 30 +- ...est_weave_wdm_next_one_way_subscribe_02.py | 32 +- ...est_weave_wdm_next_one_way_subscribe_03.py | 32 +- ...est_weave_wdm_next_one_way_subscribe_04.py | 33 +- ...est_weave_wdm_next_one_way_subscribe_05.py | 31 +- ...est_weave_wdm_next_one_way_subscribe_06.py | 32 +- ...est_weave_wdm_next_one_way_subscribe_07.py | 30 +- ...est_weave_wdm_next_one_way_subscribe_08.py | 29 +- ...est_weave_wdm_next_one_way_subscribe_09.py | 30 +- ...est_weave_wdm_next_one_way_subscribe_10.py | 28 +- ...est_weave_wdm_next_one_way_subscribe_11.py | 31 +- ...est_weave_wdm_next_one_way_subscribe_12.py | 27 +- ...est_weave_wdm_next_one_way_subscribe_13.py | 32 +- ...est_weave_wdm_next_one_way_subscribe_14.py | 32 +- ...est_weave_wdm_next_one_way_subscribe_15.py | 31 +- ...est_weave_wdm_next_one_way_subscribe_16.py | 32 +- ...est_weave_wdm_next_one_way_subscribe_17.py | 32 +- .../test_weave_wdm_next_oneway_resub.py | 84 +- ..._weave_wdm_next_oneway_subscribe_faults.py | 63 +- .../test_weave_wdm_next_subless_notify_01.py | 62 +- .../wdmNext/test_weave_wdm_next_update_01.py | 32 +- .../wdmNext/test_weave_wdm_next_update_02.py | 32 +- .../wdmNext/test_weave_wdm_next_update_03.py | 32 +- .../wdmNext/weave_wdm_next_test_base.py | 294 +- .../wdmNext/weave_wdm_next_test_params.json | 5627 +++++++++++++++++ 96 files changed, 6606 insertions(+), 3520 deletions(-) create mode 100644 src/test-apps/happy/test-templates/WeaveWdmNextOptions.py create mode 100644 src/test-apps/happy/tests/standalone/wdmNext/weave_wdm_next_test_params.json diff --git a/src/test-apps/happy/test-templates/WeaveWdmNext.py b/src/test-apps/happy/test-templates/WeaveWdmNext.py index 01bcd83cb2..efa4a36f8d 100644 --- a/src/test-apps/happy/test-templates/WeaveWdmNext.py +++ b/src/test-apps/happy/test-templates/WeaveWdmNext.py @@ -27,200 +27,75 @@ import sys import time +from happy.HappyNode import HappyNode +from happy.HappyNetwork import HappyNetwork from happy.ReturnMsg import ReturnMsg from happy.Utils import * from happy.utils.IP import IP -from happy.HappyNode import HappyNode -from happy.HappyNetwork import HappyNetwork + +from functools import reduce from WeaveTest import WeaveTest -import WeaveUtilities import plugins.plaid.Plaid as Plaid - -options = { "clients": None, - "server": None, - "quiet": False, - "tap": None, - "wdm_option": None, - "strace": True, - "plaid": "auto", - "timeout": None, - "enable_client_stop": True, - "save_client_perf": False, - "client_faults": None, - "server_faults": None, - "client_event_generator": False, - "client_inter_event_period": None, - "enable_server_stop": False, - "save_server_perf": False, - "server_event_generator": None, - "server_inter_event_period": None, - "wdm_client_liveness_check_period": None, - "wdm_server_liveness_check_period": None, - "wdm_subless_notify_dest_node": None, - "case": False, - "enable_retry": False, - "case_cert_path": None, - "enable_mock_event_timestamp_initial_counter": False, - "case_key_path": None, - "group_enc": False, - "group_enc_key_id": None, - "use_persistent_storage": True, - "total_client_count": None, - "total_server_count": None, - "final_client_status": None, - "final_server_status": None, - "timer_client_period": None, - "timer_server_period": None, - "test_client_iterations": None, - "test_server_iterations": None, - "test_client_delay": None, - "test_server_delay": None, - "enable_client_flip": None, - "enable_server_flip": None, - "client_update_mutation": None, - "client_update_conditionality": None, - "client_update_timing": None, - "client_update_num_mutations": None, - "client_update_num_repeated_mutations": None, - "client_update_num_traits": None, - "client_update_discard_on_error": False, - } +import WeaveUtilities +import WeaveWdmNextOptions as wwno def option(): - return options.copy() + return wwno.OPTIONS.copy() class WeaveWdmNext(HappyNode, HappyNetwork, WeaveTest): """ - Runs a WDM test between a client and a server. The following options are supported. - - test_client_case, test_server_case: - - Maps to --test-case - Controls which traits are published and subscribed to. - The same value needs to be specified for both, for the subscriptions to work - - - total_client_count, total_server_count: - - Maps to --total-count - The number of times the node will mutate the trait instance per iteration; - The frequency of the mutations is controlled by timer_server_period and timer_client_period - Note that the server sends a custom command at the same time it mutates the trait instance. - The command type alternates between 1 and 2. Command 1 is served immediately by the client; - Command 2 is executed with a delay (the client sends a kMsgType_InProgress). - - - timer_server_period, timer_client_period: - - Maps to --timer-period - The period of the trait instance mutations. - - - final_client_status, final_server_status: - - Maps to --final-status, with the following values: - 0(client cancel), 1(publisher cancel), 2(client abort), 3(Publisher abort), 4(Idle) - This parameter controls what ends the test iteration. Both the client and the server have - a subscription client and a subscription handler (publisher). The node will terminate the - iteration with a Cancel or Abort, after either its publisher or its client have performed - all mutations and have become Idle. - A value of 4(Idle) means that the node will just wait for the other node to act. - - - test_client_iterations: - - Maps to --test-iterations on the client node - The number of times the test sequence (establish subscriptions, mutate N times, - cancel or abort) should be repeated. - - - test_server_iterations: - - Maps to --test-iterations on the server node - This is 1 by default and our tests never change it, since the tests are driven from - the client side and the server node is passive. - - - test_client_delay, test_server_delay: - - Maps to --test-delay. - The nodes will sleep for the given number of milliseconds between iterations - Currently, this needs to be more than 2 seconds if the server is sending commands, since the - client executes command type 2 with a delay of 2 seconds. - - - client_clear_state_between_iterations, server_clear_state_between_iterations: - - Maps to --clear-state-between-iterations - Resets the state of the data sink after each iteration - - - enable_client_stop, enable_server_stop: - - Maps to --enable-stop - Controls whether the process will exit the iteration or not at the end of the iteration - This is always enabled on the client, and disabled on the server; the caller should - not need to change these values. - - - client_event_generator, server_event_generator: - - Maps to --event-generator - Controls the event generator (None | Debug | Livenesss | Security | Telemetry | TestTrait) - running in the node's background. - See the option help string in TestWdmNext.cpp. The frequency at which events are generated - is controlled by client_inter_event_period and server_inter_event_period - - - client_inter_event_period, server_inter_event_period: - - Maps to --inter-event-period - The period used by the event generator in milliseconds + Runs a WDM test between a client and a server. """ - def __init__(self, opts=options): + def __init__(self, opts=option()): + """ + Initialize test parameters and plaid. + + Args: + options (dict): Test parameters. + """ HappyNode.__init__(self) HappyNetwork.__init__(self) WeaveTest.__init__(self) - self.__dict__.update(opts) - + self.options = opts self.no_service = False - - self.server_process_tag = "WEAVE_WDM_SERVER" + (opts["test_tag"] if "test_tag" in opts else "") - self.client_process_tag = "WEAVE_WDM_CLIENT" + (opts["test_tag"] if "test_tag" in opts else "") - self.plaid_server_process_tag = "PLAID_SERVER" + (opts["test_tag"] if "test_tag" in opts else "") - + self.server_process_tag = "WEAVE_WDM_SERVER" + \ + self.options[wwno.TEST].get(wwno.TEST_TAG, "") + self.client_process_tag = "WEAVE_WDM_CLIENT" + \ + self.options[wwno.TEST].get(wwno.TEST_TAG, "") + self.plaid_server_process_tag = "PLAID_SERVER" + \ + self.options[wwno.TEST].get(wwno.TEST_TAG, "") self.client_node_id = None self.server_node_id = None - self.clients_info = [] - self.wdm_client_option = None self.wdm_server_option = None plaid_opts = Plaid.default_options() - plaid_opts["quiet"] = self.quiet + plaid_opts["quiet"] = self.options[wwno.TEST][wwno.QUIET] self.plaid_server_node_id = "node03" plaid_opts["server_node_id"] = self.plaid_server_node_id plaid_opts["num_clients"] = 2 plaid_opts["server_ip_address"] = self.getNodeWeaveIPAddress(self.plaid_server_node_id) - plaid_opts["strace"] = self.strace + plaid_opts["strace"] = self.options[wwno.TEST][wwno.STRACE] self.plaid = Plaid.Plaid(plaid_opts) - self.use_plaid = opts["plaid"] - if opts["plaid"] == "auto": - if self.server == "service": - # can't use plaid when talking to an external service + self.use_plaid = self.options[wwno.TEST][wwno.PLAID] + if self.use_plaid == "auto": + if self.options[wwno.TEST][wwno.SERVER] == "service": + # Can't use plaid when talking to an external service self.use_plaid = False else: self.use_plaid = self.plaid.isPlaidConfigured() - def __pre_check(self): + """ + Perform set of checks to before running Wdm next tests. + """ # Make sure that fabric was created if self.getFabricId() == None: emsg = "Weave Fabric has not been created yet." @@ -228,28 +103,29 @@ def __pre_check(self): sys.exit(1) # Check if Weave WDM server node is given. - if self.server == None: + if not self.options[wwno.TEST][wwno.SERVER]: emsg = "Missing name or address of the WeaveWdmNext server node." self.logger.error("[localhost] WeaveWdmNext: %s" % (emsg)) sys.exit(1) # Check if WeaveWdmNext server node exists. - if self._nodeExists(self.server): - self.server_node_id = self.server + if self._nodeExists(self.options[wwno.TEST][wwno.SERVER]): + self.server_node_id = self.options[wwno.TEST][wwno.SERVER] self.server_process_tag = self.server_node_id + "_" + self.server_process_tag # Check if server is provided in a form of IP address - if IP.isIpAddress(self.server): + if IP.isIpAddress(self.options[wwno.TEST][wwno.SERVER]): self.no_service = True - self.server_ip = self.server - self.server_weave_id = self.IPv6toWeaveId(self.server) - elif IP.isDomainName(self.server) or self.server == "service": + self.server_ip = self.options[wwno.TEST][wwno.SERVER] + self.server_weave_id = self.IPv6toWeaveId(self.options[wwno.TEST][wwno.SERVER]) + elif IP.isDomainName(self.options[wwno.TEST][wwno.SERVER]) \ + or self.options[wwno.TEST][wwno.SERVER] == "service": self.no_service = True self.server_ip = self.getServiceWeaveIPAddress("DataManagement") self.server_weave_id = self.IPv6toWeaveId(self.server_ip) else: # Check if server is a true cloud service instance - if self.getNodeType(self.server) == self.node_type_service: + if self.getNodeType(self.options[wwno.TEST][wwno.SERVER]) == self.node_type_service: self.no_service = True if not self.no_service and self.server_node_id is None: @@ -275,12 +151,12 @@ def __pre_check(self): self.logger.error("[localhost] WeaveWdmNext: %s" % emsg) sys.exit(1) - for client in self.clients: + for client in self.options[wwno.TEST][wwno.CLIENT]: client_node_id = None client_ip = None client_weave_id = None # Check if Weave Wdm Next client node is given. - if client == None: + if client is None: emsg = "Missing name or address of the WeaveWdmNext client node." self.logger.error("[localhost] WeaveWdmNext: %s" % (emsg)) sys.exit(1) @@ -317,18 +193,18 @@ def __pre_check(self): self.clients_info.append({"client": client, "client_node_id": client_node_id, "client_ip": client_ip, "client_weave_id": client_weave_id, "client_process_tag": client + "_" + self.client_process_tag}) - if self.wdm_option == "view": + if self.options[wwno.TEST][wwno.WDM_OPTION] == "view": self.wdm_client_option = " --wdm-simple-view-client" self.wdm_server_option = " --wdm-simple-view-server" print "view disabled" sys.exit(1) - elif self.wdm_option == "one_way_subscribe": + elif self.options[wwno.TEST][wwno.WDM_OPTION] == "one_way_subscribe": self.wdm_client_option = " --wdm-one-way-sub-client" self.wdm_server_option = " --wdm-one-way-sub-publisher" - elif self.wdm_option == "mutual_subscribe": + elif self.options[wwno.TEST][wwno.WDM_OPTION] == "mutual_subscribe": self.wdm_client_option = " --wdm-init-mutual-sub" self.wdm_server_option = " --wdm-resp-mutual-sub" - elif self.wdm_option == "subless_notify": + elif self.options[wwno.TEST][wwno.WDM_OPTION] == "subless_notify": self.wdm_client_option = " --wdm-simple-subless-notify-client" self.wdm_server_option = " --wdm-simple-subless-notify-server" else: @@ -337,51 +213,91 @@ def __pre_check(self): sys.exit(1) def __process_results(self, client_output, server_output, client_info): + """ + Check for parser errors and leaks on client and server. + + Args: + client_output (str): Log output from client node. + server_output (str): Log output from server node. + client_info (dict): Client node information. + + Returns: + dict: Results of client/server parser error and leaks. + """ client_parser_error = None client_leak_detected = None server_parser_error = None server_leak_detected = None result = {} - client_parser_error, client_leak_detected = WeaveUtilities.scan_for_leaks_and_parser_errors(client_output) + client_parser_error, client_leak_detected = WeaveUtilities.scan_for_leaks_and_parser_errors( + client_output) result["no_client_parser_error"] = not client_parser_error result["no_client_leak_detected"] = not client_leak_detected - if server_output is not "": - server_parser_error, server_leak_detected = WeaveUtilities.scan_for_leaks_and_parser_errors(server_output) + if server_output: + server_parser_error, server_leak_detected = WeaveUtilities.scan_for_leaks_and_parser_errors( + server_output) result["no_server_parser_error"] = not client_parser_error result["no_server_leak_detected"] = not server_leak_detected - if self.quiet is False: + if not self.options[wwno.TEST][wwno.QUIET]: print "weave-wdm-next %s from node %s (%s) to node %s (%s) : "\ - % (self.wdm_option, client_info["client_node_id"], client_info["client_ip"], self.server_node_id, self.server_ip) + % (self.options[wwno.TEST][wwno.WDM_OPTION], + client_info["client_node_id"], client_info["client_ip"], + self.server_node_id, self.server_ip) - if client_parser_error is True: + if client_parser_error: print hred("client parser error") - if client_leak_detected is True: + if client_leak_detected: print hred("client_resource leak detected") - if server_parser_error is True: + if server_parser_error: print hred("server parser error") - if server_leak_detected is True: + if server_leak_detected: print hred("server resource leak detected") return result - def wdm_next_checksum_check_process(self, log): - """Pull out checksum value list for each trait object sent or received.""" - checksum_list= re.findall("Checksum is (\w+)", log) - return checksum_list + """ + Pull out checksum value list for each trait object sent or received. + Args: + log (str): Logs from client/server node. + + Returns: + list: List of checksum values. + """ + checksum_list = re.findall("Checksum is (\w+)", log) + return checksum_list def wdm_next_client_event_sequence_process(self, log): - """Pull out the number of events sent in a notification. Only notifications with non-zero events are reported""" + """ + Pull out the number of events sent in a notification. + Only notifications with non-zero events are reported. + + Args: + log (str): Logs from client node. + + Returns: + dict: Publisher event list data. + """ success = True - client_event_list= re.findall("Fetched (\d+) events", log) + client_event_list = re.findall("Fetched (\d+) events", log) client_event_process_list = [int(event) for event in client_event_list if int(event) > 0] - return {"client_event_list":client_event_process_list, "length": len(client_event_process_list), "success": success} - + return {"client_event_list": client_event_process_list, + "length": len(client_event_process_list), "success": success} def wdm_next_publisher_event_sequence_process(self, log): - """Pull out the number of events received in a notification. All notifications with EventList element are reported. It would be considered an error to receive an empty EventList""" + """ + Pull out the number of events received in a notification. + All notifications with EventList element are reported. + It would be considered an error to receive an empty EventList. + + Args: + log(str): Logs from publisher node node. + + Returns: + dict: Publisher event list data. + """ publisher_event_list = re.finditer("WEAVE:DMG: \tEventList =", log) success = True event_list_len = [] @@ -390,19 +306,26 @@ def wdm_next_publisher_event_sequence_process(self, log): endEventListMarker = re.search(".*WEAVE:DMG: \t],.*", log[startEventList:]) if endEventListMarker: endEventList = endEventListMarker.end() - event_list_len.append(len(re.findall("WEAVE:DMG: \t\t{", log[startEventList:(startEventList+endEventList)]))) + event_list_len.append( + len(re.findall("WEAVE:DMG: \t\t{", log[startEventList:(startEventList + endEventList)]))) else: success = False - return {"publisher_event_list":event_list_len, "length": len(event_list_len), "success": success} + return {"publisher_event_list": event_list_len, + "length": len(event_list_len), "success": success} def __start_plaid_server(self): - + """ + Start the plaid server. + """ self.plaid.startPlaidServerProcess() emsg = "plaid-server should be running." self.logger.debug("[%s] WeaveWdmNext: %s" % (self.plaid_server_node_id, emsg)) def __start_server_side(self): + """ + Configure server side node with server test parameters. + """ if self.no_service: return cmd = self.getWeaveWdmNextPath() @@ -411,162 +334,79 @@ def __start_server_side(self): self.server_id = self.server_weave_id cmd += self.wdm_server_option - if self.wdm_option == "subless_notify": + if self.options[wwno.TEST][wwno.WDM_OPTION] == "subless_notify": cmd += " --wdm-subless-notify-dest-node " + self.clients_info[0]["client_weave_id"] cmd += " --wdm-subnet 6" - if self.enable_server_stop is True: - cmd += " --enable-stop " - - if self.save_server_perf is True: - cmd += " --save-perf" - - if self.wdm_subless_notify_dest_node is not None: - cmd += " --wdm-subless-notify-dest-node " + str(self.wdm_subless_notify_dest_node) - - if self.wdm_server_liveness_check_period is not None: - cmd += " --wdm-liveness-check-period " + str(self.wdm_server_liveness_check_period) - - if self.test_server_case is not None: - cmd += " --test-case " + str(self.test_server_case) - - if self.total_server_count is not None: - cmd += " --total-count " + str(self.total_server_count) - - if self.final_server_status is not None: - cmd += " --final-status " + str(self.final_server_status) - - if self.timer_server_period is not None: - cmd += " --timer-period " + str(self.timer_server_period) - - if self.test_server_iterations is not None: - cmd += " --test-iterations " + str(self.test_server_iterations) - - if self.test_server_delay is not None: - cmd += " --test-delay " + str(self.test_server_delay) - - if self.enable_server_flip is not None: - cmd += " --enable-flip " + str(self.enable_server_flip) - - if self.server_faults != None: - cmd += " --faults " + self.server_faults - - if self.__dict__.get("server_clear_state_between_iterations", False): - cmd += " --clear-state-between-iterations" - - if self.server_event_generator is not None: - cmd += " --event-generator " + str(self.server_event_generator) - - if self.server_inter_event_period is not None: - cmd += " --inter-event-period " + str(self.server_inter_event_period) - - if self.tap: - cmd += " --tap-device " + self.tap + # Loop through server side test parameters + for key, value in self.options[wwno.SERVER].items(): + if key == wwno.LOG_CHECK: + continue + if isinstance(value, bool) and value: + # parameter is a True/False to add CLI option + cmd += " --{}".format(key.replace('_', '-')) + elif not isinstance(value, bool) and value is not None: + # parameter is a value + cmd += " --{} {}".format(key.replace('_', '-'), value) custom_env = {} if self.use_plaid: custom_env = self.plaid.getPlaidClientLibEnv(self.server_node_id) - self.start_simple_weave_server(cmd, self.server_ip, self.server_node_id, self.server_process_tag, listen=False, strace=self.strace, env=custom_env, use_persistent_storage=self.use_persistent_storage) - + self.start_simple_weave_server( + cmd, + self.server_ip, + self.server_node_id, + self.server_process_tag, + listen=False, + strace=self.options[wwno.TEST][wwno.STRACE], + env=custom_env, + use_persistent_storage=self.options[wwno.TEST][wwno.USE_PERSISTENT_STORAGE]) def __start_client_side(self, client_info): + """ + Configure client side node with client test parameters. + + Args: + client_info(dict): Holds client node information. + """ cmd = self.getWeaveWdmNextPath() if not cmd: return cmd += self.wdm_client_option - if self.wdm_option != "subless_notify": + if self.options[wwno.TEST][wwno.WDM_OPTION] != "subless_notify": cmd += " --wdm-publisher " + self.server_weave_id - - if self.enable_client_stop is True: - cmd += " --enable-stop " - - if self.save_client_perf is True: - cmd += " --save-perf" - - if self.wdm_client_liveness_check_period is not None: - cmd += " --wdm-liveness-check-period " + str(self.wdm_client_liveness_check_period) - - if self.enable_client_dictionary_test is not None: - cmd += " --enable-dictionary-test " - - if self.test_client_case is not None: - cmd += " --test-case " + str(self.test_client_case) - - if self.total_client_count is not None: - cmd += " --total-count " + str(self.total_client_count) - - if self.final_client_status is not None: - cmd += " --final-status " + str(self.final_client_status) - - if self.timer_client_period is not None: - cmd += " --timer-period " + str(self.timer_client_period) - - if self.test_client_iterations is not None: - cmd += " --test-iterations " + str(self.test_client_iterations) - - if self.test_client_delay is not None: - cmd += " --test-delay " + str(self.test_client_delay) - - if self.enable_client_flip is not None: - cmd += " --enable-flip " + str(self.enable_client_flip) - - if self.__dict__.get("client_clear_state_between_iterations", False): - cmd += " --clear-state-between-iterations" - - if self.client_faults != None: - cmd += " --faults " + self.client_faults - - if self.tap: - cmd += " --tap-device " + self.tap - - if self.server == "service": + if self.options[wwno.TEST][wwno.SERVER] == "service": node_id = client_info["client_weave_id"] fabric_id = self.getFabricId() client_info["client_ip"] = None cmd += " --wdm-subnet 5 --node-id=%s --fabric-id %s " % (node_id, fabric_id) - - if self.client_event_generator is not None: - cmd += " --event-generator " + str(self.client_event_generator) - - if self.client_inter_event_period is not None: - cmd += " --inter-event-period " + str(self.client_inter_event_period) - - if self.case: - self.cert_file = self.case_cert_path if self.case_cert_path else os.path.join(self.main_conf["log_directory"], node_id.upper() + "-cert.weave-b64") - self.key_file = self.case_key_path if self.case_key_path else os.path.join(self.main_conf["log_directory"], node_id.upper() + "-key.weave-b64") - cmd += " --case " + " --node-cert " + self.cert_file + " --node-key " + self.key_file - - if self.group_enc: - cmd += ' --group-enc ' + ' --group-enc-key-id ' + self.group_enc_key_id - - if self.enable_retry: - cmd += " --enable-retry" - - if self.enable_mock_event_timestamp_initial_counter: - cmd += " --enable-mock-event-timestamp-initial-counter" - - if self.client_update_mutation: - cmd += " --wdm-update-mutation " + self.client_update_mutation - - if self.client_update_conditionality: - cmd += " --wdm-update-conditionality " + self.client_update_conditionality - - if self.client_update_timing: - cmd += " --wdm-update-timing " + self.client_update_timing - - if self.client_update_num_mutations: - cmd += " --wdm-update-number-of-mutations " + str(self.client_update_num_mutations) - - if self.client_update_num_repeated_mutations: - cmd += " --wdm-update-number-of-repeated-mutations " + str(self.client_update_num_repeated_mutations) - - if self.client_update_num_traits: - cmd += " --wdm-update-number-of-traits " + str(self.client_update_num_traits) - - if self.client_update_discard_on_error: - cmd += " --wdm-update-discard-on-error" + if self.options[wwno.CLIENT][wwno.CASE]: + cert_file = self.options[wwno.CLIENT][wwno.CASE_CERT_PATH] or os.path.join( + self.main_conf["log_directory"], node_id.upper() + "-cert.weave-b64") + key_file = self.options[wwno.CLIENT][wwno.CASE_KEY_PATH] or os.path.join( + self.main_conf["log_directory"], node_id.upper() + "-key.weave-b64") + cmd += " --{} --{} {} --{} {}".format( + wwno.CASE, wwno.CASE_CERT_PATH.replace('_', '-'), + cert_file, wwno.CASE_KEY_PATH.replace('_', '-'), key_file) + if self.options[wwno.CLIENT][wwno.GROUP_ENC]: + cmd += ' --{} --{} {}'.format( + wwno.GROUP_ENC.replace('_', '-'), wwno.GROUP_ENC_KEY_ID.replace('_', '-'), + self.options[wwno.CLIENT][wwno.GROUP_ENC_KEY_ID]) + + # Loop through client side test parameters + for key, value in self.options[wwno.CLIENT].items(): + if key in [wwno.CASE, wwno.CASE_CERT_PATH, wwno.CASE_KEY_PATH, + wwno.GROUP_ENC, wwno.GROUP_ENC_KEY_ID, wwno.LOG_CHECK]: + # already dealt with this special case + continue + if isinstance(value, bool) and value: + # parameter is a True/False to add CLI option + cmd += " --{}".format(key.replace('_', '-')) + elif not isinstance(value, bool) and value is not None: + # parameter is a value + cmd += " --{} {}".format(key.replace('_', '-'), value) custom_env = {} @@ -574,40 +414,64 @@ def __start_client_side(self, client_info): try: print "cmd = \n" + cmd print "sleeping..." - time.sleep(60*60) + time.sleep(60 * 60) except: print "sleep interrupted" if self.use_plaid: custom_env = self.plaid.getPlaidClientLibEnv(client_info["client_node_id"]) - self.start_simple_weave_client(cmd, client_info["client_ip"], None, None, client_info["client_node_id"], - client_info["client_process_tag"], strace=self.strace, env=custom_env, use_persistent_storage=self.use_persistent_storage) - + self.start_simple_weave_client(cmd, client_info["client_ip"], None, None, + client_info["client_node_id"], + client_info["client_process_tag"], + strace=self.options[wwno.TEST][wwno.STRACE], + env=custom_env, + use_persistent_storage=self.options[wwno.TEST][wwno.USE_PERSISTENT_STORAGE]) def __wait_for_client(self, client_info): - self.wait_for_test_to_end(client_info["client_node_id"], client_info["client_process_tag"], quiet=False, timeout=self.timeout) - + """ + Wait for client to finish test execution. + + Args: + client_info(dict): Holds client node data. + """ + self.wait_for_test_to_end( + client_info["client_node_id"], + client_info["client_process_tag"], + quiet=False, + timeout=self.options[wwno.TEST][wwno.TIMEOUT]) def __stop_server_side(self): + """ + Stop weave process on server node. + """ if self.no_service: return self.stop_weave_process(self.server_node_id, self.server_process_tag) - def __stop_client_side(self): + """ + Stop weave process on client node. + """ if self.no_service: return self.stop_weave_process(self.client_node_id, self.client_process_tag) - def __stop_plaid_server(self): + """ + Stop the plaid server. + """ self.plaid.stopPlaidServerProcess() - def run_client_test(self): + """ + Run Weave wdm next test with test parameters. + + Returns: + ReturnMsg: Test run results data. + """ all_data = [] success = True self.__pre_check() @@ -626,10 +490,16 @@ def run_client_test(self): self.__wait_for_client(client_info) for client_info in self.clients_info: client_output_value, client_output_data = \ - self.get_test_output(client_info["client_node_id"], client_info["client_process_tag"], True) - if self.strace: + self.get_test_output( + client_info["client_node_id"], + client_info["client_process_tag"], + True) + if self.options[wwno.TEST][wwno.STRACE]: client_strace_value, client_strace_data = \ - self.get_test_strace(client_info["client_node_id"], client_info["client_process_tag"], True) + self.get_test_strace( + client_info["client_node_id"], + client_info["client_process_tag"], + True) if self.no_service: server_output_data = "" @@ -640,26 +510,23 @@ def run_client_test(self): self.__stop_plaid_server() server_output_value, server_output_data = \ self.get_test_output(self.server_node_id, self.server_process_tag, True) - if self.strace: + if self.options[wwno.TEST][wwno.STRACE]: server_strace_value, server_strace_data = \ - self.get_test_strace(self.server_node_id, self.server_process_tag, True) + self.get_test_strace(self.server_node_id, self.server_process_tag, True) - success_dic = self.__process_results(client_output_data, server_output_data, client_info) + success_dic = self.__process_results( + client_output_data, server_output_data, client_info) success = reduce(lambda x, y: x and y, success_dic.values()) - data = {} data.update(client_info) data["client_output"] = client_output_data data["server_output"] = server_output_data - if self.strace: + if self.options[wwno.TEST][wwno.STRACE]: data["client_strace"] = client_strace_data data["server_strace"] = server_strace_data data["success_dic"] = success_dic all_data.append(data) return ReturnMsg(success, all_data) - - def run(self): - return self.run_client_test() diff --git a/src/test-apps/happy/test-templates/WeaveWdmNextOptions.py b/src/test-apps/happy/test-templates/WeaveWdmNextOptions.py new file mode 100644 index 0000000000..68daf75acd --- /dev/null +++ b/src/test-apps/happy/test-templates/WeaveWdmNextOptions.py @@ -0,0 +1,176 @@ +#!/usr/bin/env python + +""" +Defines all test parameter options for WeaveWdmNext automation. +""" + +# Test Options +# Client nodes +CLIENTS = "clients" +# Whether to use plaid +PLAID = "plaid" +# Control test result output +QUIET = "quiet" +# Server nodes +SERVER = "server" +# Whether to use strace +STRACE = "strace" +# Name of test case +TEST_CASE_NAME = "test_case_name" +# Time to wait for test end +TIMEOUT = "timeout" +# Option for using persistent storage +USE_PERSISTENT_STORAGE = "use_persistent_storage" +# Type of weave subscription +WDM_OPTION = "wdm_option" +# Tag to denote test type +TEST_TAG = "test_tag" + +""" +Client/Server SHARED Options +""" +# Resets the state of the data sink after each iteration +CLEAR_STATE_BETWEEN_ITERATIONS = "clear_state_between_iterations" +# Enable/disable flip trait data in HandleDataFlipTimeout +ENABLE_FLIP = "enable_flip" +# Controls whether the process will exit the iteration or not at the end of the iteration +ENABLE_STOP = "enable_stop" +# Controls the event generator (None | Debug | Livenesss | Security | Telemetry | TestTrait) +# running in the node's background. +EVENT_GENERATOR = "event_generator" +# Fault injections +FAULTS = "faults" +# Control what ends the test iteration +# 0(client cancel), 1(publisher cancel), 2(client abort), 3(Publisher abort), 4(Idle) +FINAL_STATUS = "final_status" +# Period of time (milliseconds) between events +INTER_EVENT_PERIOD = "inter_event_period" +# Specify time (seconds) between liveness checks in WDM subscription as publisher +LIVENESS_CHECK_PERIOD = "wdm_liveness_check_period" +# Save wdm perf data in files +SAVE_PERF = "save_perf" +TAP = "tap_device" +# Controls which traits are published and subscribed to, values must be same between client/server +TEST_CASE = "test_case" +# Period of time (milliseconds) between iterations +TEST_DELAY = "test_delay" +# Number of times test sequence is repeated +TEST_ITERATIONS = "test_iterations" +# Period of time between trait instance mutations +TIMER_PERIOD = "timer_period" +# Number of times the node will mutate the trait instance per iteration +TOTAL_COUNT = "total_count" +# Logs to verify on node +LOG_CHECK = "log_check" + +""" +Client ONLY Options +""" +CASE = "case" +# File containing Weave certificate to authenticate the node +CASE_CERT_PATH = "node_cert" +# File containing private key to authenticate the node +CASE_KEY_PATH = "node_key" +# Enable/disable dictionary tests +ENABLE_DICTIONARY_TEST = "enable_dictionary_test" +# Enable automatic subscription retries by WDM +ENABLE_RETRY = "enable_retry" +# Enable mock event initial counter using timestamp +ENABLE_MOCK_EVENT_TIMESTAMP_INITIAL_COUNTER = "enable_mock_event_timestamp_initial_counter" +# Use group key to encrypt messages +GROUP_ENC = "group_enc" +# Key to encrypt messages +GROUP_ENC_KEY_ID = "group_enc_key_id" +# The conditionality of the update (conditional | unconditional | mixed | alternate) +UPDATE_CONDITIONALITY = "wdm_update_conditionality" +# Client discards the paths on which SetUpdated was called in case of error +UPDATE_DISCARD_ERROR = "wdm_update_discard_on_error" +# The first mutation to apply to each trait instance +UPDATE_MUTATION = "wdm_update_mutation" +# Number of mutations performed in same context +UPDATE_NUM_MUTATIONS = "wdm_update_number_of_mutations" +# How many times same mutation is applied before moving on +UPDATE_NUM_REPEATED_MUTATIONS = "wdm_update_number_of_repeated_mutations" +# Number of traits to mutate (1-4) +UPDATE_NUM_TRAITS = "wdm_update_number_of_traits" +# Controls when first mutation is applied and flushed +UPDATE_TIMING = "wdm_update_timing" + + +""" +Server ONLY Options +""" +# Node ID of the destination node +WDM_SUBLESS_NOTIFY_DEST_NODE = "wdm_subless_notify_dest_node" + +# Options top level keys +CLIENT = "client_options" +SERVER = "server_options" +TEST = "test_options" + +OPTIONS = { + CLIENT: { + CASE: False, + CASE_CERT_PATH: None, + CASE_KEY_PATH: None, + CLEAR_STATE_BETWEEN_ITERATIONS: False, + ENABLE_DICTIONARY_TEST: True, + ENABLE_FLIP: None, + ENABLE_RETRY: False, + ENABLE_STOP: True, + ENABLE_MOCK_EVENT_TIMESTAMP_INITIAL_COUNTER: True, + EVENT_GENERATOR: None, + FAULTS: None, + FINAL_STATUS: None, + GROUP_ENC: False, + GROUP_ENC_KEY_ID: None, + INTER_EVENT_PERIOD: None, + LIVENESS_CHECK_PERIOD: None, + SAVE_PERF: False, + TAP: None, + TEST_CASE: 1, + TEST_DELAY: None, + TEST_ITERATIONS: None, + TIMER_PERIOD: None, + TOTAL_COUNT: None, + UPDATE_CONDITIONALITY: None, + UPDATE_DISCARD_ERROR: False, + UPDATE_MUTATION: None, + UPDATE_NUM_MUTATIONS: None, + UPDATE_NUM_REPEATED_MUTATIONS: None, + UPDATE_NUM_TRAITS: None, + UPDATE_TIMING: None, + LOG_CHECK: [] + }, + SERVER: { + CLEAR_STATE_BETWEEN_ITERATIONS: False, + ENABLE_FLIP: None, + ENABLE_STOP: False, + EVENT_GENERATOR: None, + FAULTS: None, + FINAL_STATUS: None, + INTER_EVENT_PERIOD: None, + LIVENESS_CHECK_PERIOD: None, + SAVE_PERF: False, + TAP: None, + TEST_CASE: 1, + TEST_DELAY: 0, + TEST_ITERATIONS: None, + TIMER_PERIOD: None, + TOTAL_COUNT: None, + WDM_SUBLESS_NOTIFY_DEST_NODE: None, + LOG_CHECK: [] + }, + TEST: { + CLIENTS: None, + PLAID: "auto", + QUIET: True, + SERVER: None, + STRACE: False, + TEST_CASE_NAME: [], + TIMEOUT: 60 * 15, + WDM_OPTION: None, + USE_PERSISTENT_STORAGE: True, + TEST_TAG: None + } +} diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_application_key_01.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_application_key_01.py index 71e707fc30..aa34ec7f87 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_application_key_01.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_application_key_01.py @@ -34,41 +34,9 @@ class test_weave_wdm_next_application_key_01(weave_wdm_next_test_base): def test_weave_wdm_next_application_key_01(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['test_client_case'] = 2 - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['test_server_case'] = 2 - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[35:].upper() - wdm_next_args['test_case_name'] = ['B01: Stress Mutual Subscribe: Application key: Key distribution'] print 'test file: ' + self.__class__.__name__ print "test_weave_wdm_next_application_key test A01 and B01" + wdm_next_args = self.get_test_param_json(self.__class__.__name__) super(test_weave_wdm_next_application_key_01, self).weave_wdm_next_test_base(wdm_next_args) diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_application_key_02.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_application_key_02.py index 665438aa17..fd2e5f1588 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_application_key_02.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_application_key_02.py @@ -28,49 +28,19 @@ import os import unittest from weave_wdm_next_test_base import weave_wdm_next_test_base +import WeaveWdmNextOptions as wwno class test_weave_wdm_next_application_key_02(weave_wdm_next_test_base): def test_weave_wdm_next_application_key_02(self): - wdm_next_args = {} - wdm_next_args['wdm_option'] = "mutual_subscribe" - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['group_enc'] = True - wdm_next_args['group_enc_key_id'] = "0x00005536" - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Message Encryption Key', 1), - ('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(1\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(1\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[35:].upper() - wdm_next_args['test_case_name'] = ['B02: Stress Mutual Subscribe: Application key: Group key'] print 'test file: ' + self.__class__.__name__ print "test_weave_wdm_next_application_key test A02 and B02" - if "WEAVE_SYSTEM_CONFIG_USE_LWIP" in os.environ.keys() and os.environ["WEAVE_SYSTEM_CONFIG_USE_LWIP"] == "1": + if "WEAVE_SYSTEM_CONFIG_USE_LWIP" in os.environ.keys() and os.environ[ + "WEAVE_SYSTEM_CONFIG_USE_LWIP"] == "1": print "it does not support wdm with group key encryption under Lwip:" return + wdm_next_args = self.get_test_param_json(self.__class__.__name__) super(test_weave_wdm_next_application_key_02, self).weave_wdm_next_test_base(wdm_next_args) diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_resub.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_resub.py index b5f734a157..aef429cb81 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_resub.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_resub.py @@ -31,7 +31,7 @@ import unittest import set_test_path import WeaveUtilities - +import WeaveWdmNextOptions as wwno from weave_wdm_next_test_base import weave_wdm_next_test_base @@ -41,80 +41,57 @@ class test_weave_wdm_next_mutual_resub(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_resub(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['enable_client_stop'] = True - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_stop'] = False - wdm_next_args['test_server_iterations'] = 1 - wdm_next_args['enable_server_flip'] = 1 - wdm_next_args['enable_retry'] = True - - base_test_tag = "_MUTUAL_RESUB" - wdm_next_args['test_tag'] = base_test_tag - wdm_next_args['test_case_name'] = ['N04: Mutual Subscribe: Root path, Null Version, Resubscribe On Error'] - - # We're going to run once, but expect a successful subscription since - # retries are enabled. - NUM_ITERATIONS = 1 - wdm_next_args['test_client_iterations'] = NUM_ITERATIONS - wdm_next_args['server_log_check'] = [] - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) fault_list = {} fault_list['server'] = [ - # fail to create the first subscription handler on the - # server side. this sends a StatusReport to the client - # in the subscribing stage, which triggers another - # subscribe request to be sent. - ('Weave_WDMSubscriptionHandlerNew_s0_f1', 2), - - # on counter subscription, responder sends an invalid - # message type, which triggers a StatusReport from the - # initiator. this causes the responder to tear down the - # mutual subscription (which is in confirming state), - # then a retry is set up. - ('Weave_WDMSendUnsupportedReqMsgType_s0_f1', 2), - - # reject the NotificationRequest coming from the initiator, - # sending StatusReport to the client after the mutual - # subscription is established (initiator will be in the alive - # state). - ('Weave_WDMBadSubscriptionId_s0_f1', 2), - ] + # fail to create the first subscription handler on the + # server side. this sends a StatusReport to the client + # in the subscribing stage, which triggers another + # subscribe request to be sent. + ('Weave_WDMSubscriptionHandlerNew_s0_f1', 2), + + # on counter subscription, responder sends an invalid + # message type, which triggers a StatusReport from the + # initiator. this causes the responder to tear down the + # mutual subscription (which is in confirming state), + # then a retry is set up. + ('Weave_WDMSendUnsupportedReqMsgType_s0_f1', 2), + + # reject the NotificationRequest coming from the initiator, + # sending StatusReport to the client after the mutual + # subscription is established (initiator will be in the alive + # state). + ('Weave_WDMBadSubscriptionId_s0_f1', 2), + ] fault_list['client'] = [ - # fail 3 instances of a send error after allowing the first. - # this will cause a failure after the subscription has been - # established. fail a few instances to confirm the retries - # continue. this tests the OnSendError and OnResponseTimeout - # callbacks in WDM. - ('Weave_WRMSendError_s1_f3', 4), - ] + # fail 3 instances of a send error after allowing the first. + # this will cause a failure after the subscription has been + # established. fail a few instances to confirm the retries + # continue. this tests the OnSendError and OnResponseTimeout + # callbacks in WDM. + ('Weave_WRMSendError_s1_f3', 4), + ] + + base_test_tag = wdm_next_args[wwno.TEST][wwno.TEST_TAG] for node in gFaultopts.nodes: for fault_config, expected_retries in fault_list[node]: - wdm_next_args['client_log_check'] = [("Good Iteration", NUM_ITERATIONS), - ('SendSubscribeRequest', NUM_ITERATIONS * expected_retries)] - wdm_next_args['test_tag'] = "%s_%s_FAULT_%s" % (base_test_tag, node.upper(), fault_config) - print wdm_next_args['test_tag'] + wdm_next_args[wwno.CLIENT][wwno.LOG_CHECK] = [ + ("Good Iteration", wdm_next_args[wwno.CLIENT][wwno.TEST_ITERATIONS]), + ('SendSubscribeRequest', wdm_next_args[wwno.CLIENT][wwno.TEST_ITERATIONS] * expected_retries)] + wdm_next_args[wwno.TEST][wwno.TEST_TAG] = "%s_%s_FAULT_%s" % ( + base_test_tag, node.upper(), fault_config) + print wdm_next_args[wwno.TEST][wwno.TEST_TAG] if node == 'client': - wdm_next_args['client_faults'] = fault_config - wdm_next_args['server_faults'] = None + wdm_next_args[wwno.CLIENT][wwno.FAULTS] = fault_config + wdm_next_args[wwno.SERVER][wwno.FAULTS] = None else: - wdm_next_args['client_faults'] = None - wdm_next_args['server_faults'] = fault_config + wdm_next_args[wwno.CLIENT][wwno.FAULTS] = None + wdm_next_args[wwno.SERVER][wwno.FAULTS] = fault_config - super(test_weave_wdm_next_mutual_resub, self).weave_wdm_next_test_base(wdm_next_args) + super( + test_weave_wdm_next_mutual_resub, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_01.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_01.py index e8417b551c..f23f2919c5 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_01.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_01.py @@ -34,41 +34,11 @@ class test_weave_wdm_next_mutual_subscribe_01(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_01(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M01: Stress Mutual Subscribe: Root path. Null Version. Client in initiator cancels' - ] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test E01 and M01" - super(test_weave_wdm_next_mutual_subscribe_01, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_01, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_02.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_02.py index e0bea55102..f25db8a295 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_02.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_02.py @@ -34,41 +34,11 @@ class test_weave_wdm_next_mutual_subscribe_02(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_02(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 1 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - wdm_next_args['save_client_perf'] = False - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M02: Stress Mutual Subscribe: Root path. Null Version. Publisher in initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test E02 and M02" - super(test_weave_wdm_next_mutual_subscribe_02, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_02, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_03.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_03.py index 4c87d5944c..2c0c71466c 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_03.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_03.py @@ -34,44 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_03(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_03(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M03: Stress Mutual Subscribe: Root path. Null Version. Client in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test E03 and M03" - super(test_weave_wdm_next_mutual_subscribe_03, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_03, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_04.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_04.py index 5b80e6c4b7..312f60bfc5 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_04.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_04.py @@ -34,44 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_04(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_04(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 3 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M04: Stress Mutual Subscribe: Root path. Null Version. Publisher in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test E04 and M04" - super(test_weave_wdm_next_mutual_subscribe_04, self).weave_wdm_next_test_base(wdm_next_args) - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_04, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_05.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_05.py index c42f8911fa..f45f5b8e1e 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_05.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_05.py @@ -34,42 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_05(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_05(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 10000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)',wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M05: Stress Mutual Subscribe: Root path. Null Version. Idle, Client in initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F01 and M05" - super(test_weave_wdm_next_mutual_subscribe_05, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_05, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_06.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_06.py index a4d07077ca..98477e8e5c 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_06.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_06.py @@ -34,43 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_06(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_06(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 1 - wdm_next_args['timer_client_period'] = 10000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M06: Stress Mutual Subscribe: Root path. Null Version. Idle. Publisher in initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F02 and M06" - super(test_weave_wdm_next_mutual_subscribe_06, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_06, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_07.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_07.py index 4d52271d48..2f58a085de 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_07.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_07.py @@ -34,44 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_07(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_07(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 10000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M07: Stress Mutual Susbscribe: Root path. Null Version. Idle. Client in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F03 and M07" - super(test_weave_wdm_next_mutual_subscribe_07, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_07, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_08.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_08.py index f9d974d64a..7076130c57 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_08.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_08.py @@ -34,44 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_08(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_08(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 3 - wdm_next_args['timer_client_period'] = 10000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M08: Stress Mutual Subscribe: Root path. Null Version. Idle. Publisher in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F04 and M08" - super(test_weave_wdm_next_mutual_subscribe_08, self).weave_wdm_next_test_base(wdm_next_args) - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_08, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_09.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_09.py index 1381d4d050..5af7d29916 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_09.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_09.py @@ -34,42 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_09(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_09(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M09: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator. Client in initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F05 and M09" - super(test_weave_wdm_next_mutual_subscribe_09, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_09, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_10.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_10.py index d8111c418f..f03190a05a 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_10.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_10.py @@ -34,43 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_10(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_10(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 1 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[ALIVE\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M10: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator. Publisher in initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F06 and M10" - super(test_weave_wdm_next_mutual_subscribe_10, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_10, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_11.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_11.py index 08aae0a9c3..341f6f770f 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_11.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_11.py @@ -34,43 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_11(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_11(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('Handler\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M11: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator. Client in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F07 and M11" - super(test_weave_wdm_next_mutual_subscribe_11, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_11, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_12.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_12.py index 332d664e2a..890b53c302 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_12.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_12.py @@ -34,44 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_12(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_12(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 3 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M12: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator.Publisher in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F08 and M12" - super(test_weave_wdm_next_mutual_subscribe_12, self).weave_wdm_next_test_base(wdm_next_args) - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_12, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_13.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_13.py index fd4efd9f45..fab6989eff 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_13.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_13.py @@ -34,42 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_13(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_13(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M13: Stress Mutual Subscribe: Root path. Null Version. Mutate data in responder. Client in initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F09 and M13" - super(test_weave_wdm_next_mutual_subscribe_13, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_13, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_14.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_14.py index 13ba270c18..805f392f2d 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_14.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_14.py @@ -34,43 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_14(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_14(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 1 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M14: Stress Mutual Subscribe: Root path, Null Version, Notification in responder, Publisher in initiator Cancel'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F10 and M14" - super(test_weave_wdm_next_mutual_subscribe_14, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_14, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_15.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_15.py index 7066181d28..bb90f2a4ae 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_15.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_15.py @@ -34,44 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_15(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_15(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M15: Stress Mutual Subscribe: Root path. Null Version. Notification in responder. Client in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F11 and M15" - super(test_weave_wdm_next_mutual_subscribe_15, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_15, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_16.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_16.py index 91bc5392ba..f511f99a2f 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_16.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_16.py @@ -34,44 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_16(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_16(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 3 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M16: Stress Mutual Subscribe: Root path. Null Version. Mutate data in responder. Publisher in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F12 and M16" - super(test_weave_wdm_next_mutual_subscribe_16, self).weave_wdm_next_test_base(wdm_next_args) - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_16, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_17.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_17.py index d8fa8ec97e..8e1ba848f2 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_17.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_17.py @@ -34,42 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_17(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_17(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M17: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Client in initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F13 and M17" - super(test_weave_wdm_next_mutual_subscribe_17, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_17, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_18.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_18.py index e4cc9a85ec..b2dc656c6b 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_18.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_18.py @@ -34,43 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_18(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_18(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 1 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M18: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Publisher in initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F14 and M18" - super(test_weave_wdm_next_mutual_subscribe_18, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_18, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_19.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_19.py index 79eb75fcee..ea3307c936 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_19.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_19.py @@ -34,43 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_19(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_19(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M19: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Client in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F15 and M19" - super(test_weave_wdm_next_mutual_subscribe_19, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_19, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_20.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_20.py index 6bfe0e77c8..47bf6ca62b 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_20.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_20.py @@ -34,44 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_20(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_20(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 3 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M20: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Publisher in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F16 and M20" - super(test_weave_wdm_next_mutual_subscribe_20, self).weave_wdm_next_test_base(wdm_next_args) - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_20, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_21.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_21.py index 0d8424e4aa..cef6894c5d 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_21.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_21.py @@ -33,40 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_21(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_21(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 0 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['E05: Mutual Subscribe: Root path. Null Version. Client in responder cancels'] - print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test E05" - super(test_weave_wdm_next_mutual_subscribe_21, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_21, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_22.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_22.py index 14aa607e88..f545321a3e 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_22.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_22.py @@ -33,40 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_22(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_22(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 1 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['E06: Mutual Subscribe: Root path. Null Version. Publisher in responder cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test E06" - super(test_weave_wdm_next_mutual_subscribe_22, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_22, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_23.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_23.py index 7825b49d32..fac77ca596 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_23.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_23.py @@ -33,40 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_23(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_23(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 15000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 2 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['E07: Mutual Subscribe: Root path. Null Version. Client in responder aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test E07" - super(test_weave_wdm_next_mutual_subscribe_23, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_23, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_24.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_24.py index 0cdd30a561..7b04a56c60 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_24.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_24.py @@ -33,40 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_24(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_24(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 15000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 3 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['E08: Mutual Subscribe: Root path. Null Version. Publisher in responder aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test E08" - super(test_weave_wdm_next_mutual_subscribe_24, self).weave_wdm_next_test_base(wdm_next_args) - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_24, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_25.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_25.py index b58be34ad2..9bb994e074 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_25.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_25.py @@ -33,39 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_25(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_25(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 0 - wdm_next_args['timer_server_period'] = 10000 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F17: Mutual Subscribe: Root path. Null Version. Idle. Client in responder cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F17" - super(test_weave_wdm_next_mutual_subscribe_25, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_25, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_26.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_26.py index d2227fbe7c..b8ffb3555c 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_26.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_26.py @@ -33,40 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_26(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_26(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 1 - wdm_next_args['timer_server_period'] = 10000 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F18: Mutual Subscribe: Root path. Null Version. Idle. Publisher in responder cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F18" - super(test_weave_wdm_next_mutual_subscribe_26, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_26, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_27.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_27.py index 3ea8235487..333d54b5a7 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_27.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_27.py @@ -33,40 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_27(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_27(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 15000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 2 - wdm_next_args['timer_server_period'] = 10000 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F19: Mutual Subscribe: Root path. Null Version. Idle. Client in responder aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F19" - super(test_weave_wdm_next_mutual_subscribe_27, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_27, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_28.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_28.py index e0e1d7ac28..2f8f428064 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_28.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_28.py @@ -33,40 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_28(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_28(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 15000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 3 - wdm_next_args['timer_server_period'] = 10000 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F20: Mutual Subscribe: Root path. Null Version. Idle. Publisher in responder aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F20" - super(test_weave_wdm_next_mutual_subscribe_28, self).weave_wdm_next_test_base(wdm_next_args) - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_28, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_29.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_29.py index 83398e27b4..772b977d47 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_29.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_29.py @@ -33,39 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_29(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_29(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 4000 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 0 - wdm_next_args['timer_server_period'] = 5000 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F21: Mutual Subscribe: Root path. Null Version. Mutate data in initiator. Client in responder cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F21" - super(test_weave_wdm_next_mutual_subscribe_29, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_29, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_30.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_30.py index 5b5934593c..46999cb1e4 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_30.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_30.py @@ -33,40 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_30(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_30(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 4000 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 1 - wdm_next_args['timer_server_period'] = 5000 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F22: Mutual Subscribe: Root path. Null Version. Mutate data in initiator. Publisher in responder cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F22" - super(test_weave_wdm_next_mutual_subscribe_30, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_30, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_31.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_31.py index a655066f5a..abb6af5d50 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_31.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_31.py @@ -33,40 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_31(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_31(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 4000 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 15000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 2 - wdm_next_args['timer_server_period'] = 5000 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F23: Mutual Subscribe: Root path. Null Version. Mutate data in initiator. Client in responder aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F23" - super(test_weave_wdm_next_mutual_subscribe_31, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_31, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_32.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_32.py index a4b1dbe0b4..830c3d9d79 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_32.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_32.py @@ -33,40 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_32(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_32(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 4000 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 15000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 3 - wdm_next_args['timer_server_period'] = 5000 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F24: Mutual Subscribe: Root path. Null Version. Mutate data in initiator. Publisher in responder Abort'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F24" - super(test_weave_wdm_next_mutual_subscribe_32, self).weave_wdm_next_test_base(wdm_next_args) - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_32, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_33.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_33.py index 468f161603..df5578b6dd 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_33.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_33.py @@ -33,39 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_33(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_33(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 0 - wdm_next_args['timer_server_period'] = 5000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F25: Mutual Subscribe: Root path. Null Version. Mutate data in responder. Client in responder cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F25" - super(test_weave_wdm_next_mutual_subscribe_33, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_33, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_34.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_34.py index 3365206559..c75ec4eaa7 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_34.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_34.py @@ -33,41 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_34(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_34(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 1 - wdm_next_args['timer_server_period'] = 5000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['server_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F26: Mutual Subscribe: Root path. Null Version. Mutate data in responder. Publisher in responder cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F26" - super(test_weave_wdm_next_mutual_subscribe_34, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_34, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_35.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_35.py index 809ee32fa1..5c2f90a0a1 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_35.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_35.py @@ -33,40 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_35(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_35(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 15000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 2 - wdm_next_args['timer_server_period'] = 5000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F27: Mutual Subscribe: Root path. Null Version. Mutate data in responder. Client in responder aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F27" - super(test_weave_wdm_next_mutual_subscribe_35, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_35, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_36.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_36.py index 9a03157cff..03235d8d9e 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_36.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_36.py @@ -33,40 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_36(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_36(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 15000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 3 - wdm_next_args['timer_server_period'] = 5000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F28: Mutual Subscribe: Root path. Null Version. Mutate data in responder. Publisher in responder aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F28" - super(test_weave_wdm_next_mutual_subscribe_36, self).weave_wdm_next_test_base(wdm_next_args) - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_36, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_37.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_37.py index afb0b8737d..72016549fd 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_37.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_37.py @@ -33,39 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_37(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_37(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 4000 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 0 - wdm_next_args['timer_server_period'] = 5000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F29: Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Client in responder cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F29" - super(test_weave_wdm_next_mutual_subscribe_37, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_37, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_38.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_38.py index 24f32b61d9..f06dc53558 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_38.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_38.py @@ -33,40 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_38(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_38(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 4000 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 1 - wdm_next_args['timer_server_period'] = 5000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)]\ EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F30: Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Publisher in responder cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F30" - super(test_weave_wdm_next_mutual_subscribe_38, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_38, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_39.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_39.py index 07e28fbd99..36dbb5d4ec 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_39.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_39.py @@ -33,40 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_39(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_39(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 4000 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 15000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 2 - wdm_next_args['timer_server_period'] = 5000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F31: Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Client in responder aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F31" - super(test_weave_wdm_next_mutual_subscribe_39, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_39, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_40.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_40.py index b04b409d4b..1ed6248cf8 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_40.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_40.py @@ -33,40 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_40(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_40(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 4000 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 15000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 3 - wdm_next_args['timer_server_period'] = 5000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['F32: Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Publisher in responder aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test F32" - super(test_weave_wdm_next_mutual_subscribe_40, self).weave_wdm_next_test_base(wdm_next_args) - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_40, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_41.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_41.py index 2d414a69c2..dc132bd490 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_41.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_41.py @@ -33,41 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_41(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_41(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * wdm_next_args['total_server_count'] + 1), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', 1), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('0 ==> 100 ==> 101 ==> 102 ==> 103 ==> 104 ==> 105 ==> 106 ==> 107 ==> 108 ==> 109 ==> 110', 2), - ('0 ==> 200 ==> 201 ==> 202 ==> 203 ==> 204 ==> 205 ==> 206 ==> 207 ==> 208 ==> 209 ==> 210', 1), - ('0 ==> 300 ==> 301 ==> 302 ==> 303 ==> 304 ==> 305 ==> 306 ==> 307 ==> 308 ==> 309 ==> 310', 1)] - - wdm_next_args['server_log_check'] = [('Client->kEvent_OnNotificationProcessed', 1), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['G01: Mutual Subscribe: Multiple Iterations. Mutate data in responder. Client in initiator aborts. Version is kept.'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test G01" - super(test_weave_wdm_next_mutual_subscribe_41, self).weave_wdm_next_test_base(wdm_next_args) - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_41, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_42.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_42.py index c391f37731..68af75ef51 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_42.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_42.py @@ -33,41 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_42(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_42(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 1 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', 1), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['server_log_check'] = [('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * wdm_next_args['total_client_count'] + 1), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'] ), - ('0 ==> 100 ==> 101 ==> 102 ==> 103 ==> 104 ==> 105 ==> 106 ==> 107 ==> 108 ==> 109 ==> 110', 2), - ('0 ==> 200 ==> 201 ==> 202 ==> 203 ==> 204 ==> 205 ==> 206 ==> 207 ==> 208 ==> 209 ==> 210', 1)] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['G02: Mutual Subscribe: Multiple Iterations. Mutate data in initiator. Client in initiator aborts. Version is kept.'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test G02" - super(test_weave_wdm_next_mutual_subscribe_42, self).weave_wdm_next_test_base(wdm_next_args) - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_42, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_43.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_43.py index ad6b0bbc30..8a3de4369e 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_43.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_43.py @@ -33,44 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_43(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_43(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * wdm_next_args['total_server_count'] + 1), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('0 ==> 100 ==> 101 ==> 102 ==> 103 ==> 104 ==> 105 ==> 106 ==> 107 ==> 108 ==> 109 ==> 110', 2), - ('0 ==> 200 ==> 201 ==> 202 ==> 203 ==> 204 ==> 205 ==> 206 ==> 207 ==> 208 ==> 209 ==> 210', 1), - ('0 ==> 300 ==> 301 ==> 302 ==> 303 ==> 304 ==> 305 ==> 306 ==> 307 ==> 308 ==> 309 ==> 310', 1)] - - wdm_next_args['server_log_check'] = [('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * wdm_next_args['total_client_count'] + 1), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('0 ==> 100 ==> 101 ==> 102 ==> 103 ==> 104 ==> 105 ==> 106 ==> 107 ==> 108 ==> 109 ==> 110', 2), - ('0 ==> 200 ==> 201 ==> 202 ==> 203 ==> 204 ==> 205 ==> 206 ==> 207 ==> 208 ==> 209 ==> 210', 1)] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['G03: Mutual Subscribe: Multiple Iterations. Mutate data in initiator and responder. Client in initiator aborts. Version is kept'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test G03" - super(test_weave_wdm_next_mutual_subscribe_43, self).weave_wdm_next_test_base(wdm_next_args) - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_43, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_44.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_44.py index 4dc890a25f..2dbe002ce3 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_44.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_44.py @@ -34,42 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_44(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_44(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 15000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', 1), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M25: Stress Mutual Subscribe: Initiator Continuous Events. Mutate data in initiator. Client in initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I01 and M25" - super(test_weave_wdm_next_mutual_subscribe_44, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_44, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_45.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_45.py index a92447e547..65156072d1 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_45.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_45.py @@ -34,42 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_45(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_45(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 1 - wdm_next_args['timer_client_period'] = 15000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', 1), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M26: Stress Mutual Subscribe: Initiator Continuous Events. Mutate data in initiator. Publisher in Initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I02 and M26" - super(test_weave_wdm_next_mutual_subscribe_45, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_45, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_46.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_46.py index 6d3144be13..c729027261 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_46.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_46.py @@ -34,42 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_46(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_46(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 15000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', 1), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M27: Stress Mutual Subscribe: Initiator Continuous Events. Mutate data in initiator. Client in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I03 and M27" - super(test_weave_wdm_next_mutual_subscribe_46, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_46, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_47.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_47.py index a9d6703264..0592644c84 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_47.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_47.py @@ -34,43 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_47(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_47(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 3 - wdm_next_args['timer_client_period'] = 15000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[ALIVE\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', 1), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M28: Stress Mutual Subscribe: Initiator Continuous Events. Mutate data in initiator. Publisher in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I04 and M28" - super(test_weave_wdm_next_mutual_subscribe_47, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_47, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_48.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_48.py index c90dccbcdf..7bd7faf55f 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_48.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_48.py @@ -34,41 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_48(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_48(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 15000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['server_event_generator'] = 'Security' - - wdm_next_args['server_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M29: Stress Mutual Subscribe: Responder Continuous Events. Mutate data in responder. Client in initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I05 and M29" - super(test_weave_wdm_next_mutual_subscribe_48, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_48, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_49.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_49.py index d6b78fc895..3824b0f3f3 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_49.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_49.py @@ -34,41 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_49(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_49(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 1 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 15000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M30: Stress Mutual Subscribe: Responder Continuous Events. Mutate data in responder. Publisher in Initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I06 and M30" - super(test_weave_wdm_next_mutual_subscribe_49, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_49, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_50.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_50.py index 03c65db6b0..b0abc47a9e 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_50.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_50.py @@ -34,41 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_50(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_50(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 15000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M31: Stress Mutual Subscribe: Responder Continuous Events. Mutate data in responder. Client in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I07 and M31" - super(test_weave_wdm_next_mutual_subscribe_50, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_50, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_51.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_51.py index f9b0c5084f..68b36f6efc 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_51.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_51.py @@ -34,42 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_51(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_51(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 3 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 15000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[ALIVE\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M32: Stress Mutual Subscribe: Responder Continuous Events. Mutate data in responder. Publisher in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I08 and M32" - super(test_weave_wdm_next_mutual_subscribe_51, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_51, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_52.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_52.py index d42ba1c6fa..c9b9a00688 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_52.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_52.py @@ -34,42 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_52(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_52(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 15000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', 1), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M33: Stress Mutual Subscribe: Initiator Continuous Events. Client in initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I09 and M33" - super(test_weave_wdm_next_mutual_subscribe_52, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_52, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_53.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_53.py index 5f51150d3c..c8c60d9e84 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_53.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_53.py @@ -34,43 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_53(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_53(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 1 - wdm_next_args['timer_client_period'] = 15000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['test_server_delay'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', 1), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M34: Stress Mutual Subscribe: Initiator Continuous Events. Publisher in Initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I10 and M34" - super(test_weave_wdm_next_mutual_subscribe_53, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_53, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_54.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_54.py index 08c35015e7..5a66993af4 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_54.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_54.py @@ -34,42 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_54(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_54(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 15000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', 1), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M35: Stress Mutual Subscribe: Initiator Continuous Events. Client in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I11 and M35" - super(test_weave_wdm_next_mutual_subscribe_54, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_54, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_55.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_55.py index 60bc777d56..5df194f8f1 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_55.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_55.py @@ -34,43 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_55(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_55(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 3 - wdm_next_args['timer_client_period'] = 15000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[ALIVE\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', 1), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M36: Stress Mutual Subscribe: Initiator Continuous Events. Publisher in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I12 and M36" - super(test_weave_wdm_next_mutual_subscribe_55, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_55, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_56.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_56.py index df2775481d..783e16d818 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_56.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_56.py @@ -34,41 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_56(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_56(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 35000 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['server_event_generator'] = 'Security' - - wdm_next_args['server_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M37: Stress Mutual Subscribe: Responder Continuous Events. Client in initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I13 and M37" - super(test_weave_wdm_next_mutual_subscribe_56, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_56, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_57.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_57.py index ac605c36ec..a74f07335d 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_57.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_57.py @@ -34,41 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_57(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_57(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 1 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 15000 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M38: Stress Mutual Subscribe: Responder Continuous Events. Mutate data in responder. Publisher in Initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I14 and M38" - super(test_weave_wdm_next_mutual_subscribe_57, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_57, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_58.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_58.py index c49878cab8..5921790468 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_58.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_58.py @@ -34,41 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_58(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_58(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 15000 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M39: Stress Mutual Subscribe: Responder Continuous Events. Client in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I15 and M39" - super(test_weave_wdm_next_mutual_subscribe_58, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_58, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_59.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_59.py index ba455b2bb1..c55addb87a 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_59.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_59.py @@ -34,42 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_59(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_59(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 3 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 15000 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[ALIVE\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M40: Stress Mutual Subscribe: Responder Continuous Events. Publisher in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I16 and M40" - super(test_weave_wdm_next_mutual_subscribe_59, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_59, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_60.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_60.py index fa541637fb..d102a5165d 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_60.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_60.py @@ -34,45 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_60(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_60(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 15000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['server_event_generator'] = 'Security' - - wdm_next_args['server_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M41: Initiator and Responder Continuous Events. Mutate data in initiator responder. Client in initiator cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I17 and M41" - super(test_weave_wdm_next_mutual_subscribe_60, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_60, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_61.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_61.py index aac4822951..77c21d9e17 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_61.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_61.py @@ -34,45 +34,11 @@ class test_weave_wdm_next_mutual_subscribe_61(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_61(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 1 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 15000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['server_event_generator'] = 'Security' - - wdm_next_args['server_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M42: Stress Mutual Subscribe: Initiator and Responder Continuous Events. Mutate data in initiator and responder. Publisher in initiator cancels'] - print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I18 and M42" - super(test_weave_wdm_next_mutual_subscribe_61, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_61, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_62.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_62.py index 698b9ec84f..f738215a32 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_62.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_62.py @@ -34,45 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_62(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_62(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 15000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['server_event_generator'] = 'Security' - - wdm_next_args['server_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M43: Stress Mutual Subscribe: Initiator and Responder Continuous Events. Mutate data in initiator and responder. Client in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I19 and M43" - super(test_weave_wdm_next_mutual_subscribe_62, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_62, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_63.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_63.py index 540c47a17e..72faa62fa9 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_63.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_63.py @@ -34,45 +34,12 @@ class test_weave_wdm_next_mutual_subscribe_63(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_63(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 3 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 15000 - wdm_next_args['enable_server_flip'] = 1 - wdm_next_args['client_event_generator'] = 'Security' - - wdm_next_args['client_inter_event_period'] = 2000 - - wdm_next_args['server_event_generator'] = 'Security' - - wdm_next_args['server_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[ALIVE\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['M44: Stress Mutual Subscribe: Initiator and Responder Continuous Events. Mutate data in initiator and responder. Publisher in initiator aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test I20 and M44" - super(test_weave_wdm_next_mutual_subscribe_63, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_63, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_64.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_64.py index e21bb29e12..1e765e6616 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_64.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_64.py @@ -33,50 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_64(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_64(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['test_client_case'] = 4 - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 3 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['test_server_case'] = 4 - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Error retrieving data from trait', wdm_next_args['test_client_iterations'] * 2), - ('trait property is too big so that it fails to fit in the packet', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_client_count'] + 1)), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Error retrieving data from trait', wdm_next_args['test_client_iterations']), - ('trait property is too big so that it fails to fit in the packet', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['N01: Stress Mutual Subscribe: Oversize trait exists in the end of source trait list at initiator and in the beginning of source trait list at responder.'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test N01" - super(test_weave_wdm_next_mutual_subscribe_64, self).weave_wdm_next_test_base(wdm_next_args) - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_64, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_65.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_65.py index e4979f5980..b214ca17fc 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_65.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_65.py @@ -33,50 +33,12 @@ class test_weave_wdm_next_mutual_subscribe_65(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_65(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['test_client_case'] = 5 - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 3 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['test_server_case'] = 5 - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * 2), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Error retrieving data from trait', wdm_next_args['test_client_iterations'] * 2), - ('trait property is too big so that it fails to fit in the packet', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] ), - ('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Error retrieving data from trait', wdm_next_args['test_client_iterations'] * 2), - ('trait property is too big so that it fails to fit in the packet', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['N02: Stress Mutual Subscribe: Oversize trait exists in the end of source trait list at initiator and in the middle of source trait list at responder.'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test N02" - super(test_weave_wdm_next_mutual_subscribe_65, self).weave_wdm_next_test_base(wdm_next_args) - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_mutual_subscribe_65, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_faults.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_faults.py index e3e4af1657..4dda6e56bc 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_faults.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_mutual_subscribe_faults.py @@ -33,7 +33,7 @@ import re import WeaveUtilities from happy.Utils import * - +import WeaveWdmNextOptions as wwno from weave_wdm_next_test_base import weave_wdm_next_test_base @@ -49,37 +49,40 @@ def validate_happy_sequence(self): counters['client'] = WeaveUtilities.parse_fault_injection_counters(output_logs['client']) counters['server'] = WeaveUtilities.parse_fault_injection_counters(output_logs['server']) - # As of today, all fault points should be executed on the server, but not the WDM Update ones - wdm_udpate_faults = [ "Weave_WDMSendUpdateBadVersion", - "Weave_WDMDelayUpdateResponse", - "Weave_WDMUpdateRequestTimeout", - "Weave_WDMUpdateRequestSendErrorInline", - "Weave_WDMUpdateRequestSendErrorAsync", - "Weave_WDMUpdateRequestBadProfile", - "Weave_WDMUpdateResponseBusy", - "Weave_WDMUpdateRequestDropMessage", - "Weave_WDMPathStoreFull"] + # As of today, all fault points should be executed on the server, but not + # the WDM Update ones + wdm_udpate_faults = ["Weave_WDMSendUpdateBadVersion", + "Weave_WDMDelayUpdateResponse", + "Weave_WDMUpdateRequestTimeout", + "Weave_WDMUpdateRequestSendErrorInline", + "Weave_WDMUpdateRequestSendErrorAsync", + "Weave_WDMUpdateRequestBadProfile", + "Weave_WDMUpdateResponseBusy", + "Weave_WDMUpdateRequestDropMessage", + "Weave_WDMPathStoreFull"] not_required_server_faults = wdm_udpate_faults - required_server_faults = [ key for key in counters["server"].keys() if "Weave_WDM" in key and key not in not_required_server_faults] + required_server_faults = [key for key in counters["server"].keys( + ) if "Weave_WDM" in key and key not in not_required_server_faults] # This will raise a ValueError WeaveUtilities.validate_counters(required_server_faults, counters["server"], "server") # As of today, the client does not send commands nor updates - not_required_client_faults = [ "Weave_WDMSendCommandBadVersion", - "Weave_WDMSendCommandExpired"] + not_required_client_faults = ["Weave_WDMSendCommandBadVersion", + "Weave_WDMSendCommandExpired"] not_required_client_faults += wdm_udpate_faults - required_client_faults = [ key for key in counters["client"].keys() if "Weave_WDM" in key and key not in not_required_client_faults] + required_client_faults = [key for key in counters["client"].keys( + ) if "Weave_WDM" in key and key not in not_required_client_faults] # This will raise a ValueError WeaveUtilities.validate_counters(required_client_faults, counters["client"], "client") - def setup_log_checks(self): - # By default, empty the arrays of strings to look for in the logs; rely on the default check for "Good Iteration" + # By default, empty the arrays of strings to look for in the logs; rely on + # the default check for "Good Iteration" self.wdm_next_args['client_log_check'] = [] self.wdm_next_args['server_log_check'] = [] @@ -90,12 +93,16 @@ def setup_log_checks(self): # Test the handling of the ExpiryTime and MustBeVersion fields of custom commands # if "Weave_WDMSendCommandExpired" in self.wdm_next_args['server_faults']: - self.wdm_next_args['client_log_check'].append(["Command\[0\] \[.*\] SendError profile: 11, code: 36, err No Error", 1]) - self.wdm_next_args['server_log_check'].append(["Received Status Report 0xB : 0x24", 1]) + self.wdm_next_args['client_log_check'].append( + ["Command\[0\] \[.*\] SendError profile: 11, code: 36, err No Error", 1]) + self.wdm_next_args['server_log_check'].append( + ["Received Status Report 0xB : 0x24", 1]) elif "Weave_WDMSendCommandBadVersion" in self.wdm_next_args['server_faults']: - self.wdm_next_args['client_log_check'].append(["Command\[0\] \[.*\] SendError profile: 11, code: 37, err No Error", 1]) - self.wdm_next_args['server_log_check'].append(["Received Status Report 0xB : 0x25", 1]) + self.wdm_next_args['client_log_check'].append( + ["Command\[0\] \[.*\] SendError profile: 11, code: 37, err No Error", 1]) + self.wdm_next_args['server_log_check'].append( + ["Received Status Report 0xB : 0x25", 1]) if self.wdm_next_args['client_faults']: pass @@ -104,50 +111,15 @@ def test_weave_wdm_next_mutual_subscribe_faults(self): # run the sequence once without faults to read the counters - wdm_next_args = {} - - self.wdm_next_args = wdm_next_args - - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 + wdm_next_args = self.get_test_param_json(self.__class__.__name__) - wdm_next_args['client_event_generator'] = 'Liveness' - - wdm_next_args['client_inter_event_period'] = 9000 - - wdm_next_args['client_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('bound mutual subscription is going away', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', 4), - ('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - base_test_tag = "_MUTUAL_SUB_FAULTS" - wdm_next_args['test_tag'] = base_test_tag - wdm_next_args['test_case_name'] = ['Mutual subscription happy sequence for fault-injection'] - - self.wdm_next_args['client_faults'] = None - self.wdm_next_args['server_faults'] = None + base_test_tag = wdm_next_args[wwno.TEST][wwno.TEST_TAG] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test mutual with faults" - super(test_weave_wdm_next_mutual_subscribe_faults, self).weave_wdm_next_test_base(wdm_next_args) + super(test_weave_wdm_next_mutual_subscribe_faults, + self).weave_wdm_next_test_base(wdm_next_args) output_logs = {} self.output_logs = output_logs @@ -161,26 +133,27 @@ def test_weave_wdm_next_mutual_subscribe_faults(self): # The third one should always succeed; the second one fails only because a fault that # was supposed to be triggered at the end of the first one ends up hitting the beginning # of the second one instead. - wdm_next_args['test_client_iterations'] = 3 - + wdm_next_args[wwno.CLIENT][wwno.TEST_ITERATIONS] = 3 num_tests = 0 for node in gFaultopts.nodes: fault_configs = gFaultopts.generate_fault_config_list(node, output_logs[node]) for fault_config in fault_configs: - wdm_next_args['test_tag'] = base_test_tag + "_" + str(num_tests) + "_" + node + "_" + fault_config - print wdm_next_args['test_tag'] + wdm_next_args[wwno.TEST][wwno.TEST_TAG] = base_test_tag + \ + "_" + str(num_tests) + "_" + node + "_" + fault_config + print wdm_next_args[wwno.TEST][wwno.TEST_TAG] if node == 'client': - wdm_next_args['client_faults'] = fault_config - wdm_next_args['server_faults'] = None + wdm_next_args[wwno.CLIENT][wwno.FAULTS] = fault_config + wdm_next_args[wwno.SERVER][wwno.FAULTS] = None else: - wdm_next_args['client_faults'] = None - wdm_next_args['server_faults'] = fault_config + wdm_next_args[wwno.CLIENT][wwno.FAULTS] = None + wdm_next_args[wwno.SERVER][wwno.FAULTS] = fault_config - self.setup_log_checks() + self.setup_log_checks() - super(test_weave_wdm_next_mutual_subscribe_faults, self).weave_wdm_next_test_base(wdm_next_args) + super(test_weave_wdm_next_mutual_subscribe_faults, + self).weave_wdm_next_test_base(wdm_next_args) num_tests += 1 diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_01.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_01.py index e023d97d97..e2da10d334 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_01.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_01.py @@ -37,35 +37,11 @@ class test_weave_wdm_next_one_way_subscribe_01(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_01(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['L01: Stress One way Subscribe: Root path. Null Version. Client cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test B01 and L01" - super(test_weave_wdm_next_one_way_subscribe_01, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_01, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_02.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_02.py index 8406e9341e..350e367dee 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_02.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_02.py @@ -34,38 +34,12 @@ class test_weave_wdm_next_one_way_subscribe_02(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_02(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['L02: Stress One way Subscribe: Root path. Null Version. Client aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test B02 and L02" - super(test_weave_wdm_next_one_way_subscribe_02, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_02, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_03.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_03.py index 7153c28389..a8d188f106 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_03.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_03.py @@ -34,38 +34,12 @@ class test_weave_wdm_next_one_way_subscribe_03(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_03(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(CANCL)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['L03: Stress One way Subscribe: Root path. Null Version. Idle. Client cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test C01 and L03" - super(test_weave_wdm_next_one_way_subscribe_03, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_03, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_04.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_04.py index 6a5ec92b4b..f343ff0c51 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_04.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_04.py @@ -34,39 +34,12 @@ class test_weave_wdm_next_one_way_subscribe_04(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_04(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['L04: Stress One way Subscribe: Root path. Null Version. Idle. Client aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test C02 and L04" - super(test_weave_wdm_next_one_way_subscribe_04, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_04, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_05.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_05.py index 361c8cb9a0..22456d48dd 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_05.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_05.py @@ -34,37 +34,12 @@ class test_weave_wdm_next_one_way_subscribe_05(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_05(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations'] * 1), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'] * 1)] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations'] * 1), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'] * 1)] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['L05: Stress One way Subscribe: Root path, Null Version. Mutate data in Publisher. Client cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test C03 and L05" - super(test_weave_wdm_next_one_way_subscribe_05, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_05, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_06.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_06.py index 63751d8c98..96813f6d9b 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_06.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_06.py @@ -34,38 +34,12 @@ class test_weave_wdm_next_one_way_subscribe_06(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_06(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_clear_state_between_iterations'] = True - wdm_next_args['server_clear_state_between_iterations'] = True - - wdm_next_args['client_log_check'] = [('Client\[0\] \[ALIVE\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count'] + 1)), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['L06: Stress One way Subscribe: Root path. Null Version. Mutate data in Publisher. Client aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test C04 and L06" - super(test_weave_wdm_next_one_way_subscribe_06, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_06, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_07.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_07.py index b3d8077360..6fbdec3ec7 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_07.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_07.py @@ -33,36 +33,12 @@ class test_weave_wdm_next_one_way_subscribe_07(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_07(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 1 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['test_server_delay'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['B03: One way Subscribe: Root path. Null Version. Publisher cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test B04" - super(test_weave_wdm_next_one_way_subscribe_07, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_07, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_08.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_08.py index 406cb767f5..684bdb51fb 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_08.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_08.py @@ -33,35 +33,12 @@ class test_weave_wdm_next_one_way_subscribe_08(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_08(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 15000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 3 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['B04: One way Subscribe: Root path. Null Version. Publisher aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test B04" - super(test_weave_wdm_next_one_way_subscribe_08, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_08, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_09.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_09.py index cd21dc6d94..552a167d16 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_09.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_09.py @@ -33,36 +33,12 @@ class test_weave_wdm_next_one_way_subscribe_09(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_09(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 1 - wdm_next_args['timer_server_period'] = 10000 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['C05: One way Subscribe: Root path. Null Version. Idle. Publisher cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test C05" - super(test_weave_wdm_next_one_way_subscribe_09, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_09, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_10.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_10.py index 083fdf8b7a..45d17c563b 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_10.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_10.py @@ -33,34 +33,12 @@ class test_weave_wdm_next_one_way_subscribe_10(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_10(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 15000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 3 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['C06: One way Subscribe: Root path, Null Version, Idle, Publisher Abort'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test C06" - super(test_weave_wdm_next_one_way_subscribe_10, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_10, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_11.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_11.py index 7720e9df8f..dc340ef65f 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_11.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_11.py @@ -33,37 +33,12 @@ class test_weave_wdm_next_one_way_subscribe_11(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_11(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 1 - wdm_next_args['timer_server_period'] = 5000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * wdm_next_args['total_server_count'] + 1), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']) - ] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations']) - ] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['C07: One way Subscribe: Root path. Null Version. Mutate data in publisher. Publisher cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test C07" - super(test_weave_wdm_next_one_way_subscribe_11, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_11, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_12.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_12.py index f607b131cb..e5c0d70297 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_12.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_12.py @@ -33,31 +33,10 @@ class test_weave_wdm_next_one_way_subscribe_12(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_12(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 4 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 15000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 3 - wdm_next_args['timer_server_period'] = 5000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * wdm_next_args['total_server_count'] + 1), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['C08: One way Subscribe: Root path. Null Version. Mutate data in publisher. Publisher aborts'] print 'test file: ' + self.__class__.__name__ - super(test_weave_wdm_next_one_way_subscribe_12, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_12, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_13.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_13.py index 350d2de6b4..86e87369bb 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_13.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_13.py @@ -33,38 +33,12 @@ class test_weave_wdm_next_one_way_subscribe_13(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_13(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 2 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 5000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 2 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 4000 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * wdm_next_args['total_server_count'] + 1), - ('0 ==> 100 ==> 101 ==> 102 ==> 103 ==> 104 ==> 105 ==> 106 ==> 107 ==> 108 ==> 109 ==> 110', 2), - ('0 ==> 200 ==> 201 ==> 202 ==> 203 ==> 204 ==> 205 ==> 206 ==> 207 ==> 208 ==> 209 ==> 210', 1), - ('0 ==> 300 ==> 301 ==> 302 ==> 303 ==> 304 ==> 305 ==> 306 ==> 307 ==> 308 ==> 309 ==> 310', 1)] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] TimerEventHandler Ref\(\d+\) Timeout', wdm_next_args['test_client_iterations']), - ('Handler\[0\] \[(ALIVE|CONFM)\] AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['D01: One way Subscribe: Multiple Iterations. Mutate data in publisher. Client aborts. Version is kept'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test D01" - super(test_weave_wdm_next_one_way_subscribe_13, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_13, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_14.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_14.py index 9361774904..009161a45e 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_14.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_14.py @@ -34,38 +34,12 @@ class test_weave_wdm_next_one_way_subscribe_14(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_14(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 15000 - wdm_next_args['test_server_delay'] = 0 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['server_event_generator'] = 'Security' - - wdm_next_args['server_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[CANCL\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['L07: Stress One way Subscribe: Publisher Continuous Events. Publisher mutates trait data. Client cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test H01 and L07" - super(test_weave_wdm_next_one_way_subscribe_14, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_14, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_15.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_15.py index 96a24c38b2..1d3f5d866a 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_15.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_15.py @@ -34,37 +34,12 @@ class test_weave_wdm_next_one_way_subscribe_15(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_15(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 15000 - wdm_next_args['test_server_delay'] = 0 - wdm_next_args['enable_server_flip'] = 1 - - wdm_next_args['server_event_generator'] = 'Security' - - wdm_next_args['server_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['L08: Stress One way Subscribe: Publisher Continuous Events. Publisher mutates trait data. Client aborts'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test H02 and L08" - super(test_weave_wdm_next_one_way_subscribe_15, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_15, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_16.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_16.py index 8c8049ff0b..c2a5db8856 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_16.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_16.py @@ -34,38 +34,12 @@ class test_weave_wdm_next_one_way_subscribe_16(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_16(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 15000 - wdm_next_args['test_server_delay'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['server_event_generator'] = 'Security' - - wdm_next_args['server_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[CANCL\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['L09: Stress One way Subscribe: Publisher Continuous Events. Client cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test B03 and L09" - super(test_weave_wdm_next_one_way_subscribe_16, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_16, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_17.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_17.py index 3e107831d4..f8f4132035 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_17.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_17.py @@ -34,38 +34,12 @@ class test_weave_wdm_next_one_way_subscribe_17(weave_wdm_next_test_base): def test_weave_wdm_next_one_way_subscribe_17(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 4 - wdm_next_args['final_client_status'] = 2 - wdm_next_args['timer_client_period'] = 16000 - wdm_next_args['test_client_iterations'] = 5 - wdm_next_args['test_client_delay'] = 35000 - wdm_next_args['enable_client_flip'] = 0 - - wdm_next_args['total_server_count'] = 4 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 15000 - wdm_next_args['test_server_delay'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['server_event_generator'] = 'Security' - - wdm_next_args['server_inter_event_period'] = 2000 - - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] HandleSubscriptionTerminated', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['L10: Stress One way Subscribe: Publisher Continuous Events. Client cancels'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test H04 and L10" - super(test_weave_wdm_next_one_way_subscribe_17, self).weave_wdm_next_test_base(wdm_next_args) + wdm_next_args = self.get_test_param_json(self.__class__.__name__) + super(test_weave_wdm_next_one_way_subscribe_17, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": WeaveUtilities.run_unittest() - diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_oneway_resub.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_oneway_resub.py index 3d80f5013e..19d0b2ad63 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_oneway_resub.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_oneway_resub.py @@ -31,7 +31,7 @@ import unittest import set_test_path import WeaveUtilities - +import WeaveWdmNextOptions as wwno from weave_wdm_next_test_base import weave_wdm_next_test_base @@ -41,67 +41,45 @@ class test_weave_wdm_next_oneway_resub(weave_wdm_next_test_base): def test_weave_wdm_next_oneway_resub(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['enable_client_stop'] = True - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 0 - wdm_next_args['enable_retry'] = True - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_stop'] = False - wdm_next_args['test_server_iterations'] = 1 - wdm_next_args['enable_server_flip'] = 0 - - base_test_tag = "_ONEWAY_RESUB" - wdm_next_args['test_tag'] = base_test_tag - wdm_next_args['test_case_name'] = ['N03: One way Subscribe: Root path, Null Version, Resubscribe On Error'] - - # We're going to run once, but expect a successful subscription since - # retries are enabled. - NUM_ITERATIONS = 1 - wdm_next_args['test_client_iterations'] = NUM_ITERATIONS - wdm_next_args['server_log_check'] = [] - + wdm_next_args = self.get_test_param_json(self.__class__.__name__) fault_list = {} fault_list['server'] = [ - # fail to create the first subscription handler on the - # server side. this sends a StatusReport to the client - # in the subscribing stage, which triggers another - # subscribe request to be sent. - ('Weave_WDMSubscriptionHandlerNew_s0_f1', 2) - ] + # fail to create the first subscription handler on the + # server side. this sends a StatusReport to the client + # in the subscribing stage, which triggers another + # subscribe request to be sent. + ('Weave_WDMSubscriptionHandlerNew_s0_f1', 2) + ] fault_list['client'] = [ - # fail 3 instances of a send error after allowing the first. - # this will cause a failure after the subscription has been - # established. fail a few instances to confirm the retries - # continue. this tests the OnSendError and OnResponseTimeout - # callbacks in WDM. - ('Weave_WRMSendError_s1_f3', 4) - ] + # fail 3 instances of a send error after allowing the first. + # this will cause a failure after the subscription has been + # established. fail a few instances to confirm the retries + # continue. this tests the OnSendError and OnResponseTimeout + # callbacks in WDM. + ('Weave_WRMSendError_s1_f3', 4) + ] + + base_test_tag = wdm_next_args[wwno.TEST][wwno.TEST_TAG] for node in gFaultopts.nodes: for fault_config, expected_retries in fault_list[node]: - wdm_next_args['client_log_check'] = [("Good Iteration", NUM_ITERATIONS), - ('SendSubscribeRequest', NUM_ITERATIONS * expected_retries)] - wdm_next_args['test_tag'] = base_test_tag + "_" + fault_config - print wdm_next_args['test_tag'] + wdm_next_args[wwno.CLIENT][wwno.LOG_CHECK] = [ + ("Good Iteration", wdm_next_args[wwno.CLIENT][wwno.TEST_ITERATIONS]), + ('SendSubscribeRequest', wdm_next_args[wwno.CLIENT][ + wwno.TEST_ITERATIONS] * expected_retries) + ] + wdm_next_args[wwno.TEST][wwno.TEST_TAG] = base_test_tag + "_" + fault_config + print wdm_next_args[wwno.TEST][wwno.TEST_TAG] if node == 'client': - wdm_next_args['client_faults'] = fault_config - wdm_next_args['server_faults'] = None + wdm_next_args[wwno.CLIENT][wwno.FAULTS] = fault_config + wdm_next_args[wwno.SERVER][wwno.FAULTS] = None else: - wdm_next_args['client_faults'] = None - wdm_next_args['server_faults'] = fault_config + wdm_next_args[wwno.CLIENT][wwno.FAULTS] = None + wdm_next_args[wwno.SERVER][wwno.FAULTS] = fault_config - super(test_weave_wdm_next_oneway_resub, self).weave_wdm_next_test_base(wdm_next_args) + super( + test_weave_wdm_next_oneway_resub, + self).weave_wdm_next_test_base(wdm_next_args) if __name__ == "__main__": diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_oneway_subscribe_faults.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_oneway_subscribe_faults.py index 000968d851..5384615407 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_oneway_subscribe_faults.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_oneway_subscribe_faults.py @@ -30,7 +30,7 @@ import unittest import set_test_path import WeaveUtilities - +import WeaveWdmNextOptions as wwno from weave_wdm_next_test_base import weave_wdm_next_test_base @@ -43,44 +43,15 @@ def test_weave_wdm_next_oneway_subscribe_faults(self): # run the sequence once without faults to read the counters - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "one_way_subscribe" - - # Total_client_count is set to 1 even if the responder does not subscribe back. - # This is done so that the client waits 3 seconds before canceling the subscription, - # and the responder in the mean time gets a chance to modify the trait instance. - wdm_next_args['total_client_count'] = 1 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 3000 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - - wdm_next_args['total_server_count'] = 1 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 2000 - wdm_next_args['test_server_delay'] = 0 - wdm_next_args['enable_server_flip'] = 1 + wdm_next_args = self.get_test_param_json(self.__class__.__name__) - wdm_next_args['client_log_check'] = [('Client\[0\] \[(ALIVE|CONFM)\] EndSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client\[0\] \[CANCL\] _AbortSubscription Ref\(\d+\)', wdm_next_args['test_client_iterations']), - ('Client->kEvent_OnNotificationProcessed', wdm_next_args['test_client_iterations'] * (wdm_next_args['total_server_count']) +1), - ('Client\[0\] moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - wdm_next_args['server_log_check'] = [('Handler\[0\] \[(ALIVE|CONFM)\] CancelRequestHandler', wdm_next_args['test_client_iterations']), - ('Handler\[0\] Moving to \[ FREE\] Ref\(0\)', wdm_next_args['test_client_iterations'])] - - base_test_tag = "_ONEWAY_SUB_FAULTS" - wdm_next_args['test_tag'] = base_test_tag - wdm_next_args['test_case_name'] = ['One way subscription happy sequence for fault injection'] - - wdm_next_args['client_faults'] = None - wdm_next_args['server_faults'] = None + base_test_tag = wdm_next_args[wwno.TEST][wwno.TEST_TAG] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test one way with faults" - super(test_weave_wdm_next_oneway_subscribe_faults, self).weave_wdm_next_test_base(wdm_next_args) + super(test_weave_wdm_next_oneway_subscribe_faults, + self).weave_wdm_next_test_base(wdm_next_args) output_logs = {} output_logs['client'] = self.result_data[0]['client_output'] @@ -90,27 +61,25 @@ def test_weave_wdm_next_oneway_subscribe_faults(self): # The third one should always succeed; the second one fails only because a fault that # was supposed to be triggered at the end of the first one ends up hitting the beginning # of the second one instead. - wdm_next_args['test_client_iterations'] = 3 - # empty the arrays of strings to look for in the logs; rely on the default check for "Good Iteration" - wdm_next_args['client_log_check'] = [] - wdm_next_args['server_log_check'] = [] - + wdm_next_args[wwno.CLIENT][wwno.TEST_ITERATIONS] = 3 num_tests = 0 for node in gFaultopts.nodes: fault_configs = gFaultopts.generate_fault_config_list(node, output_logs[node]) - + for fault_config in fault_configs: - wdm_next_args['test_tag'] = base_test_tag + "_" + str(num_tests) + "_" + node + "_" + fault_config - print wdm_next_args['test_tag'] + wdm_next_args[wwno.TEST][wwno.TEST_TAG] = base_test_tag + "_" + \ + str(num_tests) + "_" + node + "_" + fault_config + print wdm_next_args[wwno.TEST][wwno.TEST_TAG] if node == 'client': - wdm_next_args['client_faults'] = fault_config - wdm_next_args['server_faults'] = None + wdm_next_args[wwno.CLIENT][wwno.FAULTS] = fault_config + wdm_next_args[wwno.SERVER][wwno.FAULTS] = None else: - wdm_next_args['client_faults'] = None - wdm_next_args['server_faults'] = fault_config + wdm_next_args[wwno.CLIENT][wwno.FAULTS] = None + wdm_next_args[wwno.SERVER][wwno.FAULTS] = fault_config - super(test_weave_wdm_next_oneway_subscribe_faults, self).weave_wdm_next_test_base(wdm_next_args) + super(test_weave_wdm_next_oneway_subscribe_faults, + self).weave_wdm_next_test_base(wdm_next_args) num_tests += 1 diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_subless_notify_01.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_subless_notify_01.py index da3114101c..642af9aa82 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_subless_notify_01.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_subless_notify_01.py @@ -35,36 +35,13 @@ gFaultOpts = WeaveUtilities.FaultInjectionOptions() -gOptions = { 'enableFaults': False, 'mode': "local" } +gOptions = {'enableFaults': False, 'mode': "local"} + class test_weave_wdm_next_subless_notify_01(weave_wdm_next_test_base): def test_weave_wdm_next_subless_notify_01(self): - wdm_next_args = {} - - wdm_next_args['wdm_option'] = "subless_notify" - - wdm_next_args['total_client_count'] = 0 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 0 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_server_iterations'] = 1 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['test_server_delay'] = 1000 - wdm_next_args['client_log_check'] = [] - wdm_next_args['server_log_check'] = [] - - wdm_next_args['timeout'] = 10 - - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['O01: Subscriptionless Notify: Publisher sends subscriptionless notify to receiver, and receiver notifies application after processing trait data' - ] + wdm_next_args = self.get_test_param_json(self.__class__.__name__) print 'test file: ' + self.__class__.__name__ print "weave-wdm-next test O01" super(test_weave_wdm_next_subless_notify_01, self).weave_wdm_next_test_base(wdm_next_args) @@ -72,40 +49,33 @@ def test_weave_wdm_next_subless_notify_01(self): if not gOptions['enableFaults']: return - base_test_tag = "_SUBLESS_NOTIFY_FAULTS" - wdm_next_args['test_tag'] = base_test_tag - wdm_next_args['test_case_name'] = ['WDM Subscriptionless Notification for fault injection'] - - wdm_next_args['client_faults'] = None - wdm_next_args['server_faults'] = None + base_test_tag = wdm_next_args[wwno.TEST][wwno.TEST_TAG] + wdm_next_args[wwno.TEST][wwno.TEST_CASE_NAME] = [ + 'WDM Subscriptionless Notification for fault injection'] output_logs = {} output_logs['client'] = self.result_data[0]['client_output'] output_logs['server'] = self.result_data[0]['server_output'] - - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_server_iterations'] = 1 - - # empty the arrays of strings to look for in the logs; rely on the default check for "Good Iteration" - wdm_next_args['client_log_check'] = [] - wdm_next_args['server_log_check'] = [] num_tests = 0 for node in gFaultOpts.nodes: fault_configs = gFaultOpts.generate_fault_config_list(node, output_logs[node]) for fault_config in fault_configs: - wdm_next_args['test_tag'] = base_test_tag + "_" + str(num_tests) + "_" + node + "_" + fault_config - print wdm_next_args['test_tag'] + wwdm_next_args[wwno.TEST][wwno.TEST_TAG] = base_test_tag + "_" + \ + str(num_tests) + "_" + node + "_" + fault_config + print wdm_next_args[wwno.TEST][wwno.TEST_TAG] if node == 'client': - wdm_next_args['client_faults'] = fault_config - wdm_next_args['server_faults'] = None + wdm_next_args[wwno.CLIENT][wwno.FAULTS] = fault_config + wdm_next_args[wwno.SERVER][wwno.FAULTS] = None else: - wdm_next_args['client_faults'] = None - wdm_next_args['server_faults'] = fault_config + wdm_next_args[wwno.CLIENT][wwno.FAULTS] = None + wdm_next_args[wwno.SERVER][wwno.FAULTS] = fault_configt_config - super(test_weave_wdm_next_subless_notify_01, self).weave_wdm_next_test_base(wdm_next_args) + super( + test_weave_wdm_next_subless_notify_01, + self).weave_wdm_next_test_base(wdm_next_args) num_tests += 1 if __name__ == "__main__": diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_update_01.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_update_01.py index f6d6d0576b..0464afa93f 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_update_01.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_update_01.py @@ -35,39 +35,9 @@ class test_weave_wdm_next_update_01(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_01(self): - wdm_next_args = {} - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 1 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 10000 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - wdm_next_args['test_client_case'] = 10 # kTestCase_TestUpdatableTrait - - wdm_next_args['enable_retry'] = True - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - wdm_next_args['test_server_case'] = 10 - - wdm_next_args['client_clear_state_between_iterations'] = False - wdm_next_args['server_clear_state_between_iterations'] = False - - wdm_next_args['client_update_mutation'] = "OneLeaf" - wdm_next_args['client_update_conditionality'] = "Conditional" - wdm_next_args['client_update_num_mutations'] = 1 - wdm_next_args['client_update_timing'] = "AfterSub" - - wdm_next_args['client_log_check'] = [('Update: path result: success', wdm_next_args['test_client_iterations'] * wdm_next_args['total_client_count'])] - wdm_next_args['server_log_check'] = [] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['Update 01: Client creates mutual subscription, sends conditional update request to publisher, and receives notification and status report'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next update test 01" + wdm_next_args = self.get_test_param_json(self.__class__.__name__) super(test_weave_wdm_next_update_01, self).weave_wdm_next_test_base(wdm_next_args) diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_update_02.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_update_02.py index 7c231cdfb4..070d61b5d9 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_update_02.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_update_02.py @@ -35,39 +35,9 @@ class test_weave_wdm_next_update_02(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_02(self): - wdm_next_args = {} - wdm_next_args['wdm_option'] = "mutual_subscribe" - - wdm_next_args['total_client_count'] = 1 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 10000 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - wdm_next_args['test_client_case'] = 10 # kTestCase_TestUpdatableTrait - - wdm_next_args['enable_retry'] = True - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - wdm_next_args['test_server_case'] = 10 - - wdm_next_args['client_clear_state_between_iterations'] = False - wdm_next_args['server_clear_state_between_iterations'] = False - - wdm_next_args['client_update_mutation'] = "OneLeaf" - wdm_next_args['client_update_conditionality'] = "Unconditional" - wdm_next_args['client_update_num_mutations'] = 1 - wdm_next_args['client_update_timing'] = "AfterSub" - - wdm_next_args['client_log_check'] = [('Update: path result: success', wdm_next_args['test_client_iterations'] * wdm_next_args['total_client_count'])] - wdm_next_args['server_log_check'] = [] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['Update 02: Client creates mutual subscription, sends unconditional update request to publisher, and receives notification and status report'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next update test 02" + wdm_next_args = self.get_test_param_json(self.__class__.__name__) super(test_weave_wdm_next_update_02, self).weave_wdm_next_test_base(wdm_next_args) diff --git a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_update_03.py b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_update_03.py index 3ae7e53e40..350045a11e 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_update_03.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_update_03.py @@ -34,39 +34,9 @@ class test_weave_wdm_next_update_03(weave_wdm_next_test_base): def test_weave_wdm_next_mutual_subscribe_03(self): - wdm_next_args = {} - wdm_next_args['wdm_option'] = "one_way_subscribe" - - wdm_next_args['total_client_count'] = 1 - wdm_next_args['final_client_status'] = 0 - wdm_next_args['timer_client_period'] = 10000 - wdm_next_args['test_client_iterations'] = 1 - wdm_next_args['test_client_delay'] = 2000 - wdm_next_args['enable_client_flip'] = 1 - wdm_next_args['test_client_case'] = 10 # kTestCase_TestUpdatableTrait - - wdm_next_args['enable_retry'] = True - - wdm_next_args['total_server_count'] = 0 - wdm_next_args['final_server_status'] = 4 - wdm_next_args['timer_server_period'] = 0 - wdm_next_args['enable_server_flip'] = 0 - wdm_next_args['test_server_case'] = 10 - - wdm_next_args['client_clear_state_between_iterations'] = False - wdm_next_args['server_clear_state_between_iterations'] = False - - wdm_next_args['client_update_mutation'] = "OneLeaf" - wdm_next_args['client_update_conditionality'] = "Unconditional" - wdm_next_args['client_update_num_mutations'] = 1 - wdm_next_args['client_update_timing'] = "NoSub" - - wdm_next_args['client_log_check'] = [('Update: path result: success', wdm_next_args['test_client_iterations'] * wdm_next_args['total_client_count'])] - wdm_next_args['server_log_check'] = [] - wdm_next_args['test_tag'] = self.__class__.__name__[19:].upper() - wdm_next_args['test_case_name'] = ['Update 03: Client sends standalone unconditional update request to publisher, and receives status report'] print 'test file: ' + self.__class__.__name__ print "weave-wdm-next update test 03" + wdm_next_args = self.get_test_param_json(self.__class__.__name__) super(test_weave_wdm_next_update_03, self).weave_wdm_next_test_base(wdm_next_args) diff --git a/src/test-apps/happy/tests/standalone/wdmNext/weave_wdm_next_test_base.py b/src/test-apps/happy/tests/standalone/wdmNext/weave_wdm_next_test_base.py index e405ea2191..8ec172f872 100755 --- a/src/test-apps/happy/tests/standalone/wdmNext/weave_wdm_next_test_base.py +++ b/src/test-apps/happy/tests/standalone/wdmNext/weave_wdm_next_test_base.py @@ -24,44 +24,52 @@ # import itertools +import json import os import re -import unittest import set_test_path +import unittest from happy.Utils import * import happy.HappyNodeList +import plugins.testrail.TestrailResultOutput import WeaveStateLoad import WeaveStateUnload import WeaveWdmNext -import plugins.testrail.TestrailResultOutput - -test_option_quiet = True -test_option_all_nodes = False +import WeaveWdmNextOptions as wwno +TEST_OPTION_ALL_NODES = False TESTRAIL_SECTION_NAME = 'WDM-Next test suite between Mock-Client and Mock-Service' TESTRAIL_SUFFIX = "_TESTRAIL.json" + class weave_wdm_next_test_base(unittest.TestCase): + def setUp(self): - self.tap = None + """ + Set up the toplogy and load the default test parameters. + """ self.wdm_option = None - self.options = None + self.options = WeaveWdmNext.option() if "WDM_CLIENT_LIVENESS_CHECK_PERIOD" in os.environ.keys(): - self.wdm_client_liveness_check_period = int(os.environ["WDM_CLIENT_LIVENESS_CHECK_PERIOD"]) + self.options[wwno.CLIENT][wwno.LIVENESS_CHECK_PERIOD] = int( + os.environ["WDM_CLIENT_LIVENESS_CHECK_PERIOD"]) else: - self.wdm_client_liveness_check_period = None + self.options[wwno.CLIENT][wwno.LIVENESS_CHECK_PERIOD] = None if "WDM_SERVER_LIVENESS_CHECK_PERIOD" in os.environ.keys(): - self.wdm_server_liveness_check_period = int(os.environ["WDM_SERVER_LIVENESS_CHECK_PERIOD"]) + self.options[wwno.SERVER][wwno.LIVENESS_CHECK_PERIOD] = int( + os.environ["WDM_SERVER_LIVENESS_CHECK_PERIOD"]) else: - self.wdm_server_liveness_check_period = None + self.options[wwno.SERVER][wwno.LIVENESS_CHECK_PERIOD] = None - if "WEAVE_SYSTEM_CONFIG_USE_LWIP" in os.environ.keys() and os.environ["WEAVE_SYSTEM_CONFIG_USE_LWIP"] == "1": + if "WEAVE_SYSTEM_CONFIG_USE_LWIP" in os.environ.keys() and os.environ[ + "WEAVE_SYSTEM_CONFIG_USE_LWIP"] == "1": self.topology_file = os.path.dirname(os.path.realpath(__file__)) + \ "/../../../topologies/standalone/three_nodes_on_tap_thread_weave.json" - self.tap = "wpan0" + self.options[wwno.CLIENT][wwno.TAP] = "wpan0" + self.options[wwno.SERVER][wwno.TAP] = "wpan0" else: self.topology_file = os.path.dirname(os.path.realpath(__file__)) + \ "/../../../topologies/standalone/three_nodes_on_thread_weave.json" @@ -76,9 +84,10 @@ def setUp(self): setup_network = WeaveStateLoad.WeaveStateLoad(options) ret = setup_network.run() - def tearDown(self): - # cleaning up + """ + Tear down the toplogy. + """ options = WeaveStateUnload.option() options["quiet"] = True options["json_file"] = self.topology_file @@ -86,38 +95,17 @@ def tearDown(self): teardown_network = WeaveStateUnload.WeaveStateUnload(options) teardown_network.run() - def weave_wdm_next_test_base(self, wdm_next_args): - options = happy.HappyNodeList.option() - default_options = {'test_client_case' : 1, - 'test_server_case' : 1, - 'save_client_perf' : False, - 'save_server_perf' : False, - 'test_server_delay' : 0, - 'timeout' : 60*15, - 'client_event_generator' : None, - 'client_inter_event_period' : None, - 'client_faults' : None, - 'server_event_generator' : None, - 'server_inter_event_period' : None, - 'server_faults' : None, - 'test_case_name' : [], - 'strace': False, - 'enable_client_dictionary_test' : True, - 'wdm_client_liveness_check_period': self.wdm_client_liveness_check_period, - 'wdm_server_liveness_check_period': self.wdm_server_liveness_check_period, - 'enable_retry': False, - 'enable_mock_event_timestamp_initial_counter': True - } - - default_options.update(wdm_next_args) - - self.__dict__.update(default_options) - self.default_options = default_options + """ + Initiate wdm next test between nodes given test parameters. + Args: + wdm_next_args (dict): Test parameters. + """ + options = happy.HappyNodeList.option() self.test_results = [] - if test_option_all_nodes is True: + if TEST_OPTION_ALL_NODES: nodes_list = happy.HappyNodeList.HappyNodeList(options) ret = nodes_list.run() @@ -128,117 +116,190 @@ def weave_wdm_next_test_base(self, wdm_next_args): if pair[0] == pair[1]: print "Skip weave-wdm test on client and server running on the same node." continue - value, data = self.__run_wdm_test_between(pair[0], pair[1]) - self.__process_result(pair[0], pair[1], value, data) + success, data = self.__run_wdm_test_between(pair[0], pair[1], wdm_next_args) + self.__process_result(pair[0], pair[1], success, data) else: - value, data = self.__run_wdm_test_between("node01", "node02") - self.__process_result("node01", "node02", value, data) + success, data = self.__run_wdm_test_between("node01", "node02", wdm_next_args) + self.__process_result("node01", "node02", success, data) self.result_data = data + def get_test_param_json(self, test_name): + """ + Retrieve the test params for a particular test. + + Args: + test_name (str): Name of the test. + + Returns: + dict: Dictionary containing test, client, and server test params. + """ + with open("weave_wdm_next_test_params.json") as json_file: + data = json.load(json_file) + return data[test_name] + def __validate_log_line(self, data, node_type, wdm_stress_check, stress_failures): """ - check expected log lines showed up in node logs with expected count + Validate log lines for client/server nodes based on expected count. + + Args: + data (dict): Holds client/server log lines. + node_type (str): Denote client/server. + wdm_stress_check (bool): Whether stress test is passing (so far). + stress_failures (list): List of failure messages. + + Returns: + (bool, list): Whether stress test passed so far and list of failure messages. """ if node_type == "client": node_log = data["client_output"] - log_check_list = self.client_log_check + log_check_list = self.options[wwno.CLIENT][wwno.LOG_CHECK] else: node_log = data["server_output"] - log_check_list = self.server_log_check + log_check_list = self.options[wwno.SERVER][wwno.LOG_CHECK] for expect_line_count in log_check_list: item_output_cnt = len(re.findall(expect_line_count[0], node_log)) if item_output_cnt != expect_line_count[1]: wdm_stress_check = False - error = "missing '%s' in %s_output, need %d, actual %d" % (expect_line_count[0], node_type, expect_line_count[1], item_output_cnt) + error = "missing '%s' in %s_output, need %d, actual %d" % ( + expect_line_count[0], node_type, expect_line_count[1], item_output_cnt) stress_failures.append(error) return (wdm_stress_check, stress_failures) def __validate_node_events(self, wdm_stress_check, stress_failures, data, client_gen): """ - validate events from client and publisher, event count should be equal from client and publisher - client: send events - publisher: publish events + Validate the event counts for client/publisher. + + Args: + wdm_stress_check (bool): Whether stress test is passing (so far). + stress_failures (list): List of failure messages. + data (dict): Dict holding client/server events. + client_gen (bool): Whether client or server sends the events. + + Returns: + (bool, list): Whether stress test passed so far and list of failure messages. """ - if client_gen: # client send events, server publish events + if client_gen: # client send events, server publish events client_output = data["client_output"] publisher_output = data["server_output"] - node_role = {"client":"client", - "publisher":"server" - } - else: # server send events, client publish events + node_role = { + "client": "client", + "publisher": "server" + } + else: # server send events, client publish events client_output = data["server_output"] publisher_output = data["client_output"] - node_role = {"client":"server", - "publisher":"client" - } + node_role = { + "client": "server", + "publisher": "client" + } client_event_dic = self.weave_wdm.wdm_next_client_event_sequence_process(client_output) - publisher_event_dic = self.weave_wdm.wdm_next_publisher_event_sequence_process(publisher_output) - if not ((client_event_dic['success']) is True and (publisher_event_dic['success'] is True) and (client_event_dic['client_event_list'] == publisher_event_dic['publisher_event_list'])): + publisher_event_dic = self.weave_wdm.wdm_next_publisher_event_sequence_process( + publisher_output) + if not (client_event_dic['success'] and publisher_event_dic['success'] and ( + client_event_dic['client_event_list'] == publisher_event_dic['publisher_event_list'])): wdm_stress_check = False error = "The events sent from the client to the server don't match" stress_failures.append(error) - stress_failures.append("\tevents sent by the " + node_role["client"] + ": " + str(client_event_dic)) - stress_failures.append("\tevents received by the "+ node_role["publisher"]+": " + str(publisher_event_dic)) + stress_failures.append( + "\tevents sent by the " + + node_role["client"] + + ": " + + str(client_event_dic)) + stress_failures.append( + "\tevents received by the " + + node_role["publisher"] + + ": " + + str(publisher_event_dic)) return (wdm_stress_check, stress_failures) - def __process_result(self, nodeA, nodeB, value, data): - print "weave-wdm-next %s from " % self.wdm_option + nodeA + " to " + nodeB + " " + def __process_result(self, nodeA, nodeB, success, data): + """ + Process the weave wdm next test results. + + Args: + nodeA (str): First node identifier. + nodeB (str): Second node identifier. + success (bool): Whether test executed successfully without parser/leak errors. + data (list): Results from weave wdm test including node logs. + """ + print "weave-wdm-next {} from {} to {}".format( + self.options[wwno.TEST][wwno.WDM_OPTION], nodeA, nodeB) data = data[0] test_results = [] - wdm_stress_check = value + wdm_stress_check = success wdm_stress_diag_list = [] - tag_and_paramenters = 'test_file: %s\nparameters: %s\n' % (self.test_tag, str(self.options)) + tag_and_paramenters = 'test_file: {}\nparameters: {}\n'.format( + self.options[wwno.TEST][wwno.TEST_TAG], self.options) # collect all problems in a list of strings to pass to the assert at the end of the test wdm_stress_diag_list.append(tag_and_paramenters) wdm_stress_diag_list.append(str(data['success_dic'])) - stress_failures = ["There is a failure in the overall test; log file tag: " + self.test_tag] - if not value: + stress_failures = [ + "There is a failure in the overall test; log file tag: {}".format( + self.options[wwno.TEST][wwno.TEST_TAG])] + if not success: # This means something failed and it was caught in the WeaveWdmNext plugin stress_failures.append(str(data['success_dic'])) success_iterations_count = len(re.findall("Good Iteration", data["client_output"])) - success_iterations_rate_string = "success rate(success iterations/total iterations)" \ - + str(success_iterations_count) \ - + "/" + str(self.test_client_iterations) \ - + " = " + str(success_iterations_count/float(self.test_client_iterations)) + success_rate = round(success_iterations_count / + float(self.options[wwno.CLIENT][wwno.TEST_ITERATIONS]), 2) + success_iterations_rate_string = "success rate(success iterations/total iterations) " \ + "{}/{} = {}".format( + success_iterations_count, + self.options[wwno.CLIENT][wwno.TEST_ITERATIONS], + success_rate) + wdm_stress_diag_list.append(success_iterations_rate_string) - if success_iterations_count != self.test_client_iterations and not (self.client_faults or self.server_faults): + if success_iterations_count != self.options[wwno.CLIENT][wwno.TEST_ITERATIONS] and not \ + (self.options[wwno.CLIENT][wwno.FAULTS] or self.options[wwno.SERVER][wwno.FAULTS]): + # There are failures but no faults configured stress_failures.append(success_iterations_rate_string) # check both client and server log for expected log filters with expected counts - wdm_stress_check, stress_failures = self.__validate_log_line(data, "client", wdm_stress_check, stress_failures) - wdm_stress_check, stress_failures = self.__validate_log_line(data, "server", wdm_stress_check, stress_failures) + wdm_stress_check, stress_failures = self.__validate_log_line( + data, "client", wdm_stress_check, stress_failures) + wdm_stress_check, stress_failures = self.__validate_log_line( + data, "server", wdm_stress_check, stress_failures) - if not (self.client_faults or self.server_faults): - if self.client_event_generator is not None: - wdm_stress_check, stress_failures = self.__validate_node_events(wdm_stress_check, stress_failures, data, True) + if not (self.options[wwno.CLIENT][wwno.FAULTS] or self.options[wwno.SERVER][wwno.FAULTS]): + if self.options[wwno.CLIENT][wwno.EVENT_GENERATOR]: + wdm_stress_check, stress_failures = self.__validate_node_events( + wdm_stress_check, stress_failures, data, True) - if self.server_event_generator is not None: - wdm_stress_check, stress_failures = self.__validate_node_events(wdm_stress_check, stress_failures, data, False) + if self.options[wwno.SERVER][wwno.EVENT_GENERATOR]: + wdm_stress_check, stress_failures = self.__validate_node_events( + wdm_stress_check, stress_failures, data, False) - if self.server_event_generator is None and self.client_event_generator is None: - client_checksum_list = self.weave_wdm.wdm_next_checksum_check_process(data["client_output"]) + if not self.options[wwno.CLIENT][wwno.EVENT_GENERATOR] and not self.options[ + wwno.SERVER][wwno.EVENT_GENERATOR]: + client_checksum_list = self.weave_wdm.wdm_next_checksum_check_process(data[ + "client_output"]) - server_checksum_list = self.weave_wdm.wdm_next_checksum_check_process(data["server_output"]) + server_checksum_list = self.weave_wdm.wdm_next_checksum_check_process(data[ + "server_output"]) if client_checksum_list != server_checksum_list: wdm_stress_check = False wdm_stress_diag_list.append("mismatched trait checksum:") error = "Mismatch in the trait data checksums:" stress_failures.append(error) - stress_failures.append("\tchecksums on the client: " + str(client_checksum_list)) - stress_failures.append("\tchecksums on the server: " + str(server_checksum_list)) + stress_failures.append( + "\tchecksums on the client: " + + str(client_checksum_list)) + stress_failures.append( + "\tchecksums on the server: " + + str(server_checksum_list)) wdm_stress_diag_list.append('initiator:' + str(client_checksum_list)) wdm_stress_diag_list.append('responder:' + str(server_checksum_list)) test_results.append({ - 'testName': self.test_case_name[0], + 'testName': self.options[wwno.TEST][wwno.TEST_CASE_NAME][0], 'testStatus': 'success' if wdm_stress_check else 'failure', 'testDescription': ('Stress test passed!' if wdm_stress_check else 'Stress test failed!') - + "\n" + ''.join(wdm_stress_diag_list) + + "\n" + ''.join(wdm_stress_diag_list) }) # output the test result to a json file @@ -247,39 +308,56 @@ def __process_result(self, nodeA, nodeB, value, data): 'testResults': test_results } - output_file_name = self.weave_wdm.process_log_prefix + self.test_tag[1:] + TESTRAIL_SUFFIX + output_file_name = self.weave_wdm.process_log_prefix + \ + self.options[wwno.TEST][wwno.TEST_TAG][1:] + TESTRAIL_SUFFIX self.__output_test_result(output_file_name, output_data) - self.assertTrue(wdm_stress_check, "\nwdm_stress_check is False\n\n" + "\n\t".join(stress_failures)) + self.assertTrue( + wdm_stress_check, + "\nwdm_stress_check is False\n\n" + + "\n\t".join(stress_failures)) print hgreen("Passed") def __output_test_result(self, file_path, output_data): + """ + Output the test results in Testrail. + + Args: + file_path (str): Path to testrail logs. + output_data (dict): Holds the test results. + """ options = plugins.testrail.TestrailResultOutput.option() - options["quiet"] = test_option_quiet + options["quiet"] = self.options[wwno.TEST][wwno.QUIET] options["file_path"] = file_path options["output_data"] = output_data output_test = plugins.testrail.TestrailResultOutput.TestrailResultOutput(options) output_test.run() + def __run_wdm_test_between(self, nodeA, nodeB, wdm_next_args): + """ + Execute the test between two nodes given test parameters. - def __run_wdm_test_between(self, nodeA, nodeB): - options = WeaveWdmNext.option() - options.update(self.default_options) - - options["quiet"] = test_option_quiet - options["clients"] = [nodeA] - options["server"] = nodeB - options["tap"] = self.tap - options["wdm_option"] = self.wdm_option + Args: + nodeA (str): First node identifier. + nodeB (str): Second node identifier. + wdm_next_args (dict): Custom test parameters. - self.options = options + Returns: + (bool, list): Whether test executed without parser/leak errors and + test results/logs + """ + # Update default options with test parameters= + for category, test_param_args in wdm_next_args.items(): + self.options[category].update(test_param_args) - self.weave_wdm = WeaveWdmNext.WeaveWdmNext(options) + self.options[wwno.TEST][wwno.CLIENT] = [nodeA] + self.options[wwno.TEST][wwno.SERVER] = nodeB - ret = self.weave_wdm.run() + self.weave_wdm = WeaveWdmNext.WeaveWdmNext(self.options) - value = ret.Value() + ret = self.weave_wdm.run_client_test() + success = ret.Value() data = ret.Data() - return value, data + return success, data diff --git a/src/test-apps/happy/tests/standalone/wdmNext/weave_wdm_next_test_params.json b/src/test-apps/happy/tests/standalone/wdmNext/weave_wdm_next_test_params.json new file mode 100644 index 0000000000..917f5d8777 --- /dev/null +++ b/src/test-apps/happy/tests/standalone/wdmNext/weave_wdm_next_test_params.json @@ -0,0 +1,5627 @@ +{ + "test_weave_wdm_next_application_key_01": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 0, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_case": 2, + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_case": 2, + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "B01: Stress Mutual Subscribe: Application key: Key distribution" + ], + "test_tag": "_APPLICATION_KEY_01", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_application_key_02": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 0, + "group_enc": true, + "group_enc_key_id": "0x00005536", + "log_check": [ + [ + "Message Encryption Key", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(1\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(1\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "B02: Stress Mutual Subscribe: Application key: Group key" + ], + "test_tag": "_APPLICATION_KEY_02", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_resub": { + "client_options": { + "enable_flip": 1, + "enable_retry": true, + "enable_stop": true, + "final_status": 0, + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "enable_flip": 1, + "enable_stop": false, + "final_status": 4, + "log_check": [], + "test_iterations": 1, + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "N04: Mutual Subscribe: Root path, Null Version, Resubscribe On Error" + ], + "test_tag": "_MUTUAL_RESUB", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_01": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 0, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M01: Stress Mutual Subscribe: Root path. Null Version. Client in initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_01", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_02": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 1, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "save_perf": false, + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M02: Stress Mutual Subscribe: Root path. Null Version. Publisher in initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_02", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_03": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 2, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M03: Stress Mutual Subscribe: Root path. Null Version. Client in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_03", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_04": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 3, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M04: Stress Mutual Subscribe: Root path. Null Version. Publisher in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_04", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_05": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 0, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 10000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M05: Stress Mutual Subscribe: Root path. Null Version. Idle, Client in initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_05", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_06": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 1, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 10000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M06: Stress Mutual Subscribe: Root path. Null Version. Idle. Publisher in initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_06", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_07": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 2, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 10000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M07: Stress Mutual Susbscribe: Root path. Null Version. Idle. Client in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_07", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_08": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 3, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 10000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M08: Stress Mutual Subscribe: Root path. Null Version. Idle. Publisher in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_08", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_09": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 0, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M09: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator. Client in initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_09", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_10": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 1, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[ALIVE\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M10: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator. Publisher in initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_10", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_11": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 2, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M11: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator. Client in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_11", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_12": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 3, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M12: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator.Publisher in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_12", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_13": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 0, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "M13: Stress Mutual Subscribe: Root path. Null Version. Mutate data in responder. Client in initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_13", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_14": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 1, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "M14: Stress Mutual Subscribe: Root path, Null Version, Notification in responder, Publisher in initiator Cancel" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_14", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_15": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 2, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "M15: Stress Mutual Subscribe: Root path. Null Version. Notification in responder. Client in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_15", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_16": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 3, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "M16: Stress Mutual Subscribe: Root path. Null Version. Mutate data in responder. Publisher in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_16", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_17": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 0, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "M17: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Client in initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_17", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_18": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 1, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "M18: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Publisher in initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_18", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_19": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 2, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "M19: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Client in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_19", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_20": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 3, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "M20: Stress Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Publisher in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_20", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_21": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 0, + "final_status": 0, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "E05: Mutual Subscribe: Root path. Null Version. Client in responder cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_21", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_22": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 0, + "final_status": 1, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "E06: Mutual Subscribe: Root path. Null Version. Publisher in responder cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_22", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_23": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 15000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 0, + "final_status": 2, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "E07: Mutual Subscribe: Root path. Null Version. Client in responder aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_23", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_24": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 15000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 0, + "final_status": 3, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "E08: Mutual Subscribe: Root path. Null Version. Publisher in responder aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_24", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_25": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 0, + "final_status": 0, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 10000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F17: Mutual Subscribe: Root path. Null Version. Idle. Client in responder cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_25", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_26": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 0, + "final_status": 1, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 10000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F18: Mutual Subscribe: Root path. Null Version. Idle. Publisher in responder cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_26", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_27": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 15000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 0, + "final_status": 2, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 10000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F19: Mutual Subscribe: Root path. Null Version. Idle. Client in responder aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_27", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_28": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 15000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 0, + "final_status": 3, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 10000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F20: Mutual Subscribe: Root path. Null Version. Idle. Publisher in responder aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_28", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_29": { + "client_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 4000, + "total_count": 2 + }, + "server_options": { + "enable_flip": 0, + "final_status": 0, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 5000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F21: Mutual Subscribe: Root path. Null Version. Mutate data in initiator. Client in responder cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_29", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_30": { + "client_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 4000, + "total_count": 2 + }, + "server_options": { + "enable_flip": 0, + "final_status": 1, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 5000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F22: Mutual Subscribe: Root path. Null Version. Mutate data in initiator. Publisher in responder cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_30", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_31": { + "client_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 15000, + "test_iterations": 1, + "timer_period": 4000, + "total_count": 2 + }, + "server_options": { + "enable_flip": 0, + "final_status": 2, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 5000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F23: Mutual Subscribe: Root path. Null Version. Mutate data in initiator. Client in responder aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_31", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_32": { + "client_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 15000, + "test_iterations": 1, + "timer_period": 4000, + "total_count": 2 + }, + "server_options": { + "enable_flip": 0, + "final_status": 3, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 5000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F24: Mutual Subscribe: Root path. Null Version. Mutate data in initiator. Publisher in responder Abort" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_32", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_33": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 1, + "final_status": 0, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 5000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F25: Mutual Subscribe: Root path. Null Version. Mutate data in responder. Client in responder cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_33", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_34": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 1, + "final_status": 1, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 5000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F26: Mutual Subscribe: Root path. Null Version. Mutate data in responder. Publisher in responder cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_34", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_35": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 15000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 1, + "final_status": 2, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 5000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F27: Mutual Subscribe: Root path. Null Version. Mutate data in responder. Client in responder aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_35", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_36": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 15000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 1, + "final_status": 3, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 5000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F28: Mutual Subscribe: Root path. Null Version. Mutate data in responder. Publisher in responder aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_36", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_37": { + "client_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 4000, + "total_count": 0 + }, + "server_options": { + "enable_flip": 1, + "final_status": 0, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 5000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F29: Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Client in responder cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_37", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_38": { + "client_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 4000, + "total_count": 0 + }, + "server_options": { + "enable_flip": 1, + "final_status": 1, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)]\\ EndSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 5000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F30: Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Publisher in responder cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_38", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_39": { + "client_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 15000, + "test_iterations": 1, + "timer_period": 4000, + "total_count": 2 + }, + "server_options": { + "enable_flip": 1, + "final_status": 2, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 5000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F31: Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Client in responder aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_39", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_40": { + "client_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 15000, + "test_iterations": 1, + "timer_period": 4000, + "total_count": 2 + }, + "server_options": { + "enable_flip": 1, + "final_status": 3, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 5000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "F32: Mutual Subscribe: Root path. Null Version. Mutate data in initiator and responder. Publisher in responder aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_40", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_41": { + "client_options": { + "enable_flip": 0, + "final_status": 2, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 11 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "0 ==> 100 ==> 101 ==> 102 ==> 103 ==> 104 ==> 105 ==> 106 ==> 107 ==> 108 ==> 109 ==> 110", + 2 + ], + [ + "0 ==> 200 ==> 201 ==> 202 ==> 203 ==> 204 ==> 205 ==> 206 ==> 207 ==> 208 ==> 209 ==> 210", + 1 + ], + [ + "0 ==> 300 ==> 301 ==> 302 ==> 303 ==> 304 ==> 305 ==> 306 ==> 307 ==> 308 ==> 309 ==> 310", + 1 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "G01: Mutual Subscribe: Multiple Iterations. Mutate data in responder. Client in initiator aborts. Version is kept." + ], + "test_tag": "_MUTUAL_SUBSCRIBE_41", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_42": { + "client_options": { + "enable_flip": 1, + "final_status": 2, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 11 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "0 ==> 100 ==> 101 ==> 102 ==> 103 ==> 104 ==> 105 ==> 106 ==> 107 ==> 108 ==> 109 ==> 110", + 2 + ], + [ + "0 ==> 200 ==> 201 ==> 202 ==> 203 ==> 204 ==> 205 ==> 206 ==> 207 ==> 208 ==> 209 ==> 210", + 1 + ] + ], + "timer_period": 0, + "total_count": 1 + }, + "test_options": { + "test_case_name": [ + "G02: Mutual Subscribe: Multiple Iterations. Mutate data in initiator. Client in initiator aborts. Version is kept." + ], + "test_tag": "_MUTUAL_SUBSCRIBE_42", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_43": { + "client_options": { + "enable_flip": 1, + "final_status": 2, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 11 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "0 ==> 100 ==> 101 ==> 102 ==> 103 ==> 104 ==> 105 ==> 106 ==> 107 ==> 108 ==> 109 ==> 110", + 2 + ], + [ + "0 ==> 200 ==> 201 ==> 202 ==> 203 ==> 204 ==> 205 ==> 206 ==> 207 ==> 208 ==> 209 ==> 210", + 1 + ], + [ + "0 ==> 300 ==> 301 ==> 302 ==> 303 ==> 304 ==> 305 ==> 306 ==> 307 ==> 308 ==> 309 ==> 310", + 1 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 11 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "0 ==> 100 ==> 101 ==> 102 ==> 103 ==> 104 ==> 105 ==> 106 ==> 107 ==> 108 ==> 109 ==> 110", + 2 + ], + [ + "0 ==> 200 ==> 201 ==> 202 ==> 203 ==> 204 ==> 205 ==> 206 ==> 207 ==> 208 ==> 209 ==> 210", + 1 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "G03: Mutual Subscribe: Multiple Iterations. Mutate data in initiator and responder. Client in initiator aborts. Version is kept" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_43", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_44": { + "client_options": { + "enable_flip": 1, + "event_generator": "Security", + "final_status": 0, + "inter_event_period": 2000, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 15000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M25: Stress Mutual Subscribe: Initiator Continuous Events. Mutate data in initiator. Client in initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_44", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_45": { + "client_options": { + "enable_flip": 1, + "event_generator": "Security", + "final_status": 1, + "inter_event_period": 2000, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 15000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M26: Stress Mutual Subscribe: Initiator Continuous Events. Mutate data in initiator. Publisher in Initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_45", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_46": { + "client_options": { + "enable_flip": 1, + "event_generator": "Security", + "final_status": 2, + "inter_event_period": 2000, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 15000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M27: Stress Mutual Subscribe: Initiator Continuous Events. Mutate data in initiator. Client in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_46", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_47": { + "client_options": { + "enable_flip": 1, + "event_generator": "Security", + "final_status": 3, + "inter_event_period": 2000, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[ALIVE\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 15000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M28: Stress Mutual Subscribe: Initiator Continuous Events. Mutate data in initiator. Publisher in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_47", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_48": { + "client_options": { + "enable_flip": 0, + "final_status": 0, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 1, + "event_generator": "Security", + "final_status": 4, + "inter_event_period": 2000, + "log_check": [ + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 15000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "M29: Stress Mutual Subscribe: Responder Continuous Events. Mutate data in responder. Client in initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_48", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_49": { + "client_options": { + "enable_flip": 0, + "event_generator": "Security", + "final_status": 1, + "inter_event_period": 2000, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 15000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "M30: Stress Mutual Subscribe: Responder Continuous Events. Mutate data in responder. Publisher in Initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_49", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_50": { + "client_options": { + "enable_flip": 0, + "event_generator": "Security", + "final_status": 2, + "inter_event_period": 2000, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 15000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "M31: Stress Mutual Subscribe: Responder Continuous Events. Mutate data in responder. Client in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_50", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_51": { + "client_options": { + "enable_flip": 0, + "event_generator": "Security", + "final_status": 3, + "inter_event_period": 2000, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[ALIVE\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 15000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "M32: Stress Mutual Subscribe: Responder Continuous Events. Mutate data in responder. Publisher in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_51", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_52": { + "client_options": { + "enable_flip": 0, + "event_generator": "Security", + "final_status": 0, + "inter_event_period": 2000, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 15000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M33: Stress Mutual Subscribe: Initiator Continuous Events. Client in initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_52", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_53": { + "client_options": { + "enable_flip": 0, + "event_generator": "Security", + "final_status": 1, + "inter_event_period": 2000, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 15000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 0, + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M34: Stress Mutual Subscribe: Initiator Continuous Events. Publisher in Initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_53", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_54": { + "client_options": { + "enable_flip": 0, + "event_generator": "Security", + "final_status": 2, + "inter_event_period": 2000, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 15000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M35: Stress Mutual Subscribe: Initiator Continuous Events. Client in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_54", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_55": { + "client_options": { + "enable_flip": 0, + "event_generator": "Security", + "final_status": 3, + "inter_event_period": 2000, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[ALIVE\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 15000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "M36: Stress Mutual Subscribe: Initiator Continuous Events. Publisher in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_55", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_56": { + "client_options": { + "enable_flip": 0, + "final_status": 0, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 0, + "event_generator": "Security", + "final_status": 4, + "inter_event_period": 2000, + "log_check": [ + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 35000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "M37: Stress Mutual Subscribe: Responder Continuous Events. Client in initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_56", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_57": { + "client_options": { + "enable_flip": 0, + "event_generator": "Security", + "final_status": 1, + "inter_event_period": 2000, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 15000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "M38: Stress Mutual Subscribe: Responder Continuous Events. Mutate data in responder. Publisher in Initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_57", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_58": { + "client_options": { + "enable_flip": 0, + "event_generator": "Security", + "final_status": 2, + "inter_event_period": 2000, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 15000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "M39: Stress Mutual Subscribe: Responder Continuous Events. Client in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_58", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_59": { + "client_options": { + "enable_flip": 0, + "event_generator": "Security", + "final_status": 3, + "inter_event_period": 2000, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[ALIVE\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 15000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "M40: Stress Mutual Subscribe: Responder Continuous Events. Publisher in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_59", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_60": { + "client_options": { + "enable_flip": 1, + "event_generator": "Security", + "final_status": 0, + "inter_event_period": 2000, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 1, + "event_generator": "Security", + "final_status": 4, + "inter_event_period": 2000, + "log_check": [ + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 15000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "M41: Initiator and Responder Continuous Events. Mutate data in initiator responder. Client in initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_60", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_61": { + "client_options": { + "enable_flip": 1, + "event_generator": "Security", + "final_status": 1, + "inter_event_period": 2000, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 1, + "event_generator": "Security", + "final_status": 4, + "inter_event_period": 2000, + "log_check": [ + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 15000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "M42: Stress Mutual Subscribe: Initiator and Responder Continuous Events. Mutate data in initiator and responder. Publisher in initiator cancels" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_61", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_62": { + "client_options": { + "enable_flip": 1, + "event_generator": "Security", + "final_status": 2, + "inter_event_period": 2000, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 1, + "event_generator": "Security", + "final_status": 4, + "inter_event_period": 2000, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 15000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "M43: Stress Mutual Subscribe: Initiator and Responder Continuous Events. Mutate data in initiator and responder. Client in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_62", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_63": { + "client_options": { + "enable_flip": 1, + "event_generator": "Security", + "final_status": 3, + "inter_event_period": 2000, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[ALIVE\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 1, + "event_generator": "Security", + "final_status": 4, + "inter_event_period": 2000, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 15000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "M44: Stress Mutual Subscribe: Initiator and Responder Continuous Events. Mutate data in initiator and responder. Publisher in initiator aborts" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_63", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_64": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 3, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Error retrieving data from trait", + 10 + ], + [ + "trait property is too big so that it fails to fit in the packet", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_case": 4, + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Error retrieving data from trait", + 5 + ], + [ + "trait property is too big so that it fails to fit in the packet", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_case": 4, + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "N01: Stress Mutual Subscribe: Oversize trait exists in the end of source trait list at initiator and in the beginning of source trait list at responder." + ], + "test_tag": "_MUTUAL_SUBSCRIBE_64", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_65": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 3, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 10 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Error retrieving data from trait", + 10 + ], + [ + "trait property is too big so that it fails to fit in the packet", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_case": 5, + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "bound mutual subscription is going away", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ], + [ + "Error retrieving data from trait", + 10 + ], + [ + "trait property is too big so that it fails to fit in the packet", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_case": 5, + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "N02: Stress Mutual Subscribe: Oversize trait exists in the end of source trait list at initiator and in the middle of source trait list at responder." + ], + "test_tag": "_MUTUAL_SUBSCRIBE_65", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_mutual_subscribe_faults": { + "client_options": { + "enable_flip": 1, + "event_generator": "Liveness", + "final_status": 0, + "inter_event_period": 9000, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] bound mutual subscription is going away", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "bound mutual subscription is going away", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 4 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "Mutual subscription happy sequence for fault-injection" + ], + "test_tag": "_MUTUAL_SUBSCRIBE_FAULTS", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_01": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 0, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "L01: Stress One way Subscribe: Root path. Null Version. Client cancels" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_01", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_02": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 2, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE)\\] _AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "L02: Stress One way Subscribe: Root path. Null Version. Client aborts" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_02", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_03": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 0, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] \\[(CANCL)\\] _AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "L03: Stress One way Subscribe: Root path. Null Version. Idle. Client cancels" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_03", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_04": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 2, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "L04: Stress One way Subscribe: Root path. Null Version. Idle. Client aborts" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_04", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_05": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 0, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "L05: Stress One way Subscribe: Root path, Null Version. Mutate data in Publisher. Client cancels" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_05", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_06": { + "client_options": { + "clear_state_between_iterations": true, + "enable_flip": 0, + "final_status": 2, + "log_check": [ + [ + "Client\\[0\\] \\[ALIVE\\] _AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 15 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "clear_state_between_iterations": true, + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "L06: Stress One way Subscribe: Root path. Null Version. Mutate data in Publisher. Client aborts" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_06", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_07": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 0, + "final_status": 1, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 0, + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "B03: One way Subscribe: Root path. Null Version. Publisher cancels" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_07", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_08": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 15000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 0, + "final_status": 3, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "B04: One way Subscribe: Root path. Null Version. Publisher aborts" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_08", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_09": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 0, + "final_status": 1, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 10000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "C05: One way Subscribe: Root path. Null Version. Idle. Publisher cancels" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_09", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_10": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 15000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 0, + "final_status": 3, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "C06: One way Subscribe: Root path, Null Version, Idle, Publisher Abort" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_10", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_11": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 1, + "final_status": 1, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 5000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "C07: One way Subscribe: Root path. Null Version. Mutate data in publisher. Publisher cancels" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_11", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_12": { + "client_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated Ref\\(\\d+\\)", + 1 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 3 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "test_delay": 15000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 1, + "final_status": 3, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 1 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 1 + ] + ], + "timer_period": 5000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "C08: One way Subscribe: Root path. Null Version. Mutate data in publisher. Publisher aborts" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_12", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_13": { + "client_options": { + "enable_flip": 0, + "final_status": 2, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client->kEvent_OnNotificationProcessed", + 11 + ], + [ + "0 ==> 100 ==> 101 ==> 102 ==> 103 ==> 104 ==> 105 ==> 106 ==> 107 ==> 108 ==> 109 ==> 110", + 2 + ], + [ + "0 ==> 200 ==> 201 ==> 202 ==> 203 ==> 204 ==> 205 ==> 206 ==> 207 ==> 208 ==> 209 ==> 210", + 1 + ], + [ + "0 ==> 300 ==> 301 ==> 302 ==> 303 ==> 304 ==> 305 ==> 306 ==> 307 ==> 308 ==> 309 ==> 310", + 1 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 5000, + "total_count": 2 + }, + "server_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] TimerEventHandler Ref\\(\\d+\\) Timeout", + 5 + ], + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "timer_period": 4000, + "total_count": 2 + }, + "test_options": { + "test_case_name": [ + "D01: One way Subscribe: Multiple Iterations. Mutate data in publisher. Client aborts. Version is kept" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_13", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_14": { + "client_options": { + "enable_flip": 0, + "final_status": 0, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] \\[CANCL\\] _AbortSubscription Ref\\(\\d+\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 1, + "event_generator": "Security", + "final_status": 4, + "inter_event_period": 2000, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 0, + "timer_period": 15000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "L07: Stress One way Subscribe: Publisher Continuous Events. Publisher mutates trait data. Client cancels" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_14", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_15": { + "client_options": { + "enable_flip": 0, + "final_status": 2, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 1, + "event_generator": "Security", + "final_status": 4, + "inter_event_period": 2000, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 0, + "timer_period": 15000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "L08: Stress One way Subscribe: Publisher Continuous Events. Publisher mutates trait data. Client aborts" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_15", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_16": { + "client_options": { + "enable_flip": 0, + "final_status": 0, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] EndSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] \\[CANCL\\] _AbortSubscription Ref\\(\\d+\\)", + 5 + ] + ], + "test_delay": 2000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 0, + "event_generator": "Security", + "final_status": 4, + "inter_event_period": 2000, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] CancelRequestHandler", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 0, + "timer_period": 15000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "L09: Stress One way Subscribe: Publisher Continuous Events. Client cancels" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_16", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_one_way_subscribe_17": { + "client_options": { + "enable_flip": 0, + "final_status": 2, + "log_check": [ + [ + "Client\\[0\\] \\[(ALIVE|CONFM)\\] _AbortSubscription Ref\\(\\d+\\)", + 5 + ], + [ + "Client\\[0\\] moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 35000, + "test_iterations": 5, + "timer_period": 16000, + "total_count": 4 + }, + "server_options": { + "enable_flip": 0, + "event_generator": "Security", + "final_status": 4, + "inter_event_period": 2000, + "log_check": [ + [ + "Handler\\[0\\] \\[(ALIVE|CONFM)\\] HandleSubscriptionTerminated", + 5 + ], + [ + "Handler\\[0\\] Moving to \\[ FREE\\] Ref\\(0\\)", + 5 + ] + ], + "test_delay": 0, + "timer_period": 15000, + "total_count": 4 + }, + "test_options": { + "test_case_name": [ + "L10: Stress One way Subscribe: Publisher Continuous Events. Client cancels" + ], + "test_tag": "_ONE_WAY_SUBSCRIBE_17", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_oneway_resub": { + "client_options": { + "enable_flip": 0, + "enable_retry": true, + "enable_stop": true, + "final_status": 0, + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 0, + "enable_stop": false, + "final_status": 4, + "log_check": [], + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "N03: One way Subscribe: Root path, Null Version, Resubscribe On Error" + ], + "test_tag": "_ONEWAY_RESUB", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_oneway_subscribe_faults": { + "client_options": { + "enable_flip": 1, + "final_status": 0, + "log_check": [], + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 3000, + "total_count": 1 + }, + "server_options": { + "enable_flip": 1, + "final_status": 4, + "log_check": [], + "test_delay": 0, + "timer_period": 2000, + "total_count": 1 + }, + "test_options": { + "test_case_name": [ + "One way subscription happy sequence for fault injection" + ], + "test_tag": "_ONEWAY_SUBSCRIBE_FAULTS", + "wdm_option": "one_way_subscribe" + } + }, + "test_weave_wdm_next_subless_notify_01": { + "client_options": { + "final_status": 0, + "log_check": [], + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "server_options": { + "enable_flip": 0, + "final_status": 4, + "log_check": [], + "test_delay": 1000, + "test_iterations": 1, + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "O01: Subscriptionless Notify: Publisher sends subscriptionless notify to receiver, and receiver notifies application after processing trait data" + ], + "test_tag": "_SUBLESS_NOTIFY_01", + "timeout": 10, + "wdm_option": "subless_notify" + } + }, + "test_weave_wdm_next_update_01": { + "client_options": { + "clear_state_between_iterations": false, + "enable_flip": 1, + "enable_retry": true, + "final_status": 0, + "log_check": [ + [ + "Update: path result: success", + 1 + ] + ], + "test_case": 10, + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 10000, + "total_count": 1, + "wdm_update_conditionality": "Conditional", + "wdm_update_mutation": "OneLeaf", + "wdm_update_number_of_mutations": 1, + "wdm_update_timing": "AfterSub" + }, + "server_options": { + "clear_state_between_iterations": false, + "enable_flip": 0, + "final_status": 4, + "log_check": [], + "test_case": 10, + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "Update 01: Client creates mutual subscription, sends conditional update request to publisher, and receives notification and status report" + ], + "test_tag": "_UPDATE_01", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_update_02": { + "client_options": { + "clear_state_between_iterations": false, + "enable_flip": 1, + "enable_retry": true, + "final_status": 0, + "log_check": [ + [ + "Update: path result: success", + 1 + ] + ], + "test_case": 10, + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 10000, + "total_count": 1, + "wdm_update_conditionality": "Unconditional", + "wdm_update_mutation": "OneLeaf", + "wdm_update_number_of_mutations": 1, + "wdm_update_timing": "AfterSub" + }, + "server_options": { + "clear_state_between_iterations": false, + "enable_flip": 0, + "final_status": 4, + "log_check": [], + "test_case": 10, + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "Update 02: Client creates mutual subscription, sends unconditional update request to publisher, and receives notification and status report" + ], + "test_tag": "_UPDATE_02", + "wdm_option": "mutual_subscribe" + } + }, + "test_weave_wdm_next_update_03": { + "client_options": { + "clear_state_between_iterations": false, + "enable_flip": 1, + "enable_retry": true, + "final_status": 0, + "log_check": [ + [ + "Update: path result: success", + 1 + ] + ], + "test_case": 10, + "test_delay": 2000, + "test_iterations": 1, + "timer_period": 10000, + "total_count": 1, + "wdm_update_conditionality": "Unconditional", + "wdm_update_mutation": "OneLeaf", + "wdm_update_number_of_mutations": 1, + "wdm_update_timing": "NoSub" + }, + "server_options": { + "clear_state_between_iterations": false, + "enable_flip": 0, + "final_status": 4, + "log_check": [], + "test_case": 10, + "timer_period": 0, + "total_count": 0 + }, + "test_options": { + "test_case_name": [ + "Update 03: Client sends standalone unconditional update request to publisher, and receives status report" + ], + "test_tag": "_UPDATE_03", + "wdm_option": "one_way_subscribe" + } + } +}