generated from Luis/nextjs-python-web-template
Stash changes
This commit is contained in:
@@ -26,10 +26,10 @@ class TestClientsApi(unittest.TestCase):
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_get_all_clients(self) -> None:
|
||||
"""Test case for get_all_clients
|
||||
def test_get_clients_by_did(self) -> None:
|
||||
"""Test case for get_clients_by_did
|
||||
|
||||
Get All Clients # noqa: E501
|
||||
Get Clients By Did # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
@@ -75,6 +75,13 @@ class TestEntitiesApi(unittest.TestCase):
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_get_entity_by_name(self) -> None:
|
||||
"""Test case for get_entity_by_name
|
||||
|
||||
Get Entity By Name # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
@@ -40,11 +40,16 @@ class TestEntity(unittest.TestCase):
|
||||
name = 'C1',
|
||||
ip = '127.0.0.1',
|
||||
visible = True,
|
||||
other = openapi_client.models.other.Other(),
|
||||
other = {network=Carlos Home Network, roles=[service repository, service prosumer]},
|
||||
attached = True
|
||||
)
|
||||
else:
|
||||
return Entity(
|
||||
did = 'did:sov:test:1234',
|
||||
name = 'C1',
|
||||
ip = '127.0.0.1',
|
||||
visible = True,
|
||||
other = {network=Carlos Home Network, roles=[service repository, service prosumer]},
|
||||
attached = True,
|
||||
)
|
||||
"""
|
||||
|
||||
@@ -40,10 +40,15 @@ class TestEntityCreate(unittest.TestCase):
|
||||
name = 'C1',
|
||||
ip = '127.0.0.1',
|
||||
visible = True,
|
||||
other = openapi_client.models.other.Other()
|
||||
other = {network=Carlos Home Network, roles=[service repository, service prosumer]}
|
||||
)
|
||||
else:
|
||||
return EntityCreate(
|
||||
did = 'did:sov:test:1234',
|
||||
name = 'C1',
|
||||
ip = '127.0.0.1',
|
||||
visible = True,
|
||||
other = {network=Carlos Home Network, roles=[service repository, service prosumer]},
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -39,12 +39,16 @@ class TestResolution(unittest.TestCase):
|
||||
requester_name = 'C1',
|
||||
requester_did = 'did:sov:test:1122',
|
||||
resolved_did = 'did:sov:test:1234',
|
||||
other = openapi_client.models.other.Other(),
|
||||
other = {test=test},
|
||||
timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
id = 56
|
||||
)
|
||||
else:
|
||||
return Resolution(
|
||||
requester_name = 'C1',
|
||||
requester_did = 'did:sov:test:1122',
|
||||
resolved_did = 'did:sov:test:1234',
|
||||
other = {test=test},
|
||||
timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
|
||||
id = 56,
|
||||
)
|
||||
|
||||
@@ -41,11 +41,32 @@ class TestService(unittest.TestCase):
|
||||
service_type = '3D Printing',
|
||||
endpoint_url = 'http://127.0.0.1:8000',
|
||||
status = 'unknown',
|
||||
other = openapi_client.models.other.Other(),
|
||||
entity_did = 'did:sov:test:1234'
|
||||
other = {action=[register, deregister, delete, create]},
|
||||
entity_did = 'did:sov:test:1234',
|
||||
entity = openapi_client.models.entity.Entity(
|
||||
did = 'did:sov:test:1234',
|
||||
name = 'C1',
|
||||
ip = '127.0.0.1',
|
||||
visible = True,
|
||||
other = {network=Carlos Home Network, roles=[service repository, service prosumer]},
|
||||
attached = True, )
|
||||
)
|
||||
else:
|
||||
return Service(
|
||||
uuid = '8e285c0c-4e40-430a-a477-26b3b81e30df',
|
||||
service_name = 'Carlos Printing',
|
||||
service_type = '3D Printing',
|
||||
endpoint_url = 'http://127.0.0.1:8000',
|
||||
status = 'unknown',
|
||||
other = {action=[register, deregister, delete, create]},
|
||||
entity_did = 'did:sov:test:1234',
|
||||
entity = openapi_client.models.entity.Entity(
|
||||
did = 'did:sov:test:1234',
|
||||
name = 'C1',
|
||||
ip = '127.0.0.1',
|
||||
visible = True,
|
||||
other = {network=Carlos Home Network, roles=[service repository, service prosumer]},
|
||||
attached = True, ),
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
@@ -41,11 +41,18 @@ class TestServiceCreate(unittest.TestCase):
|
||||
service_type = '3D Printing',
|
||||
endpoint_url = 'http://127.0.0.1:8000',
|
||||
status = 'unknown',
|
||||
other = openapi_client.models.other.Other(),
|
||||
other = {action=[register, deregister, delete, create]},
|
||||
entity_did = 'did:sov:test:1234'
|
||||
)
|
||||
else:
|
||||
return ServiceCreate(
|
||||
uuid = '8e285c0c-4e40-430a-a477-26b3b81e30df',
|
||||
service_name = 'Carlos Printing',
|
||||
service_type = '3D Printing',
|
||||
endpoint_url = 'http://127.0.0.1:8000',
|
||||
status = 'unknown',
|
||||
other = {action=[register, deregister, delete, create]},
|
||||
entity_did = 'did:sov:test:1234',
|
||||
)
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user