diff --git a/.github/tests/robot/__pycache__/DynamicTestCases.cpython-39.pyc b/.github/tests/robot/__pycache__/DynamicTestCases.cpython-39.pyc new file mode 100644 index 0000000..aae5063 Binary files /dev/null and b/.github/tests/robot/__pycache__/DynamicTestCases.cpython-39.pyc differ diff --git a/.github/tests/robot/__pycache__/PlaybookScannerHelper.cpython-39.pyc b/.github/tests/robot/__pycache__/PlaybookScannerHelper.cpython-39.pyc new file mode 100644 index 0000000..8715243 Binary files /dev/null and b/.github/tests/robot/__pycache__/PlaybookScannerHelper.cpython-39.pyc differ diff --git a/.github/tests/robot/soar_robot_utils/__pycache__/__init__.cpython-39.pyc b/.github/tests/robot/soar_robot_utils/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..dac6578 Binary files /dev/null and b/.github/tests/robot/soar_robot_utils/__pycache__/__init__.cpython-39.pyc differ diff --git a/.github/tests/robot/soar_robot_utils/__pycache__/playbook_parser.cpython-39.pyc b/.github/tests/robot/soar_robot_utils/__pycache__/playbook_parser.cpython-39.pyc new file mode 100644 index 0000000..4fdf85b Binary files /dev/null and b/.github/tests/robot/soar_robot_utils/__pycache__/playbook_parser.cpython-39.pyc differ diff --git a/.github/tests/robot/soar_robot_utils/__pycache__/utils.cpython-39.pyc b/.github/tests/robot/soar_robot_utils/__pycache__/utils.cpython-39.pyc new file mode 100644 index 0000000..ad6a59f Binary files /dev/null and b/.github/tests/robot/soar_robot_utils/__pycache__/utils.cpython-39.pyc differ diff --git a/.github/tests/run_on_changed_playbooks.py b/.github/tests/run_on_changed_playbooks.py index d4ee98d..84aac24 100644 --- a/.github/tests/run_on_changed_playbooks.py +++ b/.github/tests/run_on_changed_playbooks.py @@ -42,8 +42,17 @@ def run_robot_tests(robot_file: str, playbook: str): print("Tests failed.") +def main(args): + + # Get changed files compared to the provided base branch + changed_files = get_changed_files_without_extension(args.base_branch) + + # Output the files without extensions + for playbook in changed_files: + run_robot_tests(args.robot_path, playbook) -def main(): + +if __name__ == "__main__": # Create the argument parser parser = argparse.ArgumentParser(description="Get changed JSON or Python files in the root directory without extensions compared to a base branch") @@ -53,14 +62,5 @@ def main(): # Parse the arguments args = parser.parse_args() - - # Get changed files compared to the provided base branch - changed_files = get_changed_files_without_extension(args.base_branch) - - # Output the files without extensions - for playbook in changed_files: - run_robot_tests(args.robot_path, playbook) - -if __name__ == "__main__": - main() \ No newline at end of file + run_robot_tests(args.robot_path, "Active_Directory_Disable_Account_Dispatch") \ No newline at end of file