- Add required input parameter validation.
- Add unit tests
- Add integration tests.
Step One: Creating the command files.
- Take the schema defined in the technical design for the project. Translate it to an IDL file, and place it in src/mongo/s/request_types/reshard_collection.idl
- Create a corresponding C++ command file in src/mongo/s/commands/cluster_reshard_collection_cmd.cpp. This command may just return true for now.
- Make a Javascript test that calls this command and asserts that it returns true. This won't be something that's going to be pushed in its state, but may serve as a stub to verify that your code is working properly while you're building up this command.
Step Two: Adding input validation.
Step Three: Creating integration tests
- Create tests verifying that the input validation is correctly followed.
|