-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Scripted input support requirement test (#442)
* feat: Scripted input support requirement test * added transport type file monitor
- Loading branch information
1 parent
d98c97d
commit 1756fc8
Showing
7 changed files
with
163 additions
and
12 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
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
37 changes: 37 additions & 0 deletions
37
tests/requirement_test_scripted/sample_requirement_test_scripted.log
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,37 @@ | ||
<?xml version="1.0"?> | ||
<device> | ||
<vendor>Nix</vendor> | ||
<product>Nix</product> | ||
<version id="6,7" os="CentOS"/> | ||
<version id="6.9,7.4,8.0" os="RHEL"/> | ||
<version id="16.04" os="Ubuntu"/> | ||
<version id="10,11,11.3" os="Solaris"/> | ||
<version id="10.11,10.12" os="MAC OS X"/> | ||
<event code="" name="service" format=""> | ||
<transport type="scripted input" host="sample_host" source="Unix:Service" sourcetype ="Unix:Service" /> | ||
<source> | ||
<comment>Unix service information. Data is collected from live instance. Data is generated from systemctl command. </comment> | ||
</source> | ||
<raw> | ||
<![CDATA[Tue May 26 01:38:02 PDT 2020 type=systemctl UNIT=whoopsie.service, LOADED=not-found, ACTIVE=inactive, SUB=dead, DESCRIPTION="whoopsie.service"]]> | ||
</raw> | ||
<cim> | ||
<models> | ||
<model>Endpoint:Services</model> | ||
</models> | ||
<cim_fields> | ||
<field name="service" value="whoopsie.service"/> | ||
<field name="service_name" value="whoopsie.service"/> | ||
<field name="status" value="stopped"/> | ||
<field name="start_mode" value="Auto"/> | ||
<field name="vendor_product" value="nix"/> | ||
</cim_fields> | ||
<missing_recommended_fields> | ||
<field>service_id</field> | ||
<field>service_path</field> | ||
<field>user</field> | ||
</missing_recommended_fields> | ||
</cim> | ||
<test></test> | ||
</event> | ||
</device> |
38 changes: 38 additions & 0 deletions
38
tests/requirement_test_scripted/sample_requirement_test_scripted_failure.log
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,38 @@ | ||
<?xml version="1.0"?> | ||
<device> | ||
<vendor>Nix</vendor> | ||
<product>Nix</product> | ||
<version id="6,7" os="CentOS"/> | ||
<version id="6.9,7.4,8.0" os="RHEL"/> | ||
<version id="16.04" os="Ubuntu"/> | ||
<version id="10,11,11.3" os="Solaris"/> | ||
<version id="10.11,10.12" os="MAC OS X"/> | ||
<event code="" name="service" format=""> | ||
<transport type="scripted input" host="sample_host" source="Unix:Service" sourcetype ="Unix:Service" /> | ||
<source> | ||
<comment>Unix service information. Data is collected from live instance. Data is generated from systemctl command. </comment> | ||
</source> | ||
<raw> | ||
<![CDATA[Tue May 26 01:38:02 PDT 2020 type=systemctl UNIT=whoopsie.service, LOADED=not-found, ACTIVE=inactive, SUB=dead, DESCRIPTION="whoopsie.service"]]> | ||
</raw> | ||
<cim> | ||
<models> | ||
<model>Endpoint:Services</model> | ||
</models> | ||
<cim_fields> | ||
<field name="dest" value="qa-ubuntu-105"/> | ||
<field name="service" value="whoopsie.service"/> | ||
<field name="service_name" value="whoopsie.service"/> | ||
<field name="status" value="stopped"/> | ||
<field name="start_mode" value="Auto"/> | ||
<field name="vendor_product" value="nix"/> | ||
</cim_fields> | ||
<missing_recommended_fields> | ||
<field>service_id</field> | ||
<field>service_path</field> | ||
<field>user</field> | ||
</missing_recommended_fields> | ||
</cim> | ||
<test></test> | ||
</event> | ||
</device> |
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