Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/test/java/com/contentstack/sdk/TestEntryModel.java
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