Skip to content

Commit 3d04872

Browse files
albertsolaCopilot
andcommitted
MPT-19902: add e2e tests for /public/v1/integration/extensions/{extensionId}/installations
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 00e6d99 commit 3d04872

4 files changed

Lines changed: 38 additions & 0 deletions

File tree

tests/e2e/integration/extension_installations/__init__.py

Whitespace-only changes.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import pytest
2+
3+
4+
@pytest.fixture(scope="session")
5+
def extension_id(e2e_config):
6+
return e2e_config["integration.extension.id"]
7+
8+
9+
@pytest.fixture
10+
def extension_installations_service(mpt_ops, extension_id):
11+
return mpt_ops.integration.extensions.installations(extension_id)
12+
13+
14+
@pytest.fixture
15+
def async_extension_installations_service(async_mpt_ops, extension_id):
16+
return async_mpt_ops.integration.extensions.installations(extension_id)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pytest
2+
3+
from tests.e2e.helper import assert_async_service_filter_with_iterate
4+
5+
pytestmark = [pytest.mark.flaky]
6+
7+
8+
async def test_filter_extension_installations(async_extension_installations_service, extension_id):
9+
await assert_async_service_filter_with_iterate(
10+
async_extension_installations_service, extension_id, None
11+
) # act
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pytest
2+
3+
from tests.e2e.helper import assert_service_filter_with_iterate
4+
5+
pytestmark = [
6+
pytest.mark.flaky,
7+
]
8+
9+
10+
def test_filter_extension_installations(extension_installations_service, extension_id):
11+
assert_service_filter_with_iterate(extension_installations_service, extension_id, None) # act

0 commit comments

Comments
 (0)