Skip to content

Move mongo-shell CLI option to the base CLI command  #215

@Lysoun

Description

@Lysoun

Currently:
The mongo-shell option is only available in the subcommand update-db. The two other commands, list and mark-one-script-as-executed can't use a specified mongo shell, they only use the default shell, which is mongosh.

Expected:

  • Move the mongo shell CLI option to Datamaintain
  • Update the tests for update-db (in UpdateDbTest) to no longer test that the mongo shell is accurate
  • Update the tests for Datamaintain (in DatamaintainTest) to ensure that this now option is read from the shell, read from the configuration file and correctly overriden when given in shell and configuration file

⚠️ This could break the tests in MongoIT and many CLI tests because of the order of the arguments. To run the MongoIT tests, you could need both versions of mongo shell, mongo and mongosh

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions