diff --git a/pyproject.toml b/pyproject.toml index 72879b287..9f153c7fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,7 +70,7 @@ dev = [ "types-requests>=2.28.0", "ruff>=0.11.13", "aiosqlite", - "behave==1.2.6", + "behave>=1.3.0", "types-cachetools>=6.1.0.20250717", "build>=1.2.2.post1", "twine>=6.1.0", diff --git a/tests/e2e/features/llm_interface.feature b/tests/e2e/features/llm_interface.feature index 5abfd4c70..153b52874 100644 --- a/tests/e2e/features/llm_interface.feature +++ b/tests/e2e/features/llm_interface.feature @@ -9,7 +9,7 @@ Feature: LLM interface tests Scenario: Check if LLM responds to sent question - Given the system is in default state + Given The system is in default state When I ask question "Say hello" Then The status code of the response is 200 And The response should have proper LLM response format diff --git a/tests/e2e/features/rest_api.feature b/tests/e2e/features/rest_api.feature index ec88fe7f1..eb2cfc32e 100644 --- a/tests/e2e/features/rest_api.feature +++ b/tests/e2e/features/rest_api.feature @@ -9,7 +9,7 @@ Feature: REST API tests Scenario: Check if service report proper readiness state - Given the system is in default state + Given The system is in default state When I access endpoint "readiness" using HTTP GET method Then The status code of the response is 200 And The body of the response has the following schema @@ -27,7 +27,7 @@ Feature: REST API tests Scenario: Check if service report proper liveness state - Given the system is in default state + Given The system is in default state When I access endpoint "liveness" using HTTP GET method Then The status code of the response is 200 And The body of the response has the following schema @@ -43,14 +43,14 @@ Feature: REST API tests Scenario: Check if the OpenAPI endpoint works as expected - Given the system is in default state + Given The system is in default state When I access endpoint "openapi.json" using HTTP GET method Then The status code of the response is 200 And The body of the response contains OpenAPI Scenario: Check if info endpoint is working - Given the system is in default state + Given The system is in default state When I access REST API endpoint "info" using HTTP GET method Then The status code of the response is 200 And The body of the response contains name diff --git a/tests/e2e/features/smoketests.feature b/tests/e2e/features/smoketests.feature index 0e18cf455..b1093d191 100644 --- a/tests/e2e/features/smoketests.feature +++ b/tests/e2e/features/smoketests.feature @@ -9,7 +9,7 @@ Feature: Smoke tests Scenario: Check if the main endpoint is reachable - Given the system is in default state + Given The system is in default state When I access endpoint "/" using HTTP GET method Then The status code of the response is 200 And Content type of response should be set to "text/html" diff --git a/tests/e2e/features/steps/common.py b/tests/e2e/features/steps/common.py index d5168e9e0..8add38a1b 100644 --- a/tests/e2e/features/steps/common.py +++ b/tests/e2e/features/steps/common.py @@ -4,13 +4,13 @@ from behave.runner import Context -@given("the service is started locally") +@given("The service is started locally") def service_is_started_locally(context: Context) -> None: """Check the service status.""" assert context is not None -@given("the system is in default state") +@given("The system is in default state") def system_in_default_state(context: Context) -> None: """Check the default system state.""" assert context is not None diff --git a/uv.lock b/uv.lock index 0843d8484..a1980b9f9 100644 --- a/uv.lock +++ b/uv.lock @@ -166,16 +166,19 @@ wheels = [ [[package]] name = "behave" -version = "1.2.6" +version = "1.3.0" source = { registry = "https://pypi.org/simple" } dependencies = [ + { name = "colorama" }, + { name = "cucumber-expressions" }, + { name = "cucumber-tag-expressions" }, { name = "parse" }, { name = "parse-type" }, { name = "six" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/c8/4b/d0a8c23b6c8985e5544ea96d27105a273ea22051317f850c2cdbf2029fe4/behave-1.2.6.tar.gz", hash = "sha256:b9662327aa53294c1351b0a9c369093ccec1d21026f050c3bd9b3e5cccf81a86", size = 701696, upload-time = "2018-02-25T20:06:38.851Z" } +sdist = { url = "https://files.pythonhosted.org/packages/76/19/774284df603139d2dda55c9901c45c4c08c84847371cc1444b1c0a5f12b7/behave-1.3.0.tar.gz", hash = "sha256:b32ec1a1ed67f23adc007c1cb7ee31ac1c939638d30c8e3e27a00d9ddb063c09", size = 880792, upload-time = "2025-08-04T06:40:24.288Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a8/6c/ec9169548b6c4cb877aaa6773408ca08ae2a282805b958dbc163cb19822d/behave-1.2.6-py2.py3-none-any.whl", hash = "sha256:ebda1a6c9e5bfe95c5f9f0a2794e01c7098b3dde86c10a95d8621c5907ff6f1c", size = 136779, upload-time = "2018-02-25T20:06:34.436Z" }, + { url = "https://files.pythonhosted.org/packages/15/0a/b8290a376ce7ae3b9b9477aecec8f0e04e958a0089a49f5b30642cb60012/behave-1.3.0-py2.py3-none-any.whl", hash = "sha256:657ee8c167af716e6ab7b817100bb427a2674440d431751af47af9ffd8a90b57", size = 221862, upload-time = "2025-08-04T06:40:22.763Z" }, ] [[package]] @@ -400,6 +403,24 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/0a/bc/16e0276078c2de3ceef6b5a34b965f4436215efac45313df90d55f0ba2d2/cryptography-45.0.6-cp37-abi3-win_amd64.whl", hash = "sha256:20d15aed3ee522faac1a39fbfdfee25d17b1284bafd808e1640a74846d7c4d1b", size = 3390459, upload-time = "2025-08-05T23:59:03.358Z" }, ] +[[package]] +name = "cucumber-expressions" +version = "18.0.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/c6/7d/f4e231167b23b3d7348aa1c90117ce8854fae186d6984ad66d705df24061/cucumber_expressions-18.0.1.tar.gz", hash = "sha256:86ce41bf28ee520408416f38022e5a083d815edf04a0bd1dae46d474ca597c60", size = 22232, upload-time = "2024-10-28T11:38:48.672Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/80/e0/31ce90dad5234c3d52432bfce7562aa11cda4848aea90936a4be6c67d7ab/cucumber_expressions-18.0.1-py3-none-any.whl", hash = "sha256:86230d503cdda7ef35a1f2072a882d7d57c740aa4c163c82b07f039b6bc60c42", size = 20211, upload-time = "2024-10-28T11:38:47.101Z" }, +] + +[[package]] +name = "cucumber-tag-expressions" +version = "6.2.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a2/81/32a2dc51c0720b34f642a6e79da6d89525c1eafd8902798026c233201f6f/cucumber_tag_expressions-6.2.0.tar.gz", hash = "sha256:b60aa2cdbf9ac43e28d9b0e4fd49edf9f09d5d941257d2912f5228f9d166c023", size = 41459, upload-time = "2025-05-25T12:30:43.25Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/30/99/0e9ac5b8429f39a05de5cd4731eac57738ce030dcd852aefe36a7102a4ce/cucumber_tag_expressions-6.2.0-py2.py3-none-any.whl", hash = "sha256:f94404b656831c56a3815da5305ac097003884d2ae64fa51f5f4fad82d97e583", size = 9333, upload-time = "2025-05-25T12:30:41.408Z" }, +] + [[package]] name = "dill" version = "0.4.0" @@ -917,7 +938,7 @@ build = [ ] dev = [ { name = "aiosqlite" }, - { name = "behave", specifier = "==1.2.6" }, + { name = "behave", specifier = ">=1.3.0" }, { name = "black", specifier = ">=25.1.0" }, { name = "build", specifier = ">=1.2.2.post1" }, { name = "mypy", specifier = ">=1.16.0" },