description: Test plan for workflowBroker.js -------------------------------------------------------------------------------- testName: addPluginWorkflows_validData input pluginName: string (The name of the current plugin these workflows belong to) input pluginWorkflows: object (A JSON object that contains the plugin workflows that should be merged with the system workflows) output: boolean (True or False to indicate if the merge was successful or not) testName: addPluginWorkflows_inValidPluginNameString input pluginName: string (464gsdsfae8f46) input pluginWorkflows: object (A JSON object that contains the plugin workflows that should be merged with the system workflows) output: ? testName: addPluginWorkflows_inValidPluginWorkflowsString input pluginName: string (The name of the current plugin these workflows belong to) input pluginWorkflows: string (dfxg24346dfg) output: ? testName: addPluginWorkflows_inValidPluginNameNumber input pluginName: integer (123) input pluginWorkflows: object (A JSON object that contains the plugin workflows that should be merged with the system workflows) output: ? testName: addPluginWorkflows_inValidPluginNameBoolean input pluginName: boolean (false) input pluginWorkflows: object (A JSON object that contains the plugin workflows that should be merged with the system workflows) output: ? testName: addPluginWorkflows_inValidPluginWorkflowsNumber input pluginName: string (The name of the current plugin these workflows belong to) input pluginWorkflows: integer (123) output: ? testName: addPluginWorkflows_inValidPluginWorkflowsBoolean input pluginName: string (The name of the current plugin these workflows belong to) input pluginWorkflows: boolean (false) output: ? testName: addPluginWorkflows_inValidPluginNameUndefined input pluginName: undefined input pluginWorkflows: object (A JSON object that contains the plugin workflows that should be merged with the system workflows) output: ? testName: addPluginWorkflows_inValidPluginNameNaN input pluginName: NaN input pluginWorkflows: object (A JSON object that contains the plugin workflows that should be merged with the system workflows) output: ? testName: addPluginWorkflows_inValidPluginWorkflowsUndefined input pluginName: string (The name of the current plugin these workflows belong to) input pluginWorkflows: Undefined output: ? testName: addPluginWorkflows_inValidPluginWorkflowsNaN input pluginName: string (The name of the current plugin these workflows belong to) input pluginWorkflows: NaN output: ? -------------------------------------------------------------------------------- testName: getWorkflow_validData input workflowName: string (The name of the workflow we should get workflow data for) output: string|boolean (The workflow value, which ideally would be a list of commands and command parameters) testName: getWorkflow_inValidWorkflowNameString input workflowName: string (464gsdsfae8f46) output: ? testName: getWorkflow_inValidWorkflowNameNumber input workflowName: integer (546) output: ? testName: getWorkflow_inValidWorkflowNameBoolean input workflowName: boolean (false) output: ? testName: getWorkflow_inValidWorkflowNameUndefined input workflowName: undefined output: ? testName: getWorkflow_inValidWorkflowNameNaN input workflowName: NaN output: ? -------------------------------------------------------------------------------- testName: doesWorkflowExist_validData input workflowName: string (The name of the workflow that should be searched for) output: true testName: doesWorkflowExist_inValidWorkflowNameString input workflowName: string (464gsdsfae8f46) output: ? testName: doesWorkflowExist_inValidWorkflowNameNumber input workflowName: integer (546) output: ? testName: doesWorkflowExist_inValidWorkflowNameBoolean input workflowName: boolean (false) output: ? testName: doesWorkflowExist_inValidWorkflowNameUndefined input workflowName: undefined output: ? testName: doesWorkflowExist_inValidWorkflowNameNaN input workflowName: NaN output: ? -------------------------------------------------------------------------------- testName: doesWorkflowExistInWorkflowData_validData input workflowData: object (The workflow data structure that should be searched for the specified workflow) input workflowName: string (The name of the workflow that should be searched for in the workflow data structure) output: boolean (True or False to indicate if the workflow was found or not) testName: doesWorkflowExistInWorkflowData_inValidWorkflowDataString input workflowData: string (464gsdsfae8f46) input workflowName: string (The name of the workflow that should be searched for in the workflow data structure) output: ? testName: doesWorkflowExistInWorkflowData_inValidWorkflowNameString input workflowData: object (The workflow data structure that should be searched for the specified workflow) input workflowName: string (dfxg24346dfg) output: ? testName: doesWorkflowExistInWorkflowData_inValidWorkflowDataNumber input workflowData: integer (546) input workflowName: string (The name of the workflow that should be searched for in the workflow data structure) output: ? testName: doesWorkflowExistInWorkflowData_inValidWorkflowDataBoolean input workflowData: boolean (false) input workflowName: string (The name of the workflow that should be searched for in the workflow data structure) output: ? testName: doesWorkflowExistInWorkflowData_inValidWorkflowNameNumber input workflowData: object (The workflow data structure that should be searched for the specified workflow) input workflowName: integer (123) output: ? testName: doesWorkflowExistInWorkflowData_inValidWorkflowNameBoolean input workflowData: object (The workflow data structure that should be searched for the specified workflow) input workflowName: boolean (false) output: ? testName: doesWorkflowExistInWorkflowData_inValidWorkflowDataUndefined input workflowData: undefined input workflowName: string (The name of the workflow that should be searched for in the workflow data structure) output: ? testName: doesWorkflowExistInWorkflowData_inValidWorkflowDataNaN input workflowData: NaN input workflowName: string (The name of the workflow that should be searched for in the workflow data structure) output: ? testName: doesWorkflowExistInWorkflowData_inValidWorkflowNameUndefined input workflowData: object (The workflow data structure that should be searched for the specified workflow) input workflowName: undefined output: ? testName: doesWorkflowExistInWorkflowData_inValidWorkflowNameNaN input workflowData: object (The workflow data structure that should be searched for the specified workflow) input workflowName: NaN output: ? -------------------------------------------------------------------------------- testName: searchWorkflow_validData input allWorkflows: object (The workflow data that should be searched recursively for the specified workflow) input workflowName: string (The name of the workflow that should be found) output: object (The workflow object that corresponds to the input workflow name) example: {"doesArrayContainCharacter": "cmdgen bizRul,doesArrayContainCharacter,$,[the|answer|to|life|the|universe|and|everything|is|$42] 4"} testName: searchWorkflow_inValidAllWorkflowsString input allWorkflows: string (464gsdsfae8f46) input workflowName: string (The name of the workflow that should be found) output: ? testName: searchWorkflow_inValidWorkflowNameString input allWorkflows: object (The workflow data that should be searched recursively for the specified workflow) input workflowName: string (dfxg24346dfg) output: ? testName: searchWorkflow_inValidAllWorkflowsNumber input allWorkflows: integer (546) input workflowName: string (The name of the workflow that should be found) output: ? testName: searchWorkflow_inValidAllWorkflowsBoolean input allWorkflows: boolean (false) input workflowName: string (The name of the workflow that should be found) output: ? testName: searchWorkflow_inValidWorkflowNameNumber input allWorkflows: object (The workflow data that should be searched recursively for the specified workflow) input workflowName: integer (123) output: ? testName: searchWorkflow_inValidWorkflowNameBoolean input allWorkflows: object (The workflow data that should be searched recursively for the specified workflow) input workflowName: boolean (false) output: ? testName: searchWorkflow_inValidAllWorkflowsUndefined input allWorkflows: undefined input workflowName: string (The name of the workflow that should be found) output: ? testName: searchWorkflow_inValidAllWorkflowsNaN input allWorkflows: NaN input workflowName: string (The name of the workflow that should be found) output: ? testName: searchWorkflow_inValidWorkflowNameUndefined input allWorkflows: object (The workflow data that should be searched recursively for the specified workflow) input workflowName: undefined output: ? testName: searchWorkflow_inValidWorkflowNameNaN input allWorkflows: object (The workflow data that should be searched recursively for the specified workflow) input workflowName: NaN output: ? -------------------------------------------------------------------------------- testName: getAllWorkflows_validData input workflowDataStructure: object (The workflow data structure that should be recursively flattened into a single array for output) output: array|boolean (An array of all the workflows currently loaded into the D-data structure under the CommandWorkflows data hive or a boolean True or False to indicate that a leaf-node has been found by the recursive caller) testName: getAllWorkflows_inValidWorkflowDataStructureString input workflowDataStructure: string (464gsdsfae8f46) output: ? testName: getAllWorkflows_inValidWorkflowDataStructureNumber input workflowDataStructure: integer (546) output: ? testName: getAllWorkflows_inValidWorkflowDataStructureBoolean input workflowDataStructure: boolean (false) output: ? testName: getAllWorkflows_inValidWorkflowDataStructureUndefined input workflowDataStructure: undefined output: ? testName: getAllWorkflows_inValidWorkflowDataStructureNaN input workflowDataStructure: NaN output: ? -------------------------------------------------------------------------------- testName: getWorkflowNamespaceDataObject_validData input workflowDataStructure: object (The workflow data structure that should be recursively searched for the namespace specified) input namespaceToFind: string (The namespace to look for in the workflow metaData data structure) output: object|boolen (The namespace object if it is found, or False if the namespace object was not found) testName: getWorkflowNamespaceDataObject_inValidWorkflowDataStructureString input workflowDataStructure: string (464gsdsfae8f46) input namespaceToFind: string (The namespace to look for in the workflow metaData data structure) output: ? testName: getWorkflowNamespaceDataObject_inValidNamespaceToFindString input workflowDataStructure: object (The workflow data structure that should be recursively searched for the namespace specified) input namespaceToFind: string (dfxg24346dfg) output: ? testName: getWorkflowNamespaceDataObject_inValidWorkflowDataStructureNumber input workflowDataStructure: integer (546) input namespaceToFind: string (The namespace to look for in the workflow metaData data structure) output: ? testName: getWorkflowNamespaceDataObject_inValidWorkflowDataStructureBoolean input workflowDataStructure: boolean (false) input namespaceToFind: string (The namespace to look for in the workflow metaData data structure) output: ? testName: getWorkflowNamespaceDataObject_inValidNamespaceToFindNumber input workflowDataStructure: object (The workflow data structure that should be recursively searched for the namespace specified) input namespaceToFind: integer (123) output: ? testName: getWorkflowNamespaceDataObject_inValidNamespaceToFindBoolean input workflowDataStructure: object (The workflow data structure that should be recursively searched for the namespace specified) input namespaceToFind: boolean (false) output: ? testName: getWorkflowNamespaceDataObject_inValidWorkflowDataStructureUndefined input workflowDataStructure: undefined input namespaceToFind: string (The namespace to look for in the workflow metaData data structure) output: ? testName: getWorkflowNamespaceDataObject_inValidWorkflowDataStructureNaN input workflowDataStructure: NaN input namespaceToFind: string (The namespace to look for in the workflow metaData data structure) output: ? testName: getWorkflowNamespaceDataObject_inValidNamespaceToFindUndefined input workflowDataStructure: object (The workflow data structure that should be recursively searched for the namespace specified) input namespaceToFind: undefined output: ? testName: getWorkflowNamespaceDataObject_inValidNamespaceToFindNaN input workflowDataStructure: object (The workflow data structure that should be recursively searched for the namespace specified) input namespaceToFind: NaN output: ? -------------------------------------------------------------------------------- testName: removePluginWorkflows_validData input pluginName: string (The name of the plugin that should have its workflows removed from the D-data structure) output: boolean (True or False to indicate if the removal of the data was completed successfully or not) testName: removePluginWorkflows_inValidPluginNameString input pluginName: string (464gsdsfae8f46) output: ? testName: removePluginWorkflows_inValidPluginNameNumber input pluginName: Number (123) output: ? testName: removePluginWorkflows_inValidPluginNameBoolean input pluginName: boolean (false) output: ? testName: removePluginWorkflows_inValidPluginNameUndefined input pluginName: Undefined output: ? testName: removePluginWorkflows_inValidPluginNameNaN input pluginName: NaN output: ?