Skip to content

test(NODE-7509): add integration tests for Secure Frontend Processor#5004

Open
tadjik1 wants to merge 3 commits into
mainfrom
NODE-7509
Open

test(NODE-7509): add integration tests for Secure Frontend Processor#5004
tadjik1 wants to merge 3 commits into
mainfrom
NODE-7509

Conversation

@tadjik1

@tadjik1 tadjik1 commented Jul 14, 2026

Copy link
Copy Markdown
Member

Description

Adds integration tests that verify the Node driver connects and authenticates correctly through an Atlas Secure Frontend Processor (SFP / monguard), per the SFP testing spec.

Covers unauthenticated, SCRAM-SHA-256, and X.509 auth, each asserting ping, connectionStatus, and CRUD - with the authenticated cases also run under a compressor (zlib) and Server API v1. Credentials come from AWS Secrets Manager (drivers/sfp).

Wired up as a new test-sfp Evergreen task (test/manual/sfp.test.ts + .evergreen/run-sfp-tests.sh, check:sfp), running on the rhel8 and Windows variants.

image

Double check the following

  • Lint is passing (npm run check:lint)
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@tadjik1
tadjik1 marked this pull request as ready for review July 15, 2026 09:32
@tadjik1
tadjik1 requested a review from a team as a code owner July 15, 2026 09:32
Copilot AI review requested due to automatic review settings July 15, 2026 09:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a new Evergreen-backed manual/integration test suite to validate that the Node.js driver can connect and authenticate through an Atlas Secure Frontend Processor (SFP / monguard), aligned with the referenced SFP testing spec.

Changes:

  • Added test/manual/sfp.test.ts covering unauthenticated, SCRAM-SHA-256, and X.509 scenarios (with variation runs for compression and Server API v1).
  • Added a new check:sfp npm script and Evergreen wiring (test-sfp task + run-sfp-tests.sh) including secrets setup and X.509 cert materialization.
  • Registered the task in Evergreen generation/config so it runs on targeted build variants.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/manual/sfp.test.ts New SFP test suite asserting connectivity/auth and basic operations through SFP
package.json Adds check:sfp script to execute the new test file
.evergreen/run-sfp-tests.sh Fetches secrets, writes X.509 cert PEM, and runs check:sfp
.evergreen/generate_evergreen_tasks.js Registers new test-sfp task with appropriate tags/commands
.evergreen/config.yml Adds run sfp tests function and schedules test-sfp across variants
.evergreen/config.in.yml Source config updates for the new run sfp tests function

Comment thread test/manual/sfp.test.ts
Comment thread test/manual/sfp.test.ts
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.

2 participants