Skip to content

Commit

Permalink
tests: test versioninfo dt list server-side faked paging
Browse files Browse the repository at this point in the history
  • Loading branch information
bodik committed Dec 4, 2023
1 parent 890b851 commit 10caeed
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/server/storage/views/test_versioninfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,24 @@ def test_versioninfo_list_json_route_query_form(cl_operator, service_factory, ve
product='apache httpd',
version='1.0'
)
service2 = service_factory.create(port=1)
service2 = service_factory.create(port=2)
versioninfo_factory.create(
host_id=service2.host.id,
host_address=service2.host.address,
host_hostname=service2.host.hostname,
service_proto=service2.proto,
service_port=service2.port,
product='apache httpd',
version='1.1'
)
service3 = service_factory.create(port=3)
versioninfo_factory.create(
host_id=service3.host.id,
host_address=service3.host.address,
host_hostname=service3.host.hostname,
service_proto=service3.proto,
service_port=service3.port,
product='apache httpd',
version='1.2'
)

Expand All @@ -78,7 +88,7 @@ def test_versioninfo_list_json_route_query_form(cl_operator, service_factory, ve
product='ApAcHe',
versionspec=">=1.1"
),
{'draw': 1, 'start': 0, 'length': 100}
{'draw': 1, 'start': 1, 'length': 100}
)
assert response.status_code == HTTPStatus.OK
response_data = json.loads(response.body.decode('utf-8'))
Expand Down

0 comments on commit 10caeed

Please sign in to comment.