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

DTT1 release to wazuh-qa repository #5190

Merged
merged 268 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
268 commits
Select commit Hold shift + click to select a range
6311d92
Fix requested review changes
fcaffieri Apr 10, 2024
bfbe444
Replace os.getlogin by getpass.getuser
Apr 11, 2024
4db5df4
Fix SUSE file name and PoC example
fcaffieri Apr 11, 2024
97ccd97
Rollback in case of connection error
c-bordon Apr 12, 2024
fb7f85d
Merge pull request #5211 from wazuh/enhancement/5203-replace-getlogin…
rauldpm Apr 12, 2024
0b1abf4
fix(#5210): Fixing yamls
pro-akim Apr 12, 2024
8209f63
fix(#5210): Additional fixes created by copy and pasting
pro-akim Apr 12, 2024
f80e7a8
fix(#5210): Removing system files
pro-akim Apr 12, 2024
90931c8
fix(#5210): Restoring os in test
pro-akim Apr 12, 2024
17db6c3
fix(#5210): Restoring os in test
pro-akim Apr 12, 2024
864dbc2
Fixed delete windows machines
c-bordon Apr 12, 2024
f23035e
fix(#5210): Fixes after testing
pro-akim Apr 15, 2024
318679a
fix(#5210): Removing library time from main in provision
pro-akim Apr 15, 2024
d51a4f3
Fixed support for User data for Windows systems
c-bordon Apr 15, 2024
8d83fd5
Changed return value
c-bordon Apr 15, 2024
ebd91a2
Fix loggers
Apr 15, 2024
f2701cf
Remove logger files from helpers and replace.
Apr 16, 2024
0663674
Merge branch '4495-dtt1-release' of github.com:wazuh/wazuh-qa into en…
c-bordon Apr 16, 2024
1ffd41c
Added pywinrm as dependencie and removed Windows 11 references
c-bordon Apr 16, 2024
2988be0
Fixed deploy for macOS in AWS
c-bordon Apr 16, 2024
48401ac
Merge pull request #5217 from wazuh/fix/5197-logger-config
rauldpm Apr 16, 2024
81dccd5
Merge pull request #5213 from wazuh/fix/5210-Fixing-yaml-examples
davidjiglesias Apr 17, 2024
6c8b29b
Merge pull request #5231 from wazuh/bug/5228-ddt1-allocatiton-module-…
teddytpc1 Apr 17, 2024
74916cd
Fix logger imports
Apr 17, 2024
7170ffc
Reduced the sleep time and increased the attempts
c-bordon Apr 17, 2024
0b7738c
Merge pull request #5216 from wazuh/enhancement/5198-dtt1-allocation-…
teddytpc1 Apr 17, 2024
aaac826
Fixed know_host files for ssh connection
c-bordon Apr 18, 2024
98abbd8
enhancement(#5229): macOS tests added
pro-akim Apr 18, 2024
2c925fa
enhancement(#5229): Enhancement of os validation
pro-akim Apr 18, 2024
8aa767e
enhancement(#5229): logger fixes
pro-akim Apr 18, 2024
b71b120
Merge pull request #5267 from wazuh/fix/5232-fix-remaining-logger-imp…
rauldpm Apr 18, 2024
5045ba3
fix(#5215): Adding granularity
pro-akim Apr 18, 2024
852bbe5
fix(#5215): Adding missing part
pro-akim Apr 18, 2024
a0e82bb
fix(#5215): Removing duplicated part
pro-akim Apr 18, 2024
ba5e410
fix(#5215): indentation fixes
pro-akim Apr 18, 2024
cd9f2e3
fix(#5215): space fixes
pro-akim Apr 18, 2024
5d21f05
fix(#5215): space fixes2
pro-akim Apr 18, 2024
db0825d
fix(#5215): space fixes3
pro-akim Apr 18, 2024
b28f2ad
fix(#5215): Fixing test log imports
pro-akim Apr 18, 2024
684ea5d
enhancement(#5229): Improving get_os_type and arch
pro-akim Apr 19, 2024
e2ee3be
Merge branch '4495-dtt1-release' into enhancement/5229-macOS-tests-added
pro-akim Apr 19, 2024
f9f548e
fix(#5229): Fixing clientkey checks
pro-akim Apr 19, 2024
3e43787
Merge branch '4495-dtt1-release' into fix/5215-Adding-granularity-in-…
pro-akim Apr 19, 2024
ea0a03f
Merge pull request #5274 from wazuh/enhancement/5198-dtt1-allocation-…
teddytpc1 Apr 19, 2024
59ab2be
Merge branch '4495-dtt1-release' of github.com:wazuh/wazuh-qa into bu…
c-bordon Apr 19, 2024
8e24f34
Merge pull request #5275 from wazuh/bug/5228-ddt1-allocatiton-module-…
teddytpc1 Apr 19, 2024
74e5d5d
Merge branch '4495-dtt1-release' of github.com:wazuh/wazuh-qa into bu…
c-bordon Apr 19, 2024
345ce11
Merge pull request #5276 from wazuh/bug/5235-dtt1-allocation-module-m…
teddytpc1 Apr 19, 2024
be7284a
Merge branch '4495-dtt1-release' into enhancement/5229-macOS-tests-added
pro-akim Apr 19, 2024
a5866f5
Merge pull request #5268 from wazuh/fix/5215-Adding-granularity-in-ag…
rauldpm Apr 19, 2024
eb324d9
Merge branch '4495-dtt1-release' into enhancement/5229-macOS-tests-added
pro-akim Apr 19, 2024
1f80707
fix(#5229): Adapting some validations
pro-akim Apr 19, 2024
6d22b61
fix(#5229): Fixing connection check ostype
pro-akim Apr 22, 2024
1e32d4d
fix(#5229): Fixing validations in basic_info
pro-akim Apr 22, 2024
0062465
fix(#5229): Renaming test file
pro-akim Apr 22, 2024
ddd25c4
fix(#5229): Fixes around install validation and test yamls
pro-akim Apr 22, 2024
6b5cc1b
fix(#5229): Fixes around test yamls
pro-akim Apr 22, 2024
26def58
fix(#5229): AWS test comment
pro-akim Apr 22, 2024
333a6b7
fix(#5229): Vagrant test comment
pro-akim Apr 22, 2024
13f67e2
Added Windows sign AMI
c-bordon Apr 23, 2024
e61da0c
Merge pull request #5285 from wazuh/change/5284-dtt1-allocation-modul…
teddytpc1 Apr 23, 2024
656a117
Added random assignment for IP address for Vagrant local deployment
c-bordon Apr 23, 2024
e71e39a
Merge pull request #5288 from wazuh/bug/5237-dtt1-the-allocator-assig…
teddytpc1 Apr 24, 2024
f6a5efb
fix-Removing python-pip from requirements
pro-akim Apr 26, 2024
9b48f37
Merge pull request #5299 from wazuh/fix/remote_requirements
rauldpm Apr 26, 2024
0dabce1
enhancement(#5229): Merging macos and windows
pro-akim Apr 26, 2024
74455bb
Merge pull request #5264 from wazuh/enhancement/5229-macOS-tests-added
rauldpm Apr 26, 2024
b604866
fix(#5229): Linux os fixed
pro-akim Apr 29, 2024
9e07b4d
fix(#5229): Filters fixed
pro-akim Apr 29, 2024
8196c70
Fix task dependencies
Apr 29, 2024
7490c95
fix(#5229): Fixing validations after uninstall
pro-akim Apr 29, 2024
e07fb3f
fix(#5229): Fixing basic_info validations
pro-akim Apr 29, 2024
a6d89aa
fix(#5229): Fixing validations of basic info and install
pro-akim Apr 30, 2024
0ac62a3
fix(#5229): White spaces added
pro-akim Apr 30, 2024
c55fd32
enhancement(#5229): Removing unused imports
pro-akim Apr 30, 2024
26986c2
Storage is added according to the size of the AWS instance
c-bordon Apr 30, 2024
e253748
enhancement(#5229): Fixing dir_exists validation for windows
pro-akim Apr 30, 2024
19c4f0d
Replace black mini parameters
c-bordon Apr 30, 2024
263373d
enhancement(#5229): Fixing validations in basic_info agent name
pro-akim Apr 30, 2024
4c865f1
Merge pull request #5315 from wazuh/enhancement/5314-add-disk-space-o…
teddytpc1 Apr 30, 2024
1d7f29e
enhancement(#5229): Fixing validations in basic_info agent name part 2
pro-akim Apr 30, 2024
b9b6a7c
enhancement(#5229): Removing integration test
pro-akim Apr 30, 2024
65ca9b4
fix(#5229): Fixes after review
pro-akim May 2, 2024
4f0dbde
Merge branch '4495-dtt1-release' into enhancement/5229-Windows-and-ma…
pro-akim May 2, 2024
d24b525
fix(#5229): Fixing to snake_case
pro-akim May 2, 2024
f111a83
fix(#5229): Restore allocation settings
pro-akim May 2, 2024
433f6d7
enhancement(#5219): Integrating AIO tests with macOS and Windows Agen…
pro-akim May 2, 2024
cff53a3
fix(#5229): Removing repeated imports
pro-akim May 2, 2024
3ed8c05
fix(#5219): Removing repeated imports
pro-akim May 2, 2024
e2a5722
fix(#5229): Removing duplicated get_agent_ip_status_and_name_by_id me…
pro-akim May 2, 2024
b1712ec
fix(#5229): camel_case to snake_case
pro-akim May 2, 2024
9b15424
fix(#5219): Adding fixes from macOS and windows PR
pro-akim May 2, 2024
1a1bb8a
fix(#5229): Circular reference fix
pro-akim May 2, 2024
abccdea
fix(#5219): Port tests fixed
pro-akim May 2, 2024
c1a494d
MacOS Intel machine deployments are updated
c-bordon May 2, 2024
adf7860
macOS sign box added to Allocation module
c-bordon May 2, 2024
47a2c61
Removed commented configurations in intel vagrantfile
c-bordon May 2, 2024
a7917f5
Merge pull request #5326 from wazuh/change/5325-dtt1-allocator-module…
teddytpc1 May 2, 2024
7534151
fix(#5219): os_version fixed
pro-akim May 2, 2024
ca276c8
fix(#5219): additional regex fixes
pro-akim May 2, 2024
0250f72
fix(#5219): Removing debug log
pro-akim May 2, 2024
d3a2c09
fix(#5229): Fixes after review, repeated tests removed, depends on wi…
pro-akim May 3, 2024
8447966
fix(#5229): macOS AWS connection fix
pro-akim May 3, 2024
f8484fd
fix(#5229): Adding white spaces
pro-akim May 3, 2024
5829eb4
fix(#5219): version fixes in examples + ssh connection for aws macOS …
pro-akim May 3, 2024
d3a8901
Added new virtualbox validations
c-bordon May 3, 2024
9d45002
Merge pull request #5310 from wazuh/enhancement/5229-Windows-and-macO…
rauldpm May 3, 2024
edb6a61
fix(#5219): Fixing conflicts after merge
pro-akim May 3, 2024
4da365d
fix(#5219): Solving additional merge conflicts
pro-akim May 3, 2024
38d421c
Merge pull request #5308 from wazuh/fix/5240-workflow-example-depende…
rauldpm May 3, 2024
64ef9ee
fix(#5219): Adding depend on in manager
pro-akim May 3, 2024
b46f14d
Merge branch '4495-dtt1-release' into enhancement/5219-Central-compon…
pro-akim May 3, 2024
2caeab6
Added validation for Allocation module dependencies
c-bordon May 3, 2024
bdac6c1
Added error message for yum sistems
c-bordon May 3, 2024
0efab9a
Added validation for awscli
c-bordon May 3, 2024
8c442c4
Merge branch '4495-dtt1-release' of github.com:wazuh/wazuh-qa into bu…
c-bordon May 3, 2024
97c3ee9
Fix validation for aws cli
c-bordon May 3, 2024
5df5af7
Merge branch '4495-dtt1-release' of github.com:wazuh/wazuh-qa into ch…
c-bordon May 3, 2024
72f6ed8
Removed YUM validation and added error message for not apt systems
c-bordon May 3, 2024
ec38484
List command dependencies on the README file
May 3, 2024
9b3b339
Add the Python and pip version to all README fles
May 3, 2024
d435b4e
The validation of dependencies according to the deploy is improved
c-bordon May 3, 2024
0b6f86c
README improvements.
May 3, 2024
8beaf29
Merge pull request #5338 from wazuh/enhancement/5323-update-command-l…
rauldpm May 3, 2024
5c3676d
Fixed aws cli binary validation
c-bordon May 3, 2024
76edd59
enhancement in the missing dependencies print
c-bordon May 3, 2024
e9c00de
Removed installed_dependencies list
c-bordon May 3, 2024
75ca9ac
Merge pull request #5336 from wazuh/bug/5295-dtt1-allocator-module-th…
teddytpc1 May 3, 2024
0883d30
Force instance name to be defined in vagrant deploy
c-bordon May 6, 2024
b962c4e
Added debug message
c-bordon May 6, 2024
a7d727d
Added loop for dir validation
c-bordon May 6, 2024
1fa9628
Merge conflict resolved
c-bordon May 6, 2024
6c5698e
enhancement on the remote host message
c-bordon May 6, 2024
8e1fa9b
Changed , to .
c-bordon May 6, 2024
41bf6c3
fix(#5219): Removing commented checkfiles
pro-akim May 7, 2024
96c4725
Merge branch 'enhancement/5219-Central-components-AIO-Windows-macOS-i…
pro-akim May 7, 2024
6d75988
Merge pull request #5324 from wazuh/enhancement/5219-Central-componen…
rauldpm May 7, 2024
7f46ed4
Added support for Windows sign AMI and validation with ssh for this AMI
c-bordon May 7, 2024
a897849
Merge branch '4495-dtt1-release' of github.com:wazuh/wazuh-qa into ch…
c-bordon May 7, 2024
079f1ae
Changed composite name description
c-bordon May 7, 2024
f4fac31
macOS Intel available boxes updated
c-bordon May 7, 2024
26f16ce
Merge branch '4495-dtt1-release' of github.com:wazuh/wazuh-qa into ch…
c-bordon May 7, 2024
976e50b
Merge pull request #5343 from wazuh/change/5340-dtt1-identify-allocat…
teddytpc1 May 7, 2024
7eb886b
Merge pull request #5342 from wazuh/enhancement/5311-dtt1-identify-al…
teddytpc1 May 7, 2024
b43a25b
Improvement in virtualbox box validation
c-bordon May 7, 2024
3746d95
Added new validations for vagrant status and ssh remote command
c-bordon May 7, 2024
58ecd99
Merge pull request #5327 from wazuh/change/5226-dtt1-iteration-3-allo…
teddytpc1 May 8, 2024
18f5a09
Merge branch '4495-dtt1-release' of github.com:wazuh/wazuh-qa into bu…
c-bordon May 8, 2024
9131aa8
Fix the command that installs the arm agent.
May 8, 2024
6d05043
Added new SSH connection method with paramiko library
c-bordon May 8, 2024
772de9a
Changed Command failed message
c-bordon May 8, 2024
365c8a1
Merge pull request #5353 from wazuh/fix/5352-fix-arm-agent-installation
rauldpm May 8, 2024
34867ce
Improvement in error message
c-bordon May 8, 2024
6467eda
Vagrant status None output is improved
c-bordon May 9, 2024
cfd54c0
macOS composite names simplified
davidcr01 May 9, 2024
f079746
Updated Windows 2019 box version
davidcr01 May 10, 2024
851c3cd
Added `--instance-name` as compulsory in Vagrant deploy
davidcr01 May 10, 2024
a9e85e6
Merge pull request #5361 from wazuh/bug/5341-dtt1-allocation-vagrant-…
teddytpc1 May 10, 2024
6fe1ba0
Improved `--instance-name` and `label-issue` documentation
davidcr01 May 10, 2024
7df50d1
Improved parameter error message
davidcr01 May 10, 2024
94bb6b8
Improved port mapping
c-bordon May 10, 2024
3430a10
Improved port validation
c-bordon May 10, 2024
93643a4
Adding an exit for unexpected errors in the remote_command method
c-bordon May 13, 2024
aa2faf1
Merge pull request #5356 from wazuh/bug/5347-dtt1-iteration-3-allocat…
teddytpc1 May 13, 2024
1d64211
Added macOS Sonoma 14.5 beta to allocator
davidcr01 May 14, 2024
e1a1ef0
Merge pull request #5375 from wazuh/change/automation-1651-add-macos-…
c-bordon May 14, 2024
554b8ef
Merge pull request #5362 from wazuh/enhancement/5358-dtt1-allocation-…
c-bordon May 14, 2024
b2029ec
Fixed agent RPM aarch64 nomenclature
rauldpm May 15, 2024
c591f39
Merge pull request #5388 from wazuh/bug/5380-fix-package-nomenclature
rauldpm May 15, 2024
0bbab70
Adding new validation method for inventory and track files, and addin…
c-bordon May 15, 2024
e1971c1
Add the possibility of installing from live and pre-release is added
fcaffieri May 16, 2024
b68712d
Merge branch '4495-dtt1-release' of https://github.com/wazuh/wazuh-qa…
fcaffieri May 16, 2024
5d981c1
Add to ignore workflow instalation files
fcaffieri May 16, 2024
8ab9e0e
Changed ARM family type to t4g in allocator
davidcr01 May 16, 2024
e82c63d
Fix agent installation
fcaffieri May 16, 2024
41234c5
Remove log file
fcaffieri May 16, 2024
a920164
Set live to False by default
fcaffieri May 16, 2024
a7aa606
Fix review comments
fcaffieri May 16, 2024
68157a3
Fix review comments 2
fcaffieri May 16, 2024
84e8a14
Remove bool from definition
fcaffieri May 16, 2024
faea3df
Remove unused implementation method
fcaffieri May 16, 2024
8ff9bf1
Added known issues paragraph to allocation documentation
davidcr01 May 16, 2024
01175f7
Merge pull request #5393 from wazuh/bug/automation-1659-change-arm-fa…
teddytpc1 May 16, 2024
5640275
Added single quotes to the size options in the Allocator documentation
davidcr01 May 16, 2024
a580b22
Merge pull request #5394 from wazuh/enhancement/automation-1659-add-k…
teddytpc1 May 16, 2024
88c852a
Fix all yaml template examples
fcaffieri May 16, 2024
6d206a3
Fix all yaml template examples for provision
fcaffieri May 16, 2024
4f8a0bf
Modifications in the validation methods of auxiliary files
c-bordon May 16, 2024
594a999
Merge pull request #5392 from wazuh/enhancement/5366-change-install-f…
rauldpm May 16, 2024
137aa07
Merge branch '4495-dtt1-release' of github.com:wazuh/wazuh-qa into ch…
c-bordon May 16, 2024
d3bb0c6
Updated the documentation for auxiliar files
c-bordon May 16, 2024
bd717ea
Fixed formating
c-bordon May 16, 2024
f6869a6
Line break added
c-bordon May 16, 2024
d5fca2c
Changed break symbol
c-bordon May 16, 2024
faa08bc
Merge pull request #5389 from wazuh/change/5367-dtt1-iteration-3-allo…
teddytpc1 May 16, 2024
8828172
Added virtualizer parameter for AWS
c-bordon May 17, 2024
cb3dead
Merge pull request #5400 from wazuh/bug/5399-dtt1-iteration-3-allocat…
teddytpc1 May 17, 2024
8ea49cc
Fixed dir creation for auxiliar files
c-bordon May 20, 2024
baa3750
Validations are improved
c-bordon May 20, 2024
3b3d014
Merge pull request #5406 from wazuh/bug/5405-allocator-creating-insta…
teddytpc1 May 20, 2024
f52ed0a
Add modifications to obtain os-version from all agents (Linux, MacOs …
fcaffieri May 20, 2024
3c4aa6b
Fix live validation
fcaffieri May 20, 2024
79902fc
Remove commented code
fcaffieri May 20, 2024
69322fa
Fix examples, remove commented lines
fcaffieri May 20, 2024
22f7dc2
Fix vagrant example
fcaffieri May 20, 2024
9e922d9
Fix all examples
fcaffieri May 21, 2024
4406a97
Fix MacOS description class
fcaffieri May 21, 2024
e81d0ef
Merge pull request #5407 from wazuh/enhancement/5359-get-os-version-f…
rauldpm May 21, 2024
0c293f6
Add modification to fix renndering templates and report failures into…
fcaffieri May 22, 2024
f40b808
Fix templates
fcaffieri May 22, 2024
a0e8589
Fix templates
fcaffieri May 23, 2024
dedbdb9
Merge pull request #5423 from wazuh/bug/5411-ansible-fails-not-report…
rauldpm May 23, 2024
61c31c6
Updated Windows Sign AMI
c-bordon May 23, 2024
ae71170
Merge pull request #5426 from wazuh/Update-Win-Sign-AMI
c-bordon May 23, 2024
df8daae
Added Ubuntu 24.04 AMD64 and ARM64 to the Allocator
davidcr01 May 23, 2024
afd6c1f
Merge pull request #5428 from wazuh/maintenance/5425-add-ubuntu-2410-…
c-bordon May 23, 2024
fa24f0a
Updated Rocky Linux 9 OSs in the Allocator module
davidcr01 May 28, 2024
1cc1264
Merge pull request #5436 from wazuh/maintenance/5435-update-rocky-lin…
c-bordon May 28, 2024
67e6a0c
Changed Windows 10 AMI
c-bordon Jun 3, 2024
1cbc1fc
Merge pull request #5455 from wazuh/change/1210-idr-Update-Windows-10…
c-bordon Jun 3, 2024
e23d6bf
Added support for AlmaLinux
c-bordon Jun 4, 2024
4cfabc2
Merge pull request #5462 from wazuh/change/w-23869-AlmaLinux-in-Alloc…
c-bordon Jun 6, 2024
1c6a2d8
Fixed Device name for AWS deployment
c-bordon Jun 6, 2024
703319d
Merge pull request #5468 from wazuh/bug/5464-allocation-fix-disk-allo…
c-bordon Jun 6, 2024
6bb63bf
Updated Centos stream 8 AMIs with yum repositories
c-bordon Jun 6, 2024
25b804b
Merge pull request #5470 from wazuh/change/5463-fix-centos-8-ami
c-bordon Jun 7, 2024
587f567
Fixed aws cli validation
c-bordon Jun 7, 2024
70dbcde
Merge pull request #5472 from wazuh/bug/5427-allocation-module-allow-…
c-bordon Jun 7, 2024
5440f9f
4.8.0 adaptation and fixes
fcaffieri Jun 7, 2024
84272ed
Remove prints used for test
fcaffieri Jun 7, 2024
dd50ba4
Remove line
fcaffieri Jun 7, 2024
7782d9a
Merge branch '4495-dtt1-release' of https://github.com/wazuh/wazuh-qa…
fcaffieri Jun 11, 2024
126fb6d
Add test_indexer_conexion
fcaffieri Jun 11, 2024
b41369c
Simplified validation of indexer status
fcaffieri Jun 11, 2024
1fba0b8
Merge pull request #5474 from wazuh/enhancement/5391-dtt1-adaptation-…
rauldpm Jun 11, 2024
e4b3bfa
The rollback method is improved in the case of not being able to obta…
c-bordon Jun 11, 2024
ee8ec85
Changed the host identifier validation
c-bordon Jun 11, 2024
7a2b06c
Fixed rollback messages
c-bordon Jun 11, 2024
144039c
Removed extra dot
c-bordon Jun 11, 2024
c785649
Merge pull request #5480 from wazuh/bug/5478-allocation-module-error-…
teddytpc1 Jun 11, 2024
5d9d780
Rename workflow_engine to jobflow.
Jun 13, 2024
8d16c07
Some typos fixes
fcaffieri Jun 14, 2024
528aa41
Remove modules chache
fcaffieri Jun 14, 2024
7e1a276
Merge pull request #5460 from wazuh/enhancement/5458-change-workflow-…
rauldpm Jun 14, 2024
31fdcb1
Fix examples and JobFlow bugs
fcaffieri Jun 14, 2024
27044dd
Merge pull request #5503 from wazuh/bug/5473-dtt1-jobflow-cleanup-fix…
rauldpm Jun 16, 2024
3558475
Added RHEL 8.10 to the Allocator module
davidcr01 Jun 18, 2024
7d3ea30
Merge pull request #5508 from wazuh/maintenance/wazuh-23880-add-rhel-…
c-bordon Jun 18, 2024
ef3c06a
Updated pywinrm version
c-bordon Jun 19, 2024
de98d4e
Merge pull request #5512 from wazuh/change/6616-jenkins-update-winrm-…
c-bordon Jun 19, 2024
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ __pycache__
venv
wazuh_testing.egg-info
dist
deployability/modules/build
deployability/modules/jobflow.egg-info

# Python bytecode files
*.pyc
Expand Down
319 changes: 319 additions & 0 deletions deployability/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,319 @@
## Deployability general documentation

### User documentation

To perform Deployability type tests, it is necessary to:

- Install Python libraries

For this purpose, it is recommended to use virtual environments. Follow the technical [documentation](https://docs.python.org/es/3/library/venv.html):

1. Activate the environment:

```
source {venv directory}/bin/activate
```

2. Clone the wazuh-qa repository:

Navigate to the project directory and switch to the project branch:

```
git clone https://github.com/wazuh/wazuh-qa.git
```

Navigate to the project directory and switch to the project branch:

```
cd wazuh-qa
git checkout {project-branch}
```

3. Install requirements:

```
pip3 install -r deployability/deps/requirements.txt
```

4. Install the JobFlow engine library and its launcher:

While in wazuh-qa:

```
cd modules
pip3 uninstall -y jobflow && pip3 install .
```

5. Test Fixture to Execute

It will be necessary to create a fixture (yaml file) where the infrastructure, provisioning, and tests to be executed will be declared.

> Note: It is possible to find some fixture examples in deployability/modules/jobflow/examples/


Example:

```
version: 0.1
description: This YAML is used to test agents' deployment for DDT1 PoC
variables:
agents-os:
- linux-ubuntu-22.04-amd64
manager-os: linux-ubuntu-22.04-amd64
infra-provider: vagrant
working-dir: /tmp/dtt1-poc

tasks:
# Generic agent test task
- task: "run-agent-tests-{agent}"
description: "Run tests uninstall for the {agent} agent."
do:
this: process
with:
path: python3
args:
- modules/testing/main.py
- inventory: "{working-dir}/agent-{agent}/inventory.yaml"
- dependencies:
- manager: "{working-dir}/manager-{manager-os}/inventory.yaml"
- agent: "{working-dir}/agent-{agent}/inventory.yaml"
- tests: "install,register,stop"
- component: "agent"
- wazuh-version: "4.7.1"
- wazuh-revision: "40709"
depends-on:
- "provision-install-{agent}"
- "provision-manager"
foreach:
- variable: agents-os
as: agent

# Generic agent test task
- task: "run-agent-tests-uninstall-{agent}"
description: "Run tests uninstall for the {agent} agent."
do:
this: process
with:
path: python3
args:
- modules/testing/main.py
- inventory: "{working-dir}/agent-{agent}/inventory.yaml"
- dependencies:
- manager: "{working-dir}/manager-{manager-os}/inventory.yaml"
- tests: "uninstall"
- component: "agent"
- wazuh-version: "4.7.1"
- wazuh-revision: "40709"
depends-on:
- "run-agent-tests-{agent}"
- "provision-uninstall-{agent}"
foreach:
- variable: agents-os
as: agent

# Unique manager provision task
- task: "provision-manager"
description: "Provision the manager."
do:
this: process
with:
path: python3
args:
- modules/provision/main.py
- inventory-manager: "{working-dir}/manager-{manager-os}/inventory.yaml"
- install:
- component: wazuh-manager
type: package
depends-on:
- "allocate-manager"

# Unique manager allocate task
- task: "allocate-manager"
description: "Allocate resources for the manager."
do:
this: process
with:
path: python3
args:
- modules/allocation/main.py
- action: create
- provider: "{infra-provider}"
- size: large
- composite-name: "{manager-os}"
- inventory-output: "{working-dir}/manager-{manager-os}/inventory.yaml"
- track-output: "{working-dir}/manager-{manager-os}/track.yaml"
cleanup:
this: process
with:
path: python3
args:
- modules/allocation/main.py
- action: delete
- track-output: "{working-dir}/manager-{manager-os}/track.yaml"

# Generic agent provision task
- task: "provision-install-{agent}"
description: "Provision resources for the {agent} agent."
do:
this: process
with:
path: python3
args:
- modules/provision/main.py
- inventory-agent: "{working-dir}/agent-{agent}/inventory.yaml"
- inventory-manager: "{working-dir}/manager-{manager-os}/inventory.yaml"
- install:
- component: wazuh-agent
type: package
- component: curl
depends-on:
- "allocate-{agent}"
- "provision-manager"
foreach:
- variable: agents-os
as: agent

# Generic agent provision task
- task: "provision-uninstall-{agent}"
description: "Provision resources for the {agent} agent."
do:
this: process
with:
path: python3
args:
- modules/provision/main.py
- inventory-agent: "{working-dir}/agent-{agent}/inventory.yaml"
- inventory-manager: "{working-dir}/manager-{manager-os}/inventory.yaml"
- uninstall:
- component: wazuh-agent
type: package
depends-on:
- "provision-install-{agent}"
foreach:
- variable: agents-os
as: agent

# Generic agent allocate task
- task: "allocate-{agent}"
description: "Allocate resources for the {agent} agent."
do:
this: process
with:
path: python3
args:
- modules/allocation/main.py
- action: create
- provider: "{infra-provider}"
- size: small
- composite-name: "{agent}"
- inventory-output: "{working-dir}/agent-{agent}/inventory.yaml"
- track-output: "{working-dir}/agent-{agent}/track.yaml"
cleanup:
this: process
with:
path: python3
args:
- modules/allocation/main.py
- action: delete
- track-output: "{working-dir}/agent-{agent}/track.yaml"
foreach:
- variable: agents-os
as: agent
```

Following the schema of the example:

Configure the following parameters depending on your test case:

```
variables/agent-os
variables/manager-os
infra-provider
working-dir
tasks
```

Pay attention to the tasks:

```
args
depends-on
```

> Note: In args, configure the launcher's path correctly (main.py files in each module), and to fill depends-on, consider the steps of your test (allocation, provision, and test)

6. Execution of Command (local):

Execute the command by referencing the parameters required by the library (launcher).

```
python3 -m jobflow {.yaml fixture path}
```

Example

```
python3 -m jobflow modules/jobflow/examples/dtt1-agents-poc.yaml
```


---

### Technical documentation

- Modules

The framework has 4 modules (`allocation`, `provision`, `testing`, `observability`) that must act consecutively, and a 5th module that orchestrates the previous modules (`Jobflow`).

|Module|Description
|--|--|
|JobFlow (Orchestrator)|Receives a YAML containing all the instructions to execute for the test development. It contains instructions for allocation, provision, and testing.
|Allocation| Receives instructions for the desired architecture and creates the structures, generating IPs, and ports either in AWS or locally with Vagrant.
|Provision| Installs applications on the structures created in allocation.
|Testing| Executes tests on the previously defined structures and triggers actions depending on the test.
|Observability| Allows the ordered and indexed visualization of data obtained in the 3 previous modules.

- Directory Structure

```
wazuh-qa/
└── deployability
├── deps
├── Jenkinsfiles
├── modules
│ ├── allocation
│ ├── generic
│ ├── provision
│ ├── testing
│ └── jobflow
└── plugins
```
Deployability contains the following directories:

|Directory|Description|
|---|---|
|deps|Contains information about the dependencies used for installing the necessary libraries for running the framework.|
|Jenkinsfiles|Contains instructions for the pipelines for test execution.|
|modules|Contains files, the launcher (main.py), and playbooks.|
|plugins|Contains modules for the observability plugin.|

#### Overview

![image](https://github.com/wazuh/wazuh-qa/assets/2949519/29b600cf-44bd-412c-b02f-9b08353babde)

#### Allocator, provision & test process

![image](https://github.com/wazuh/wazuh-qa/assets/2949519/9338ccc4-2ffa-47d4-b4cc-86c2a8aa5851)



----


[draw-plot.zip](https://github.com/user-attachments/files/15792115/draw-plot.zip)



### License

WAZUH Copyright (C) 2015 Wazuh Inc. (License GPLv2)
File renamed without changes.
4 changes: 3 additions & 1 deletion deployability/deps/remote_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
pytest>=7.4.2,<8.0.0
chardet==5.2.0
chardet==5.2.0
pytest-tinybird==0.2.0
requests>=2.31.0
psutil>=5.8.0
colored>=1.4.0,<2.0.0
5 changes: 5 additions & 0 deletions deployability/deps/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ graphlib==0.9.5
jsonschema==3.2.0
PyYAML==6.0.1
colorlog==6.8.0
pytest==7.4.4
paramiko==3.4.0
requests==2.31.0
chardet==5.2.0
pywinrm==0.4.3
6 changes: 6 additions & 0 deletions deployability/modules/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (C) 2015, Wazuh Inc.
# Created by Wazuh, Inc. <[email protected]>.
# This program is a free software; you can redistribute it and/or modify it under the terms of GPLv2
from .provision import Provision
from .generic import Ansible
from .allocation import Allocator
Loading