|
| 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 | +@pytest.mark.skip(reason="creates real resources; run manually only") |
| 9 | +def test_create_installation(async_created_installation, installation_data): |
| 10 | + result = async_created_installation.extension |
| 11 | + |
| 12 | + assert result.id == installation_data["extension"]["id"] |
| 13 | + |
| 14 | + |
| 15 | +async def test_get_installation(async_installations_service, installation_id): |
| 16 | + result = await async_installations_service.get(installation_id) |
| 17 | + |
| 18 | + assert result.id == installation_id |
| 19 | + |
| 20 | + |
| 21 | +async def test_filter_installations(async_installations_service, installation_id): |
| 22 | + await assert_async_service_filter_with_iterate( |
| 23 | + async_installations_service, installation_id, None |
| 24 | + ) # act |
| 25 | + |
| 26 | + |
| 27 | +@pytest.mark.skip(reason="modifies real resources; run manually only") |
| 28 | +async def test_invite_installation(async_installations_service, async_created_installation): |
| 29 | + result = await async_installations_service.invite(async_created_installation.id) |
| 30 | + |
| 31 | + assert result.status == "Invited" |
| 32 | + |
| 33 | + |
| 34 | +@pytest.mark.skip(reason="modifies real resources; run manually only") |
| 35 | +async def test_install_installation(async_installations_service, async_created_installation): |
| 36 | + result = await async_installations_service.install(async_created_installation.id) |
| 37 | + |
| 38 | + assert result.status == "Installed" |
| 39 | + |
| 40 | + |
| 41 | +@pytest.mark.skip(reason="modifies real resources; run manually only") |
| 42 | +async def test_uninstall_installation(async_installations_service, async_created_installation): |
| 43 | + result = await async_installations_service.uninstall(async_created_installation.id) |
| 44 | + |
| 45 | + assert result.status == "Uninstalled" |
| 46 | + |
| 47 | + |
| 48 | +@pytest.mark.skip(reason="modifies real resources; run manually only") |
| 49 | +async def test_expire_installation(async_installations_service, async_created_installation): |
| 50 | + result = await async_installations_service.expire(async_created_installation.id) |
| 51 | + |
| 52 | + assert result.status == "Expired" |
| 53 | + |
| 54 | + |
| 55 | +@pytest.mark.skip(reason="deletes real resources; run manually only") |
| 56 | +async def test_delete_installation(async_installations_service, async_created_installation): |
| 57 | + await async_installations_service.delete(async_created_installation.id) # act |
0 commit comments