-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 2.x] Add code coverage exclusions on false positives (#3229)
Backport 07406d6 from #3196. Signed-off-by: Peter Nied <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
709fef0
commit 3d219cd
Showing
1 changed file
with
41 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
coverage: | ||
status: | ||
project: | ||
# Exclusions to prevent false positives triggered | ||
# Tracking with https://github.com/opensearch-project/security/issues/3137 | ||
default: false | ||
plugin: | ||
paths: | ||
- "!src/main/java/com/amazon/dlic/auth/http/jwt/keybyoidc/SelfRefreshingKeySet.java" | ||
- "!src/main/java/com/amazon/dlic/auth/ldap2/LDAPConnectionFactoryFactory.java" | ||
- "!src/main/java/org/opensearch/security/transport/SecurityInterceptor.java" | ||
- "!src/main/java/org/opensearch/security/auditlog/AuditLogSslExceptionHandler.java" | ||
- "!src/main/java/org/opensearch/security/configuration/StaticResourceException.java" | ||
- "!src/main/java/org/opensearch/security/dlic/rest/api/AuditApiAction.java" | ||
- "!src/main/java/org/opensearch/security/ssl/transport/SecuritySSLNettyTransport.java" | ||
- "!src/main/java/org/opensearch/security/ssl/util/SSLConnectionTestUtil.java" | ||
- "src/main" | ||
target: auto | ||
threshold: 0% | ||
inconsistent-coverage-files: | ||
paths: | ||
- "src/main/java/com/amazon/dlic/auth/http/jwt/keybyoidc/SelfRefreshingKeySet.java" | ||
- "src/main/java/com/amazon/dlic/auth/ldap2/LDAPConnectionFactoryFactory.java" | ||
- "src/main/java/org/opensearch/security/transport/SecurityInterceptor.java" | ||
- "src/main/java/org/opensearch/security/auditlog/AuditLogSslExceptionHandler.java" | ||
- "src/main/java/org/opensearch/security/configuration/StaticResourceException.java" | ||
- "src/main/java/org/opensearch/security/dlic/rest/api/AuditApiAction.java" | ||
- "src/main/java/org/opensearch/security/ssl/transport/SecuritySSLNettyTransport.java" | ||
- "src/main/java/org/opensearch/security/ssl/util/SSLConnectionTestUtil.java" | ||
target: auto | ||
threshold: 50% | ||
tests: | ||
paths: | ||
- "src/integrationTest" | ||
- "src/test" | ||
target: 100% | ||
|
||
comment: | ||
layout: "reach, diff, flags, files" | ||
behavior: default | ||
require_changes: true |