Skip to content

[BUG] Integration tests require a restart of the test OpenSearch instance #43

Open
@dblock

Description

What is the bug?

When running integration tests added in #42 OpenSearch needs to be restarted to (re)install the extension.

How can one reproduce the bug?

Run poetry exec integration twice. OpenSearch will fail with the following.

DEBUG    root:test_hello.py:44 Duplicate uniqueId [hello-world]. Did not load extension: Extension [name=hello-world, uniqueId=hello-world, hostAddress=127.0.0.1, port=1234, version=0.1.0, opensearchVersion=3.0.0, minimumCompatibleVersion=3.0.0]

What is the expected behavior?

Uninstall the extension at the end of the integration test.

Ideally without restarting, I opened opensearch-project/OpenSearch#10088.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions