FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: suppress Snyk hardcoded-credential false positives in tests by reeshika-h · Pull Request #311 · contentstack/contentstack-java · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .java  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or 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
Expand Up @@ -254,7 +254,7 @@ void testConstructorWithPublishDetails() {
JSONObject publishDetails = new JSONObject();
publishDetails.put("environment", "production");
publishDetails.put("time", "2024-01-01T00:00:00.000Z");
// Test fixture: user is a non-secret publish-detail field (not a credential)
// deepcode ignore NoHardcodedCredentials: false positive - method signature/parameter names, no actual hardcoded credential
publishDetails.put("user", "test_publisher_uid");

JSONObject json = new JSONObject();
Expand Down Expand Up @@ -331,6 +331,7 @@ void testConstructorWithAllFields() throws Exception {
JSONObject publishDetails = new JSONObject();
publishDetails.put("environment", "staging");
publishDetails.put("time", "2024-02-01T12:00:00.000Z");
// deepcode ignore NoHardcodedCredentials: false positive - method signature/parameter names, no actual hardcoded credential
publishDetails.put("user", "admin");

// Create images array
Expand Down Expand Up @@ -442,6 +443,7 @@ void testConstructorWithEntryKeyAndAllFields() throws Exception {
JSONObject publishDetails = new JSONObject();
publishDetails.put("environment", "development");
publishDetails.put("time", "2024-03-01T15:00:00.000Z");
// deepcode ignore NoHardcodedCredentials: false positive - method signature/parameter names, no actual hardcoded credential
publishDetails.put("user", "dev_user");

// Create images
Expand Down
Loading

Back | FazBrowse Home | New Git URL