Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add qa-ctl v0.3 #2307

Merged
merged 214 commits into from
Dec 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
fe554ba
add: add parameter to check if a test exists #1864
Sep 13, 2021
bad893a
style: change parameters code style #1876
Sep 13, 2021
6342f61
add: add parameters validation. #1876
Sep 13, 2021
87f7502
add: Add `qa-docs` logger to script. #1879
Sep 14, 2021
34db0f7
refac: using now qa-docs logger to logging. #1879
Sep 14, 2021
762e83e
add: add debug logging to `config.py` #1879
Sep 15, 2021
269e58e
refac: add load config file method and fix private class method style…
Sep 15, 2021
2f12275
refac: add `qa-docs` logger to `DocGenerator` module. #1879
Sep 15, 2021
4b334bd
fix: `qa_docs` logger was not setting the level correctly". #1879
Sep 15, 2021
7080e3f
add: now both output standard and log file working. #1879
Sep 15, 2021
82c95d6
refac: migrate logging from `logging` logger to custom `qa-docs` logg…
Sep 15, 2021
d0ea391
refac: migrate logging from `logging` logger to custom `qa-docs` logg…
Sep 15, 2021
d15979a
refac: migrate logging from `logging` logger to custom `qa-docs` logg…
Sep 15, 2021
1ffba35
refac: migrate logging from `logging` logger to custom `qa-docs` logg…
Sep 15, 2021
1c91d05
refac: migrate logging from `logging` logger to custom `qa-docs` logg…
Sep 15, 2021
cb21617
fix: `-t` option now working. #1879
Sep 15, 2021
86e5045
style: improve readability and clarity.
Sep 16, 2021
9e21347
style: improve readability and clarity in `pytest_wrap.py` and `sanit…
Sep 16, 2021
6a3a919
Merge pull request #1896 from wazuh/1879-qadocs-logging
Sep 16, 2021
fda1004
add: add QAExceptions and custom loggin class.
Sep 16, 2021
4f1373a
Merge branch '1864-qa-docs-fixes' of github.com:wazuh/wazuh-qa into 1…
Sep 16, 2021
6a551dd
doc: update script documentation. #1899
Sep 16, 2021
7cc71c8
refac: refactor the config module args. #1899
Sep 16, 2021
6683a88
doc: add `config` module documentation. #1899
Sep 16, 2021
18eb63e
style: fix `config.py` style. #1899
Sep 16, 2021
a311e06
doc: Add `doc_generator.py` documentation. #1899
Sep 17, 2021
8c6243a
style: fix `doc_generator.py` style. #1899
Sep 17, 2021
db6d4ab
refac: remove an unnecessary module and fix style.
Sep 17, 2021
c9b9d35
doc: Add `code_parse.py` documentation. #1899
Sep 20, 2021
0b6cd9d
doc: Add `index_data.py` documentation. #1899
Sep 20, 2021
528028b
style: fix `index_data.py` style. #1899
Sep 20, 2021
5e3efaa
doc: Add `pytest_wrap.py` documentation. #1899
Sep 20, 2021
3755a45
style: fix `pytest_wrap.py` style. #1899
Sep 20, 2021
55d9fab
doc: Add `Returns` to some `code_parser.py` methods.
Sep 20, 2021
d80a15f
doc: Add `sanity.py` documentation. #1899
Sep 20, 2021
9f65d5e
fix: Remove third person usage and add except error. #1899
Sep 20, 2021
8202349
style: Change few methods style.
Sep 20, 2021
47e45e6
doc: Add `utils.py` documentation. #1899
Sep 20, 2021
d787b3d
style: Add missing new line to qa-docs `__init__.py`
Sep 20, 2021
423a80e
style: Remove third person usage from `qa_docs.py` documentation desc…
Sep 20, 2021
01f8b7b
doc: Remove third person usage in `index_data.py` and `sanity.py`.
Sep 20, 2021
01ba67c
refac: Rename `code_file` variable to `path`.
Sep 20, 2021
bc05b1c
doc: Add type in `Attributes` and `Args`.
Sep 20, 2021
883f8ba
add: Add `path` autogeneration.
Sep 20, 2021
07a0dc9
Merge branch '1864-qa-docs-fixes' into 1899-qa-docs-doc
Sep 21, 2021
4bcca1f
Merge pull request #1907 from wazuh/1899-qa-docs-doc
Sep 21, 2021
f4f6842
refac: Refactorize `create_test` and `print_test_info`. #1864
Sep 21, 2021
7a61ccd
style: Rename `config.yaml` fields. #1864
Sep 21, 2021
55ec611
refac: Fix debug messages and change f-string. #1864
Sep 21, 2021
529e1f7
add: `-T`,`--tests` and `-e`,`--exist` options receives now a list of…
Sep 22, 2021
56eb670
refac: Enhance `-h`,`--help` option. #1864
Sep 22, 2021
8502d71
add: Add check incompatibilities between parameters. #1864
Sep 22, 2021
c3e8211
refac: When `qa-docs` runs without any parameter, it raises an error …
Sep 22, 2021
07ce015
add: Add `--types` parameter to `qa-docs` tool. #1864
Sep 23, 2021
d604750
add: Add `--types` cases to `check_incompatible_parameters()`. #1864
Sep 23, 2021
caf81d6
add: Add the `--modules` parameter to `qa-docs`. #1864
Sep 23, 2021
01c87ea
doc: Include and fix a few changes. #1864
Sep 23, 2021
daac4b2
refac: remove `config.yaml` and use `schema.yaml` instead. #1864
Oct 1, 2021
eea5045
fix: Change the documentation and messages. #1864
Oct 1, 2021
98c4e13
refac: Remove the old `-t` behaviour. #1864
Oct 1, 2021
1047b33
fix: Remove old `-t` reference.
Oct 1, 2021
7900c31
fix: Fix and refac the parameters checking. #1864
Oct 1, 2021
1dd8ad6
refac: Refactorize some args and add `-il` arg. #1864
Oct 1, 2021
2876ce4
fix: Replace backslash in paths used as arguments
mdengra Sep 27, 2021
f39dfbb
add: Install the SearchUI dependencies if necessary. #1877
Oct 4, 2021
1f7bc4f
Merge pull request #1968 from wazuh/1877-deps-installation
Oct 4, 2021
750c77b
fix: Fix index name hardcoding. #1864
Oct 4, 2021
8bd5fa0
add: Add the predefined values checking. #1864
Oct 4, 2021
5628688
add: Add `qa-docs` docker deployment. #1797
Oct 5, 2021
8f8c8cf
refac: Now you can specify the branch you want to parse. #1797
Oct 5, 2021
1f2bb30
refac: Remove useless dockerfile line. #1797
Oct 5, 2021
2297dbd
refac: Separate the build into two images. #1797
Oct 5, 2021
78a62ed
fix: Fix `npm install` path. #1797
Oct 5, 2021
e07253f
Merge pull request #1983 from wazuh/1797-qadocs-deployment
Oct 5, 2021
da2fdba
refac: Update `qa-docs` README. #1864
Oct 6, 2021
f55b97a
refac: README changes. #1864
Oct 6, 2021
60008cd
add: Add `qa-docs` VERSION.json. #1864
Oct 6, 2021
1f63594
refac: Update `qa-docs` README. #1864
Oct 6, 2021
67489c3
refac: Update `qa-docs` README.
Oct 6, 2021
91097db
refac: Update `qa-docs` README.
Oct 6, 2021
a11410f
refac: Change `qa-docs` logging.
Oct 7, 2021
b82032c
refac: Check if the index exists before launch the API. #1864
Oct 7, 2021
c0d97d4
Add: Add `qa-docs` CHANGELOG.md. #1864
Oct 7, 2021
d80ce30
refac: Update `qa-docs` VERSION.json. #1864
Oct 7, 2021
3a8bf9c
refac: Update `qa-docs` README.md. #1864
Oct 7, 2021
a8ab62d
refac: Update `qa-docs` version parameter. #1864
Oct 7, 2021
575cfbd
refac: Refactorize the `qa-docs` script. #1864
Oct 7, 2021
5a125f7
refac: Update `qa-docs` script. #1864
Oct 7, 2021
d0d1f65
refac: Update `deploy_qa_docs.sh` image version.
Oct 7, 2021
3e49757
refac: Update `qa-docs` README.md.
Oct 7, 2021
bc2d689
fix: Fix log file format. #1864
Oct 8, 2021
8b4c1e9
fix: Fix sanity check in windows. #1864
Oct 8, 2021
988b299
fix: Fix schema `expected_output` name.
Oct 8, 2021
f1ec96a
fix: Fix qa-docs image version tag.
Oct 8, 2021
ad44ae9
fix: Fix `qa-docs` script. #1864
Oct 8, 2021
94c0c1a
style: Fix some style issues. #1864
Oct 8, 2021
70ea6cb
refac: Change the `qa-docs` docker deployment. #1864
Oct 11, 2021
ce13981
Update qa-ctl help menu #2008
jmv74211 Oct 11, 2021
e3f1138
Fix typo in `qa-ctl` vagrantfile template #2008
jmv74211 Oct 11, 2021
ce26685
refac: Refactorize docker deployment. #1864
Oct 13, 2021
ef1d2cf
refac: Modularize `qa-docs` script. #1864
Oct 13, 2021
cd0e361
fix: Fix windows servers `os_version` values.
Oct 13, 2021
e98d92a
Merge pull request #2026 from wazuh/2008-qa-ctl-improve-menu
Oct 13, 2021
994a4e0
add: add no-validation flag to the qa-ctl docker run for Windows #2011
jmv74211 Oct 13, 2021
d2b9e4e
add: Updated qa-ctl temporary folder name
Oct 13, 2021
bb63260
Merge pull request #2028 from wazuh/2011-qa-ctl-propagate-parameters
Oct 13, 2021
bbc40d3
add: Add ES RAM limit to entrypoint. #1864
Oct 13, 2021
16194a7
doc: Add ES RAM configuration to README. #1864
Oct 13, 2021
95c33ac
Merge branch '2021-qa-ctl-v2' of https://github.com/wazuh/wazuh-qa in…
Oct 13, 2021
dfca4e8
fix: fixed temporary qa-ctl folder error on windows
Oct 13, 2021
0099edb
doc: Update `qa-docs` diagram. #1864
Oct 13, 2021
8f7fa9c
refac: Rename github_repository module to github_api_requests #2012
jmv74211 Oct 13, 2021
6421d6e
Merge pull request #2029 from wazuh/2013-rename-qa-ctl-temp-folder
jmv74211 Oct 13, 2021
c5ba57c
add: Add github_checks module #2012
jmv74211 Oct 13, 2021
f476886
refac: Update qa-ctl github validations #2012
jmv74211 Oct 13, 2021
d48cdff
Merge branch '2021-qa-ctl-v2' of github.com:wazuh/wazuh-qa into 2012-…
jmv74211 Oct 14, 2021
ceab34f
Merge pull request #2033 from wazuh/2012-qa-ctl-replace-github-requests
Oct 14, 2021
252ece1
refac: Separate parsing and API code. #1864
Oct 14, 2021
5423531
refac: Change the ES RAM limit in `entrypoint.sh`. #1864
Oct 14, 2021
ecfd18a
fix: Fix `qa-docs` compound runs. #1864
Oct 14, 2021
2697393
fix: Revert ES RAM limit.
Oct 14, 2021
b7eedad
fix: Fix qa-docs compound runs.
Oct 14, 2021
6129346
doc: Update `qa-docs` README. #1864
Oct 14, 2021
4405619
Add: Add `qa-docs` diagram and remove old one. #1864
Oct 14, 2021
650f085
doc: Update diagram within README.
Oct 14, 2021
da0103e
Fix: Fix qa-ctl configuration paths #2016
jmv74211 Oct 14, 2021
ed35e8b
fix: Fix version.
Oct 15, 2021
2095b1d
Merge pull request #2036 from wazuh/2016-qa-ctl-fix-paths
Oct 15, 2021
0e09f2a
refac: Move join_path function to file module #2018
jmv74211 Oct 15, 2021
8d5166d
refac: Replace git usage for direct downloads in qa-ctl #2018
jmv74211 Oct 15, 2021
2776c82
Merge pull request #2046 from wazuh/2018-qa-ctl-git-replacement
Oct 15, 2021
b025b55
doc: Update README.MD.
Oct 18, 2021
eb3f644
add: Add --os parameter to qa-ctl #2019
jmv74211 Oct 18, 2021
1a9913a
Merge remote-tracking branch 'origin/master' into 1864-qa-docs-fixes
Oct 19, 2021
2c9866d
Merge pull request #2064 from wazuh/2019-qa-ctl-os-parameter
Oct 19, 2021
790926d
add: Add error logging to few behaviors in the `qa-docs` tool. #2017
Oct 15, 2021
effc407
fix: Fix raise message for predefined values. #2017
Oct 15, 2021
fc06820
refac: Fix how `qa-ctl` uses `qa-docs`. #2017
Oct 15, 2021
0b1e9e9
fix: Fix test name reference. #2017
Oct 18, 2021
8cbb04e
fix: Revert `-e` behavior. #2017
Oct 18, 2021
5d47b55
add: Add two errors checking. #2017
Oct 18, 2021
5717053
add: Add documented tests. #2017
Oct 18, 2021
f46ba89
rm: Remove useless warning.
Oct 18, 2021
fb0ee7c
refac: Refac `-e` option print format.
Oct 18, 2021
42f76f5
fix: Fix some requested changes.
Oct 19, 2021
044a44c
Merge branch '2017-qa-docs-v0.1' of github.com:wazuh/wazuh-qa into 20…
Oct 19, 2021
a2a6ba1
doc: Add method documentation.
Oct 19, 2021
bb4a776
Merge pull request #2074 from wazuh/2017-qa-docs-v0.1
jmv74211 Oct 19, 2021
96fe1e6
add: Add dynamic wazuh local internal configuration for qa-ctl #2009
jmv74211 Oct 19, 2021
eab41c2
fix: Fix `schema.yaml` adding path as optional. #1864
Oct 20, 2021
6af627e
Merge branch 'master' of github.com:wazuh/wazuh-qa into 2021-qa-ctl-v2
jmv74211 Oct 20, 2021
a6b144a
Merge branch '1864-qa-docs-fixes' of github.com:wazuh/wazuh-qa into 2…
jmv74211 Oct 20, 2021
13bf7c1
add: Add `--no-logging` parameter to `qa-docs` tool. #1864
Oct 20, 2021
145df6b
add: Update qa-docs usage for qa-ctl #2080
jmv74211 Oct 20, 2021
105fca3
Merge pull request #2081 from wazuh/2080-update-qa-docs
Oct 20, 2021
2de75e2
Merge branch '2021-qa-ctl-v2' of github.com:wazuh/wazuh-qa into 2009-…
jmv74211 Oct 20, 2021
e3ee00e
add: Add new testing block info in qa-ctl config generator #2009
jmv74211 Oct 21, 2021
bab7311
refac: Convert the components parameter type #2009
jmv74211 Oct 21, 2021
1fae80a
Merge pull request #2102 from wazuh/2009-qa-ctl-local-internal-options
Oct 22, 2021
49ba88c
doc: Add test_registry_restric test documentation #2020
jmv74211 Oct 22, 2021
f9db744
add: Add new fim tags to `qa-docs` `schema.yaml`.
Oct 22, 2021
a144630
doc: update test_registry_restrict documentation
jmv74211 Oct 22, 2021
dbc9700
add: Add automatic configuration generation for Windows tests #2020
jmv74211 Oct 22, 2021
c933603
add: Add new ansible instance classes #2020
jmv74211 Oct 22, 2021
460a299
refac: Update AnsibleInstance usage for the new subclasses #2020
jmv74211 Oct 22, 2021
78bd645
refac: Refactor the ansible inventory generation #2020
jmv74211 Oct 25, 2021
de1bb2f
add: Add Windows provisioning support in `qa-ctl` #2020
jmv74211 Oct 26, 2021
659bf3f
add: Parameterize ansible_admin_user in the `qa-ctl` tool #2020
jmv74211 Oct 26, 2021
e67bd62
add: Add Windows testing support for the qa-ctl tool #2020
jmv74211 Oct 27, 2021
d2c7c19
refac: Update playbooks indentation code #2020
jmv74211 Oct 27, 2021
3fdbeb8
fix: Fix pytest tests results fetching #2020
jmv74211 Oct 27, 2021
a5dfe02
add: Add qa_ctl_launcher_branch config parameter #2143
jmv74211 Oct 28, 2021
1e19331
add: Add qa_ctl_launcher_branch config parameter validation #2143
jmv74211 Oct 28, 2021
2915396
fix: add qa-ctl path fixes #2143
jmv74211 Oct 28, 2021
d3c31ce
Merge pull request #2147 from wazuh/2143-qa-ctl-windows-fix
jmv74211 Oct 28, 2021
1df50b0
doc: Add test_basic_usage of test_fim/test_files documentation in QA …
mdengra Oct 25, 2021
d977bc5
Merge pull request #2152 from wazuh/2020-qa-ctl-windows
Oct 29, 2021
f84fa24
fix: modified pytest traceback results from qa-ctl #2140
Nov 2, 2021
d98d9dd
Merge branch '2021-qa-ctl-v2' of https://github.com/wazuh/wazuh-qa in…
Nov 2, 2021
ce229e8
add: Add `--check-documentation` flag that allows `qa-docs` tool to c…
Nov 2, 2021
db45b73
fix: Fix `--check-documentation` flag when the test is not documented…
Nov 2, 2021
2d697c2
add: Add new qa-ctl test documentation validation #2023
jmv74211 Nov 2, 2021
337738c
Merge pull request #2158 from wazuh/2023-qa-ctl-doc-validation
jmv74211 Nov 2, 2021
17a6d1e
add: added output_trimmer function #2140
Nov 2, 2021
73a8cb4
Merge pull request #2156 from wazuh/2140-qa-ctl-remove-pytest-traceback
jmv74211 Nov 2, 2021
061075f
add: Add os_system parameter test validation in qa-ctl #2139
jmv74211 Nov 3, 2021
931a6ff
Merge pull request #2168 from wazuh/2139-qa-ctl-os-validation
jmv74211 Nov 3, 2021
2c70a9a
add: add new validation parameters to qa-ctl schema validator #2164
Nov 5, 2021
73d56b3
Merge pull request #2179 from wazuh/2164-qa-ctl-update-json-schema-va…
jmv74211 Nov 5, 2021
fd5487c
Merge branch 'master' of github.com:wazuh/wazuh-qa into 2173-qa-ctl-v…
jmv74211 Nov 5, 2021
8a6d4db
style: Fixe style errors in qa-ctl according to the PEP-8 standard. #…
jmv74211 Nov 5, 2021
6314590
style: Standardize the order of imports in qa-ctl #2173
jmv74211 Nov 5, 2021
6ce88fe
refac: Rename local actions methods #2173
jmv74211 Nov 5, 2021
fdbb48a
refac: Bump qa-ctl version to v0.2 #2173
jmv74211 Nov 5, 2021
c612fd2
add: Updated CHANGELOG.md #2173
Nov 5, 2021
385078a
fix: Fix a bug in qa-ctl config generator #2182
jmv74211 Nov 5, 2021
45b3862
Merge branch '2173-qa-ctl-v2-release' of github.com:wazuh/wazuh-qa in…
jmv74211 Nov 5, 2021
81da21a
fix: Fix tests section of qa-ctl config generation #2183
jmv74211 Nov 8, 2021
64db7bf
add: Add ansible env vars to increase the timeout connections #2190
jmv74211 Nov 9, 2021
2788c02
Merge branch 'master' of github.com:wazuh/wazuh-qa into 2173-qa-ctl-v…
jmv74211 Dec 3, 2021
279ba5e
fix: Fix os_version deployment data priority #2173
jmv74211 Dec 3, 2021
b7163e7
fix: Fix some UNIX function usages of the `file` module for Windows #…
jmv74211 Dec 9, 2021
22ada77
add: Add automatic path generation in the QA repo download #2306
jmv74211 Dec 9, 2021
7e67184
add: Add configuration generator for deployment and task running sect…
jmv74211 Dec 9, 2021
b4305e2
fix: Fix some typos in logs of Vagrantfile class #2306
jmv74211 Dec 9, 2021
9c9d834
add: Add functionality to remove qa-ctl hosts from known_hosts file #…
jmv74211 Dec 9, 2021
107dea0
add: Add module to launch ansible tasks using the `qa-ctl` tool #2306
jmv74211 Dec 9, 2021
a3f60d8
add: Update the `qa-ctl` schema validator #2306
jmv74211 Dec 9, 2021
eb3813d
doc: Documentate some non-documented qa-ctl functions #2306
jmv74211 Dec 9, 2021
59115ee
add: Add name field to the qa-ctl playbook configuration #2306
jmv74211 Dec 9, 2021
3699024
add: Bump the qa-ctl version to v0.3 #2306
jmv74211 Dec 9, 2021
d35748c
add: Add CentOS 7 box to qa-ctl #2306 #2242
jmv74211 Dec 10, 2021
4cae169
fix: Fix centos_7 wazuh_deployment in qa-ctl #2306
jmv74211 Dec 10, 2021
c052033
fix: Fix remove_known_host output when the host was not found #2306
jmv74211 Dec 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions deps/wazuh_testing/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
'data/sslmanager.key',
'data/sslmanager.cert',
'tools/macos_log/log_generator.m',
'qa_docs/config.yaml',
'qa_docs/schema.yaml',
'qa_docs/VERSION.json'
'qa_ctl/deployment/dockerfiles/*',
'qa_ctl/deployment/dockerfiles/qa_ctl/*',
'qa_ctl/deployment/vagrantfile_template.txt',
Expand All @@ -44,11 +45,11 @@ 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))
paths.append(os.path.join('..', path, filename))
return paths


package_data_list.extend(get_files_from_directory('wazuh_testing/qa_docs/search_ui/'))
package_data_list.extend(get_files_from_directory('wazuh_testing/qa_docs/search_ui'))

setup(name='wazuh_testing',
version='4.3.0',
Expand All @@ -63,3 +64,4 @@ def get_files_from_directory(directory):
include_package_data=True,
zip_safe=False
)

202 changes: 153 additions & 49 deletions deps/wazuh_testing/wazuh_testing/data/qactl_conf_validator_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"$id": "#/properties/deployment",
"type": "object",
"patternProperties": {
"^host[0-9]*$": {
"^host_[0-9]*$": {
"type": "object",
"properties": {
"provider": {
Expand Down Expand Up @@ -48,7 +48,8 @@
"type": "string"
},
"vm_system": {
"type": "string"
"type": "string",
"enum": ["linux","windows"]
},
"label": {
"type": "string"
Expand Down Expand Up @@ -117,7 +118,7 @@
"properties": {
"hosts": {
"patternProperties": {
"^host[0-9]*$": {
"^host_[0-9]*$": {
"type": "object",
"required": [
"host_info"
Expand All @@ -126,31 +127,49 @@
"host_info": {
"type": "object",
"required": [
"connection_method",
"host",
"user",
"password",
"connection_port",
"ansible_python_interpreter"
"ansible_connection",
"ansible_user",
"ansible_password",
"ansible_port",
"system",
"installation_files_path",
"ansible_python_interpreter",
"host"
],
"properties": {
"connection_method": {
"ansible_connection": {
"type": "string"
},
"host": {
"type": "string"
},
"user": {
"ansible_user": {
"type": "string"
},
"password": {
"ansible_password": {
"type": "string"
},
"connection_port": {
"ansible_port": {
"type": "integer"
},
"ansible_python_interpreter": {
"type": "string"
},
"installation_files_path": {
"type": "string"
},
"system": {
"type": "string",
"enum": [
"rpm",
"deb",
"windows",
"macos",
"solaris10",
"solaris11",
"rpm5",
"wpk-linux",
"wpk-windows"]
}
}
},
Expand All @@ -159,7 +178,8 @@
"required": [
"type",
"target",
"installation_files_path"
"installation_files_path",
"wazuh_install_path"
],
"properties": {
"type": {
Expand Down Expand Up @@ -252,49 +272,127 @@
}
}
},
"tasks": {
"type": "object",
"patternProperties": {
"^task_[0-9]*$": {
"type": "object",
"required": ["host_info", "playbooks"],
"properties": {
"host_info": {
"type": "object",
"required": [
"ansible_connection",
"ansible_user",
"ansible_port",
"ansible_python_interpreter",
"host",
"system"
],
"properties": {
"ansible_connection": {
"type" : "string"
},
"host": {
"type" : "string"
},
"ansible_user": {
"type": "string"
},
"ansible_password": {
"type": "string",
"default": "empty"
},
"ssh_private_key_file_path":{
"type": "string"
},
"ansible_port": {
"type": "integer"
},
"ansible_python_interpreter": {
"type": "string"
},
"system": {
"type": "string"
}
},
"oneOf": [
{
"required": ["ansible_password"]
},
{
"required": ["ssh_private_key_file_path"]
}
]
},
"playbooks": {
"type": "array",
"items": {
"oneOf": [
{
"required": ["local_path"]
},
{
"required": ["remote_url"]
}
]
}
}
}
}
}
},
"tests": {
"type": "object",
"patternProperties": {
"^host[0-9]*$": {
"^host_[0-9]*$": {
"type": "object",
"required": ["host_info", "test"],
"properties": {
"host_info": {
"type": "object",
"required": [
"connection_method",
"ansible_connection",
"ansible_user",
"ansible_port",
"installation_files_path",
"ansible_python_interpreter",
"host",
"user",
"connection_port",
"ansible_python_interpreter"
"system"
],
"properties": {
"connection_method": {
"ansible_connection": {
"type" : "string"
},
"host": {
"type" : "string"
},
"user": {
"ansible_user": {
"type": "string"
},
"password": {
"ansible_password": {
"type": "string",
"default": "empty"
},
"ssh_private_key_file_path":{
"type": "string"
},
"connection_port": {
"ansible_port": {
"type": "integer"
},
"ansible_python_interpreter": {
"type": "string"
},
"installation_files_path": {
"type": "string"
},
"system": {
"type": "string"
}
},
"oneOf": [
{
"required": ["password"]
"required": ["ansible_password"]
},
{
"required": ["ssh_private_key_file_path"]
Expand All @@ -303,7 +401,10 @@
},
"test": {
"type": "object",
"required": ["path"],
"required": [
"path",
"type"
],
"properties": {
"hosts": {
"type": "string"
Expand Down Expand Up @@ -367,30 +468,33 @@
}
}
}
}
},
"config": {
"$id": "#/properties/config",
"type": "object",
"patternProperties": {
"vagrant_output": {
"type": "boolean"
},
"ansible_output": {
"type": "boolean"
},
"logging":{
"type": "object",
"properties": {
"enable": {
"type": "boolean"
},
"level": {
"type": "string",
"enum": ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
},
"file": {
"type": "string"
},
"config": {
"$id": "#/properties/config",
"type": "object",
"patternProperties": {
"qa_ctl_launcher_branch": {
"type": "string"
},
"vagrant_output": {
"type": "boolean"
},
"ansible_output": {
"type": "boolean"
},
"logging":{
"type": "object",
"properties": {
"enable": {
"type": "boolean"
},
"level": {
"type": "string",
"enum": ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
},
"file": {
"type": "string"
}
}
}
}
Expand Down
46 changes: 46 additions & 0 deletions deps/wazuh_testing/wazuh_testing/qa_ctl/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,54 @@
# Change Log
All notable changes to this tool will be documented in this file.

## [v0.3] - 2021-12-10

### Added

- Added new module to be able to launch custom ansible tasks with `qa-ctl`.
- Added new methods to avoid the SSH fingerprint check ansible error.
- Added generation of independent configuration blocks for instance and task deployment.
- Added CentOS 7 support.
### Changed

- Improved modularization of functions for reading data from ansible instances.


### Fixed

- Fixed some typos in qa-ctl logs.
- Fixed some uses of UNIX libraries in `file` module under Windows.


## [v0.2] - 2021-11-05

### Added
- Added operating systems validation for specified OS in tests ([#2168](https://github.com/wazuh/wazuh-qa/pull/2168))
- Added Windows testing support in `qa-ctl` ([#2152](https://github.com/wazuh/wazuh-qa/pull/2152))
- Updated `qa-docs` usage in `qa-ctl` ([#2081](https://github.com/wazuh/wazuh-qa/pull/2081))
- Added `--os` parameter to specify the systems where to launch the tests ([#2064](https://github.com/wazuh/wazuh-qa/pull/2064))
- Added no-validation flag for `qa-ctl` docker run on windows ([#2028](https://github.com/wazuh/wazuh-qa/pull/2028))
- Added documentation tests validation precondition for automatic mode ([#2023](https://github.com/wazuh/wazuh-qa/issues/2023))


### Changed
- Updated `JSON Schema validator` ([#2164](https://github.com/wazuh/wazuh-qa/issues/2164))
- Removed `pytest` error traceback test results ([#2156](https://github.com/wazuh/wazuh-qa/pull/2156))
- Updated `local internal options` configutation of Wazuh ([#2102](https://github.com/wazuh/wazuh-qa/pull/2102))
- Replaced `git clone` usage for direct downloads ([#2046](https://github.com/wazuh/wazuh-qa/pull/2046))
- Changed `GitHub API requests` with `checks on resource URLs` for qa-ctl parameter validations ([#2033](https://github.com/wazuh/wazuh-qa/pull/2033))
- Renamed `qa-ctl` temporary files directory ([#2029](https://github.com/wazuh/wazuh-qa/pull/2029))
- Updated `qa-ctl` help menu information ([#2026](https://github.com/wazuh/wazuh-qa/pull/2026))


### Fixed
- Fixed `Docker` issues for `qa-ctl` (manual mode) in `Windows` ([#2147](https://github.com/wazuh/wazuh-qa/pull/2147))
- Fixed `qa-ctl` configuration path separators for `windows` ([#2036](https://github.com/wazuh/wazuh-qa/pull/2036))


## [v0.1]


### Added
- Added new folder level for temporary files ([#1993](https://github.com/wazuh/wazuh-qa/pull/1993))
- Added new implementation for generating `qa-ctl` configuration paths ([#1982](https://github.com/wazuh/wazuh-qa/pull/1982))
Expand Down
2 changes: 1 addition & 1 deletion deps/wazuh_testing/wazuh_testing/qa_ctl/VERSION.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "0.1",
"version": "0.3",
"revision": 1
}
Loading