Modify the existing langchain-js tests to run with local Atlas using test containers

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a langchain dev,
      I want to be able to run tests locally with minimal configuration,
      So that I can develop the AI mongodb integration quickly and accurately.

      User Experience

      n/a

      Dependencies

      n/a

      Risks/Unknowns

      n/a

      Acceptance Criteria

      Implementation Requirements

      • Modify the existing langchainjs MongoDB integration test suite to have the following behavior
        • If an Atlas URI is provided to the tests, the tests run against the provided Atlas cluster
        • If no Atlas URI is provided to the tests, launch a local Atlas cluster using test containers. This should run once per test run (global before).
        • After the test run, stop and remove the container from the process.

      Testing Requirements

      • All tests pass.

      Documentation Requirements

      • Update langchainjs' test documentation with information about how to run the tests locally and against a remote atlas cluster.

      Follow Up Requirements

      n/a

            Assignee:
            Bailey Pearson
            Reporter:
            Daria Pardue
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: