Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #142 from CSCfi/dev
Browse files Browse the repository at this point in the history
release 1.4.0
  • Loading branch information
teemukataja committed Dec 8, 2021
2 parents 2ac858f + 0c1789b commit ad23f5f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
asyncio==3.4.3
aiohttp==3.8.0
aiohttp==3.8.1
aiohttp-cors==0.7.0
aiocache==0.11.1
aiomcache==0.6.0
ujson==4.2.0
ujson==4.3.0
uvloop==0.14.0; python_version < '3.7'
uvloop==0.16.0; python_version >= '3.7'
asyncpg==0.24.0
asyncpg==0.25.0
jsonschema==4.2.1
gunicorn==20.1.0
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="beacon_network",
version="1.3.1",
version="1.4.0",
description="Beacon Network services",
long_description_content_type="text/markdown",
project_urls={
Expand Down Expand Up @@ -30,20 +30,20 @@
package_data={"": ["*.json", "*.ini"]},
install_requires=[
"asyncio==3.4.3",
"aiohttp==3.8.0",
"aiohttp==3.8.1",
"aiohttp-cors==0.7.0",
"aiocache==0.11.1",
"aiomcache==0.6.0",
"ujson==4.2.0",
"ujson==4.3.0",
"uvloop==0.14.0; python_version < '3.7'",
"uvloop==0.16.0; python_version >= '3.7'",
"asyncpg==0.24.0",
"asyncpg==0.25.0",
"jsonschema==4.2.1",
"gunicorn==20.1.0",
],
extras_require={
"test": [
"coverage==6.1.1",
"coverage==6.2",
"pytest<6.3",
"pytest-cov==3.0.0",
"testfixtures==6.18.3",
Expand All @@ -52,7 +52,7 @@
"flake8-docstrings==1.6.0",
"asynctest==0.13.0",
"aioresponses==0.7.2",
"black==21.10b0",
"black==21.12b0",
],
"docs": ["sphinx >= 1.4", "sphinx_rtd_theme==1.0.0"],
},
Expand Down
5 changes: 2 additions & 3 deletions tests/integration/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async def test_service_operations(endpoint):
assert update_response.status_code == 200, "HTTP status code error service delete"


async def test_query_aggregator(endpoint, expected_nb, expected_beacon):
async def test_query_aggregator(endpoint, expected_beacon):
"""Test Aggregator query operation."""
LOG.debug("make a query over the aggregator")
params = {
Expand All @@ -117,7 +117,6 @@ async def test_query_aggregator(endpoint, expected_nb, expected_beacon):
response = await client.get(f"{endpoint}/query", params=params)
data = response.json()
assert response.status_code == 200, "HTTP status code error aggregator query"
print(f" Number of responses: {len(data)}")
assert re.search(f'"service":"{expected_beacon}"', ujson.dumps(data, escape_forward_slashes=False), re.M), "We did not find the expected beacon"


Expand All @@ -135,7 +134,7 @@ async def main():
await test_service_operations(REGISTRY)

LOG.debug("=== Test Aggregator Endpoint ===")
await test_query_aggregator(AGGREGATOR, 8, "http://bad_beacon:5052/query")
await test_query_aggregator(AGGREGATOR, "http://bad_beacon:5052/query")


if __name__ == "__main__":
Expand Down

0 comments on commit ad23f5f

Please sign in to comment.