Skip to content

Commit

Permalink
Add fix for test failures: connect, database, embedded-cache, securit…
Browse files Browse the repository at this point in the history
…y, web
  • Loading branch information
kthatipally committed Jul 11, 2024
1 parent 5fc14a5 commit 35cc02f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 86 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,7 @@
<perform>
<fail message="Expected data not found for rule connect-01400"/>
</perform>
</rule>
<rule id="connect-01500-test">
<when>
<not>
<classification-exists classification="Embedded library - ActiveMQ"/>
<technology-tag-exists technology-tag="ActiveMQ"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule connect-01500"/>
</perform>
</rule>
</rule>
<rule id="connect-01600-test">
<when>
<not>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,7 @@
<perform>
<fail message="Expected data not found for rule database-01400"/>
</perform>
</rule>
<rule id="database-01500-test">
<when>
<not>
<classification-exists classification="Embedded MySQL Driver"/>
<technology-tag-exists technology-tag="MySQL Driver"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule database-01500"/>
</perform>
</rule>
</rule>
<rule id="database-01600-test">
<when>
<not>
Expand All @@ -42,18 +31,7 @@
<perform>
<fail message="Expected data not found for rule database-01600"/>
</perform>
</rule>
<rule id="database-01700-test">
<when>
<not>
<classification-exists classification="Embedded PostgreSQL Driver"/>
<technology-tag-exists technology-tag="PostgreSQL Driver"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule database-01700"/>
</perform>
</rule>
</rule>
<rule id="database-01800-test">
<when>
<not>
Expand All @@ -65,17 +43,6 @@
<fail message="Expected data not found for rule database-01800"/>
</perform>
</rule>
<rule id="database-01900-test">
<when>
<not>
<classification-exists classification="Embedded Microsoft SQL Driver"/>
<technology-tag-exists technology-tag="Microsoft SQL Driver"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule database-01900"/>
</perform>
</rule>
<rule id="database-02000-test">
<when>
<not>
Expand All @@ -97,18 +64,7 @@
<perform>
<fail message="Expected data not found for rule database-02100"/>
</perform>
</rule>
<rule id="database-02200-test">
<when>
<not>
<classification-exists classification="Embedded Cassandra Client"/>
<technology-tag-exists technology-tag="Cassandra Client"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule database-02200"/>
</perform>
</rule>
</rule>
<rule id="database-02300-test">
<when>
<not>
Expand All @@ -130,18 +86,7 @@
<perform>
<fail message="Expected data not found for rule database-02400"/>
</perform>
</rule>
<rule id="database-02500-test">
<when>
<not>
<classification-exists classification="Embedded MongoDB Client"/>
<technology-tag-exists technology-tag="MongoDB Client"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule database-02500"/>
</perform>
</rule>
</rule>
<rule id="database-02600-test">
<when>
<not>
Expand Down Expand Up @@ -207,18 +152,7 @@
<perform>
<fail message="Expected data not found for rule database-03100"/>
</perform>
</rule>
<rule id="database-03200-test">
<when>
<not>
<classification-exists classification="Embedded MariaDB Driver"/>
<technology-tag-exists technology-tag="MariaDB Driver"/>
</not>
</when>
<perform>
<fail message="Expected data not found for rule database-03200"/>
</perform>
</rule>
</rule>
</rules>
</ruleset>
</ruletest>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
<rule id="embedded-cache-libraries-test-01000">
<when>
<not>
<classification-exists classification="Ehcache embedded library"/>
<iterable-filter size="1">
<hint-exists message="The application uses EHCache" />
</iterable-filter>
</not>
</when>
<perform>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@
<rule id="security-01900-test">
<when>
<not>
<classification-exists classification="Embedded library - SAML"/>
<iterable-filter size="2">
<hint-exists message="The application embeds a SAML library" />
</iterable-filter>
<technology-tag-exists technology-tag="SAML"/>
</not>
</when>
Expand Down Expand Up @@ -199,7 +201,9 @@
<rule id="security-02800-test">
<when>
<not>
<classification-exists classification="Embedded library - OpenSAML"/>
<iterable-filter size="1">
<hint-exists message="The application embeds an OpenSAML library" />
</iterable-filter>
<technology-tag-exists technology-tag="OpenSAML"/>
</not>
</when>
Expand Down

0 comments on commit 35cc02f

Please sign in to comment.