-
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.
- Loading branch information
1 parent
cbc4053
commit 0cd43de
Showing
1 changed file
with
28 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,12 +19,19 @@ | |
output: ok [] | ||
stage: agent sys_osinfo checking table is empty | ||
- | ||
input: agent 000 osinfo set 0|2021/04/08 10:00:00|focal|x86_64|Ubuntu|20.04.2 LTS (Focal Fossa)|focal|20|04|1|ubuntu|Linux|5.4.0-70-generic|#78-Ubuntu SMP Thu Apr 08 10:00:00 UTC 2021|1|2|NULL | ||
input: >- | ||
agent 000 osinfo set 0|2021/04/08 10:00:00|focal|x86_64|Ubuntu|20.04.2 LTS (Focal Fossa)|focal|20|04|1| | ||
ubuntu|Linux|5.4.0-70-generic|#78-Ubuntu SMP Thu Apr 08 10:00:00 UTC 2021|1|2|NULL | ||
output: ok | ||
stage: agent sys_osinfo set information | ||
- | ||
input: agent 000 osinfo get | ||
output: ok [{"scan_id":0,"scan_time":"2021/04/08 10:00:00","hostname":"focal","architecture":"x86_64","os_name":"Ubuntu","os_version":"20.04.2 LTS (Focal Fossa)","os_codename":"focal","os_major":"20","os_minor":"04","os_patch":"2","os_build":"1","os_platform":"ubuntu","sysname":"Linux","release":"5.4.0-70-generic","version":"#78-Ubuntu SMP Thu Apr 08 10:00:00 UTC 2021","os_release":"1","checksum":"legacy","reference":"54d5344c8f49eae38d81651495227c5080755b45"}] | ||
output: >- | ||
ok [{"scan_id":0,"scan_time":"2021/04/08 10:00:00","hostname":"focal","architecture":"x86_64","os_name":"Ubuntu" | ||
,"os_version":"20.04.2 LTS (Focal Fossa)","os_codename":"focal","os_major":"20","os_minor":"04","os_patch":"2", | ||
"os_build":"1","os_platform":"ubuntu","sysname":"Linux","release":"5.4.0-70-generic","version": | ||
"#78-Ubuntu SMP Thu Apr 08 10:00:00 UTC 2021","os_release":"1","checksum":"legacy", | ||
"reference":"54d5344c8f49eae38d81651495227c5080755b45"}] | ||
stage: agent sys_osinfo getting information | ||
- | ||
input: agent 000 sql DELETE FROM sys_osinfo | ||
|
@@ -39,11 +46,15 @@ | |
description: It checks the commands get packages and get hotfixes | ||
test_case: | ||
- | ||
input: agent 003 package save 0|2021/04/07 22:00:00|deb|test_deb_pkg|optional|utils|7490|Wazuh [email protected]|NULL|1.0.0|amd64|NULL|NULL|Test package|NULL|1 | ||
input: >- | ||
agent 003 package save 0|2021/04/07 22:00:00|deb|test_deb_pkg|optional|utils|7490|Wazuh [email protected]|NULL| | ||
1.0.0|amd64|NULL|NULL|Test package|NULL|1 | ||
output: ok | ||
stage: agent sys_programs adding dummy package | ||
- | ||
input: agent 003 package save 0|2021/04/07 22:00:00|rpm|test_rpm_pkg|optional|utils|7490|Wazuh [email protected]|NULL|1.0.0|amd64|NULL|NULL|Test package|NULL|1 | ||
input: >- | ||
agent 003 package save 0|2021/04/07 22:00:00|rpm|test_rpm_pkg|optional|utils|7490|Wazuh [email protected]|NULL| | ||
1.0.0|amd64|NULL|NULL|Test package|NULL|1 | ||
output: ok | ||
stage: agent sys_programs adding dummy package | ||
- | ||
|
@@ -75,18 +86,27 @@ | |
output: ok {"status":"NOT_SYNCED"} | ||
stage: agent sys_programs getting not synced packages attempt | ||
- | ||
input: agent 003 sql UPDATE sync_info SET last_attempt = 1, last_completion = 1 where component = "syscollector-hotfixes" | ||
input: >- | ||
agent 003 sql UPDATE sync_info SET last_attempt = 1, last_completion = 1 where component = "syscollector | ||
-hotfixes" | ||
output: ok [] | ||
stage: agent sync_info set synced | ||
- | ||
input: agent 003 hotfix get | ||
output: ['due {"hotfix":"KB2980293"}','due {"hotfix":"KB2980294"}','due {"hotfix":"KB2980295"}','ok {"status":"SUCCESS"}'] | ||
output: >- | ||
['due {"hotfix":"KB2980293"}','due {"hotfix":"KB2980294"}','due {"hotfix":"KB2980295"}', | ||
'ok {"status":"SUCCESS"}'] | ||
stage: agent sys_hotfixes getting hotfixes | ||
- | ||
input: agent 003 sql UPDATE sync_info SET last_attempt = 1, last_completion = 1 where component = "syscollector-packages" | ||
input: >- | ||
agent 003 sql UPDATE sync_info SET last_attempt = 1, last_completion = 1 where component = "syscollector | ||
-packages" | ||
output: ok [] | ||
stage: agent sync_info set synced | ||
- | ||
input: agent 003 package get | ||
output: ['due {"name":"test_deb_pkg","version":"1.0.0","architecture":"amd64","vendor":"Wazuh [email protected]","item_id":"1"}','due {"name":"test_rpm_pkg","version":"1.0.0","architecture":"amd64","vendor":"Wazuh [email protected]","item_id":"1"}','ok {"status":"SUCCESS"}'] | ||
output: >- | ||
['due {"name":"test_deb_pkg","version":"1.0.0","architecture":"amd64","vendor":"Wazuh [email protected]","item_id" | ||
:"1"}','due {"name":"test_rpm_pkg","version":"1.0.0","architecture":"amd64","vendor":"Wazuh [email protected]", | ||
"item_id":"1"}','ok {"status":"SUCCESS"}'] | ||
stage: agent sys_programs getting not all packages |