-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhacement(#4909): Changes in playbooks dir, setup.py and launchers
- Loading branch information
Showing
37 changed files
with
123 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
# Copyright (C) 2015-2024, Wazuh Inc. | ||
# Created by Wazuh, Inc. <[email protected]>. | ||
# This program is free software; you can redistribute it and/or modify it under the terms of GPLv2 | ||
import json | ||
from setuptools import setup, find_packages | ||
import os | ||
|
||
def get_files_from_directory(directory): | ||
paths = [] | ||
for (path, directories, filenames) in os.walk(directory): | ||
for filename in filenames: | ||
paths.append(os.path.join('..', path, filename)) | ||
return paths | ||
|
||
def get_version(): | ||
script_path = os.path.dirname(__file__) | ||
rel_path = "../version.json" | ||
abs_file_path = os.path.join(script_path, rel_path) | ||
f = open(abs_file_path) | ||
data = json.load(f) | ||
version = data['version'] | ||
return version | ||
|
||
scripts_list = [ | ||
'models=workflow_engine.models:main', | ||
'schema_validator=workflow_engine.schema_validator:main', | ||
'task=workflow_engine.task:main', | ||
'workflow_processor=workflow_engine.workflow_processor:main', | ||
'main=workflow_engine.main:main' | ||
] | ||
|
||
package_data_list = get_files_from_directory("workflow_engine") | ||
|
||
setup( | ||
name='workflow_engine', | ||
version=get_version(), | ||
description='Wazuh testing utilities to help programmers automate deployment tests', | ||
url='https://github.com/wazuh', | ||
author='Wazuh', | ||
author_email='[email protected]', | ||
license='GPLv2', | ||
packages=['workflow_engine'], | ||
package_dir={'workflow_engine': 'workflow_engine'}, | ||
package_data={'workflow_engine': package_data_list}, | ||
entry_points={'console_scripts': scripts_list}, | ||
include_package_data=True, | ||
zip_safe=False | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Metadata-Version: 2.1 | ||
Name: workflow_engine | ||
Version: 1.0 | ||
Summary: Wazuh testing utilities to help programmers automate deployment tests | ||
Home-page: https://github.com/wazuh | ||
Author: Wazuh | ||
Author-email: [email protected] | ||
License: GPLv2 |
29 changes: 29 additions & 0 deletions
29
deployability/modules/workflow_engine.egg-info/SOURCES.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
setup.py | ||
workflow_engine/README.md | ||
workflow_engine/__init__.py | ||
workflow_engine/main.py | ||
workflow_engine/models.py | ||
workflow_engine/schema_validator.py | ||
workflow_engine/task.py | ||
workflow_engine/workflow_processor.py | ||
workflow_engine.egg-info/PKG-INFO | ||
workflow_engine.egg-info/SOURCES.txt | ||
workflow_engine.egg-info/dependency_links.txt | ||
workflow_engine.egg-info/entry_points.txt | ||
workflow_engine.egg-info/not-zip-safe | ||
workflow_engine.egg-info/top_level.txt | ||
workflow_engine/__pycache__/__init__.cpython-310.pyc | ||
workflow_engine/__pycache__/models.cpython-310.pyc | ||
workflow_engine/__pycache__/schema_validator.cpython-310.pyc | ||
workflow_engine/__pycache__/task.cpython-310.pyc | ||
workflow_engine/__pycache__/utils.cpython-310.pyc | ||
workflow_engine/__pycache__/workflow_processor.cpython-310.pyc | ||
workflow_engine/examples/dtt1-agents-poc.yaml | ||
workflow_engine/examples/dtt1-agents.yaml | ||
workflow_engine/examples/dtt1-managers.yaml | ||
workflow_engine/logging/__init__.py | ||
workflow_engine/logging/config.yaml | ||
workflow_engine/logging/filter.py | ||
workflow_engine/logging/logger.py | ||
workflow_engine/logging/__pycache__/__init__.cpython-310.pyc | ||
workflow_engine/schemas/schema_v1.json |
1 change: 1 addition & 0 deletions
1
deployability/modules/workflow_engine.egg-info/dependency_links.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
7 changes: 7 additions & 0 deletions
7
deployability/modules/workflow_engine.egg-info/entry_points.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[console_scripts] | ||
main = workflow_engine.main:main | ||
models = workflow_engine.models:main | ||
schema_validator = workflow_engine.schema_validator:main | ||
task = workflow_engine.task:main | ||
utils = workflow_engine.utils:main | ||
workflow_processor = workflow_engine.workflow_processor:main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
workflow_engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from .workflow_processor import WorkflowProcessor | ||
#from .workflow_processor import WorkflowProcessor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"version": "1.0", | ||
"revision": "1" | ||
} |