-
Notifications
You must be signed in to change notification settings - Fork 180
SNOW-1016470: Increase code coverage to at least 90% in JDBC #2069
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
base: master
Are you sure you want to change the base?
SNOW-1016470: Increase code coverage to at least 90% in JDBC #2069
Conversation
…into SNOW-1016470-increase-code-coverage-to-at-least-90
…into SNOW-1016470-increase-code-coverage-to-at-least-90
…into SNOW-1016470-increase-code-coverage-to-at-least-90
…into SNOW-1016470-increase-code-coverage-to-at-least-90
…into SNOW-1016470-increase-code-coverage-to-at-least-90
…into SNOW-1016470-increase-code-coverage-to-at-least-90
…into SNOW-1016470-increase-code-coverage-to-at-least-90
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
16606334 | Triggered | Generic High Entropy Secret | ef4bbed | src/test/resources/wiremock/mappings/wif/azure/invalid_issuer_flow.json | View secret |
16606335 | Triggered | Generic High Entropy Secret | ef4bbed | src/test/resources/wiremock/mappings/wif/azure/successful_flow_basic.json | View secret |
16606336 | Triggered | Generic High Entropy Secret | ef4bbed | src/test/resources/wiremock/mappings/wif/azure/missing_sub_claim.json | View secret |
16606337 | Triggered | Generic High Entropy Secret | ef4bbed | src/test/resources/wiremock/mappings/wif/azure/missing_issuer_claim.json | View secret |
🛠 Guidelines to remediate hardcoded secrets
The above secret(s) have been detected in your PR. Please take an appropriate action for each secret:
- If it’s a true positive, remove the secret from source code, revoke it and migrate to a secure way of storing and accessing secrets (see http://go/secrets-and-code). Once that’s done, go to the incidents page linked in the “GitGuardian id” column (log in using SnowBiz Okta) and resolve the incident.
- If it’s a false positive, go to the incidents page linked in the “GitGuardian id” column (log in using SnowBiz Okta) and ignore the incident.
- If you didn't add this secret - and only then - you may ignore this check as it's non-blocking. If you did add the secret and you ignore this check, you'll be assigned a "Security Finding" ticket in Jira in a few days.
Note:
- A secret is considered leaked from the moment it touches GitHub. Rewriting git history by force pushing or other means is not necessary and doesn’t change the fact that the secret has to be revoked.
- This check has a “Skip: false positive” button. Don’t use it. It will mark all detected secrets as false positives but only in the context of this specific run - it won’t remember this action in subsequent check runs.
If you encounter any problems you can reach out to us on Slack: #gitguardian-secret-scanning-help
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
src/test/java/net/snowflake/client/core/auth/oauth/TokenResponseDTOTest.java
Outdated
Show resolved
Hide resolved
src/test/java/net/snowflake/client/jdbc/cloud/storage/SnowflakeStorageClientTest.java
Outdated
Show resolved
Hide resolved
…into SNOW-1016470-increase-code-coverage-to-at-least-90
…ttps://github.com/snowflakedb/snowflake-jdbc into SNOW-1016470-increase-code-coverage-to-at-least-90
…ttps://github.com/snowflakedb/snowflake-jdbc into SNOW-1016470-increase-code-coverage-to-at-least-90
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally I don't see value in test of setters and getters.
@@ -286,4 +307,43 @@ public void testExternalBrowserTimeout() throws Exception { | |||
}); | |||
assertTrue(e.getMessage().contains("External browser authentication failed")); | |||
} | |||
|
|||
// @Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this test be uncommented or removed?
assertFalse(URLUtil.isValidURL(null)); | ||
} | ||
|
||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests should be merged into one parametrized test.
…ttps://github.com/snowflakedb/snowflake-jdbc into SNOW-1016470-increase-code-coverage-to-at-least-90
…into SNOW-1016470-increase-code-coverage-to-at-least-90
…ttps://github.com/snowflakedb/snowflake-jdbc into SNOW-1016470-increase-code-coverage-to-at-least-90
Hi @sfc-gh-pmotacki, review comments have been addressed. |
Overview
SNOW-1016470
Pre-review self checklist
master
branchmvn -P check-style validate
)mvn verify
and inspecttarget/japicmp/japicmp.html
)SNOW-XXXX:
External contributors - please answer these questions before submitting a pull request. Thanks!
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Issue: #NNNN
Fill out the following pre-review checklist:
@SnowflakeJdbcInternalApi
(note that public/protected methods/fields in classes marked with this annotation are already internal)Please describe how your code solves the related issue.
Please write a short description of how your code change solves the related issue.