Skip to content

TOOLS-4263 Delete JS tests fully covered by existing Go tests#1041

Draft
autarch wants to merge 1 commit into
07-16-tools-4263_add_a_go_test_that_we_preserve_indexes_when_restoring_with_a_non-admin_user_on_a_per-data_basisfrom
07-16-tools-4263_delete_js_tests_fully_covered_by_existing_go_tests
Draft

TOOLS-4263 Delete JS tests fully covered by existing Go tests#1041
autarch wants to merge 1 commit into
07-16-tools-4263_add_a_go_test_that_we_preserve_indexes_when_restoring_with_a_non-admin_user_on_a_per-data_basisfrom
07-16-tools-4263_delete_js_tests_fully_covered_by_existing_go_tests

Conversation

@autarch

@autarch autarch commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Here's a mapping of JS to existing Go tests:

  • test/legacy42/jstests/tool/tool1.js
    -> TestRoundTripBasicData (integration/exportimport/data_test.go)
    + TestPipedDumpRestore (integration/dumprestore/roundtrip_test.go)
  • test/legacy42/jstests/tool/exportimport3.js
    -> TestRoundTripJSONArray (integration/exportimport/json_test.go)
  • test/legacy42/jstests/tool/restorewithauth.js
    -> TestDumpRestoreEnforcesAuthRoles (mongorestore/dumprestore_auth_test.go)
    -> TestRestoreWithDBUserPreservesIndexes (mongorestore/dumprestore_auth_test.go)
  • test/qa-tests/jstests/restore/users_and_roles_admin.js
    -> TestDumpRestoreSingleDBWithDBUsersAndRoles (mongorestore/dumprestore_auth_test.go)
  • test/qa-tests/jstests/restore/stop_on_error.js
    -> TestMongorestoreMIOSOE (mongorestore/mongorestore_test.go)
  • test/qa-tests/jstests/restore/oplog_replay_specify_file.js
    -> TestOplogRestore and related oplog-file cases (mongorestore/oplog_test.go)
  • test/qa-tests/jstests/import/stoponerror.js
    -> TestImportMIOSOE (mongoimport/mongoimport_test.go)
  • test/qa-tests/jstests/files/mongofiles_list.js
    -> "list" cases in TestMongoFilesCommands (mongofiles/mongofiles_test.go)

autarch commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator Author

@autarch
autarch changed the base branch from master to graphite-base/1041 July 16, 2026 20:35
@autarch
autarch force-pushed the 07-16-tools-4263_delete_js_tests_fully_covered_by_existing_go_tests branch from 75c4e40 to eef4eab Compare July 16, 2026 20:35
@autarch
autarch changed the base branch from graphite-base/1041 to 07-16-tools-4263_add_a_go_test_that_we_preserve_indexes_when_restoring_with_a_non-admin_user_on_a_per-data_basis July 16, 2026 20:35
Here's a mapping of JS to existing Go tests:

- test/legacy42/jstests/tool/tool1.js
    -> TestRoundTripBasicData (integration/exportimport/data_test.go)
       + TestPipedDumpRestore (integration/dumprestore/roundtrip_test.go)
- test/legacy42/jstests/tool/exportimport3.js
    -> TestRoundTripJSONArray (integration/exportimport/json_test.go)
- test/legacy42/jstests/tool/restorewithauth.js
    -> TestDumpRestoreEnforcesAuthRoles (mongorestore/dumprestore_auth_test.go)
- test/qa-tests/jstests/restore/users_and_roles_admin.js
    -> TestDumpRestoreSingleDBWithDBUsersAndRoles (mongorestore/dumprestore_auth_test.go)
- test/qa-tests/jstests/restore/stop_on_error.js
    -> TestMongorestoreMIOSOE (mongorestore/mongorestore_test.go)
- test/qa-tests/jstests/restore/oplog_replay_specify_file.js
    -> TestOplogRestore and related oplog-file cases (mongorestore/oplog_test.go)
- test/qa-tests/jstests/import/stoponerror.js
    -> TestImportMIOSOE (mongoimport/mongoimport_test.go)
- test/qa-tests/jstests/files/mongofiles_list.js
    -> "list" cases in TestMongoFilesCommands (mongofiles/mongofiles_test.go)
@autarch
autarch force-pushed the 07-16-tools-4263_add_a_go_test_that_we_preserve_indexes_when_restoring_with_a_non-admin_user_on_a_per-data_basis branch from 2a490be to ae8464d Compare July 17, 2026 18:57
@autarch
autarch force-pushed the 07-16-tools-4263_delete_js_tests_fully_covered_by_existing_go_tests branch from eef4eab to 47590df Compare July 17, 2026 18:57
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.

1 participant