Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions test/horreum_client_it.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down