From e3411d43f41bf7f3ceb206af85e46e9ad89745eb Mon Sep 17 00:00:00 2001 From: Andrea Lamparelli Date: Fri, 28 Mar 2025 14:56:10 +0100 Subject: [PATCH] Update after e40ecfc Signed-off-by: Andrea Lamparelli --- Makefile | 2 +- test/horreum_client_it.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 7a1ca63..eafda09 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ ifneq ($(filter arm%,$(OS_ARCH)),) endif # env variables -KIOTA_VERSION ?= "v1.22.3" +KIOTA_VERSION ?= "v1.24.3" HORREUM_BRANCH ?= "master" HORREUM_OPENAPI_PATH ?= "https://raw.githubusercontent.com/Hyperfoil/Horreum/${HORREUM_BRANCH}/docs/site/content/en/openapi/openapi.yaml" GENERATED_CLIENT_PATH = "${PROJECT_PATH}/src/horreum/raw_client" diff --git a/test/horreum_client_it.py b/test/horreum_client_it.py index a6a51e8..2f27006 100644 --- a/test/horreum_client_it.py +++ b/test/horreum_client_it.py @@ -12,8 +12,8 @@ from horreum.raw_client.api.test.test_request_builder import TestRequestBuilder from horreum.raw_client.api.user.apikey.apikey_post_request_body import ApikeyPostRequestBody from horreum.raw_client.models.key_type import KeyType -from horreum.raw_client.models.protected_type_access import ProtectedType_access from horreum.raw_client.models.test import Test +from horreum.raw_client.models.test_access import Test_access DEFAULT_CONNECTION_TIMEOUT: int = 30 DEFAULT_REQUEST_TIMEOUT: int = 100 @@ -135,7 +135,7 @@ async def test_api_key(custom_authenticated_client: HorreumClient): @pytest.mark.asyncio async def test_check_create_test(custom_authenticated_client: HorreumClient): # Create new test - t = Test(name="TestName", description="Simple test", owner="dev-team", access=ProtectedType_access.PUBLIC) + t = Test(name="TestName", description="Simple test", owner="dev-team", access=Test_access.PROTECTED.PUBLIC) created = await custom_authenticated_client.raw_client.api.test.post(t) assert created is not None assert (await custom_authenticated_client.raw_client.api.test.get()).count == 1 @@ -149,7 +149,7 @@ async def test_check_create_test(custom_authenticated_client: HorreumClient): @pytest.mark.asyncio async def test_create_test_unauthorized(anonymous_client: HorreumClient): # Create new test - t = Test(name="TestName", description="Simple test", owner="dev-team", access=ProtectedType_access.PUBLIC) + t = Test(name="TestName", description="Simple test", owner="dev-team", access=Test_access.PROTECTED.PUBLIC) with pytest.raises(APIError) as ex: await anonymous_client.raw_client.api.test.post(t) assert ex.value.response_status_code == 401