Skip to content

Conversation

@anu3990
Copy link
Contributor

@anu3990 anu3990 commented Jul 29, 2025

No description provided.

anu3990 and others added 30 commits February 5, 2025 11:17
Should make it easier to write tests that test SSL with the Node Client.
This commit includes fixes for -
- Inflight Vulnerable to Denial-of-Service (DoS) via Memory Leak
- 'brace-expansion' Package Vulnerable to Regular Expression Denial-of-Service (ReDoS)
-  GHSA-8cj5-5rvv-wf4v
Resolves dependabot alert - see marklogic#942
Copilot AI review requested due to automatic review settings July 29, 2025 18:02
@anu3990 anu3990 closed this Jul 29, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates copyright headers across all test files from MarkLogic Corporation to Progress Software Corporation and extends the copyright year range to 2015-2025. Additionally, it includes minor test improvements including code structure fixes and new test cases.

  • Update copyright headers from MarkLogic Corporation to Progress Software Corporation with 2015-2025 year range
  • Fix minor code issues including bracket placement and assertion corrections
  • Add new test files for vector utilities, SSL/TLS configuration, and shortest path functionality

Reviewed Changes

Copilot reviewed 298 out of 363 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
test-complete/*.js Updated copyright headers from MarkLogic to Progress Software
test-complete-proxy/*.js Updated copyright headers from MarkLogic to Progress Software
test-basic/*.js Updated copyright headers from MarkLogic to Progress Software
test-basic/vector-util-test.js New test file for vector utility functions
test-basic/ssl-min-allow-tls-test.js New test file for SSL/TLS minimum version testing
test-basic/shortest-path.js New test file for shortest path functionality
test-basic/documents-read-xqy-docs.js New test file for reading XQuery documents
Comments suppressed due to low confidence (1)

test-complete/nodejs-documents-values.js:279

  • The parentheses are incorrectly placed. The logical OR operation should be applied to the entire assertion, not just the string literals. The correct syntax should be: (strData.should.containEql('"name":"covariance","_value":"0.35"')) || (strData.should.containEql('"name":"covariance","_value":"0.349999999999998"'));
            strData.should.containEql(('"name":"covariance","_value":"0.35"') || ('"name":"covariance","_value":"0.349999999999998"'));

});

describe('tests for new scoring method - bm25', function() {
describe('tests for new scoring methods - bm25, random and zero using fromSearch.', function() {
Copy link

Copilot AI Jul 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The period at the end of the describe block title is inconsistent with other describe blocks and should be removed for consistency.

Suggested change
describe('tests for new scoring methods - bm25, random and zero using fromSearch.', function() {
describe('tests for new scoring methods - bm25, random and zero using fromSearch', function() {

Copilot uses AI. Check for mistakes.
});

describe('tests for new scoring method - bm25', function() {
describe('tests for new scoring methods - bm25, random and zero using fromSearchDocs', function() {
Copy link

Copilot AI Jul 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Missing period at the end of the describe block title for consistency with the previous describe block.

Suggested change
describe('tests for new scoring methods - bm25, random and zero using fromSearchDocs', function() {
describe('tests for new scoring methods - bm25, random and zero using fromSearchDocs.', function() {

Copilot uses AI. Check for mistakes.
const testPlan = pbb.testPlan;

describe('tests for new vector fucntions.', function() {
describe('tests for new vector functions.', function() {
Copy link

Copilot AI Jul 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The period at the end of the describe block title is inconsistent with most other describe blocks and should be removed.

Suggested change
describe('tests for new vector functions.', function() {
describe('tests for new vector functions', function() {

Copilot uses AI. Check for mistakes.
const titleProp = dc('title');
const execPlan = pbb.execPlan;

describe('tests for server-side shortest-path method.', function () {
Copy link

Copilot AI Jul 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The period at the end of the describe block title is inconsistent with most other describe blocks and should be removed.

Suggested change
describe('tests for server-side shortest-path method.', function () {
describe('tests for server-side shortest-path method', function () {

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants