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

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Not Needed
    • 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
            Daria Pardue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: