add: demo server and client

This commit is contained in:
Charles
2024-04-06 20:45:15 -07:00
parent 5a149bc922
commit 72effb5b2a
100 changed files with 11603 additions and 62 deletions

View File

View File

@@ -0,0 +1,58 @@
# coding: utf-8
"""
PeerNetService API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.claim_ice_candidates_response import ClaimIceCandidatesResponse
class TestClaimIceCandidatesResponse(unittest.TestCase):
"""ClaimIceCandidatesResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ClaimIceCandidatesResponse:
"""Test ClaimIceCandidatesResponse
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `ClaimIceCandidatesResponse`
"""
model = ClaimIceCandidatesResponse()
if include_optional:
return ClaimIceCandidatesResponse(
ice_candidates = [
openapi_client.models.ice_candidate.IceCandidate(
name = '',
candidate = '',
sdp_mid = '',
sdp_line_index = 56,
username_fragment = '', )
]
)
else:
return ClaimIceCandidatesResponse(
)
"""
def testClaimIceCandidatesResponse(self):
"""Test ClaimIceCandidatesResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,51 @@
# coding: utf-8
"""
PeerNetService API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.google_protobuf_any import GoogleProtobufAny
class TestGoogleProtobufAny(unittest.TestCase):
"""GoogleProtobufAny unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> GoogleProtobufAny:
"""Test GoogleProtobufAny
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `GoogleProtobufAny`
"""
model = GoogleProtobufAny()
if include_optional:
return GoogleProtobufAny(
type = ''
)
else:
return GoogleProtobufAny(
)
"""
def testGoogleProtobufAny(self):
"""Test GoogleProtobufAny"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,55 @@
# coding: utf-8
"""
PeerNetService API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.ice_candidate import IceCandidate
class TestIceCandidate(unittest.TestCase):
"""IceCandidate unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> IceCandidate:
"""Test IceCandidate
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `IceCandidate`
"""
model = IceCandidate()
if include_optional:
return IceCandidate(
name = '',
candidate = '',
sdp_mid = '',
sdp_line_index = 56,
username_fragment = ''
)
else:
return IceCandidate(
)
"""
def testIceCandidate(self):
"""Test IceCandidate"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,53 @@
# coding: utf-8
"""
PeerNetService API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.ice_session_description import IceSessionDescription
class TestIceSessionDescription(unittest.TestCase):
"""IceSessionDescription unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> IceSessionDescription:
"""Test IceSessionDescription
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `IceSessionDescription`
"""
model = IceSessionDescription()
if include_optional:
return IceSessionDescription(
name = '',
sdp_type = '',
sdp = ''
)
else:
return IceSessionDescription(
)
"""
def testIceSessionDescription(self):
"""Test IceSessionDescription"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,63 @@
# coding: utf-8
"""
PeerNetService API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.knock import Knock
class TestKnock(unittest.TestCase):
"""Knock unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Knock:
"""Test Knock
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Knock`
"""
model = Knock()
if include_optional:
return Knock(
name = '',
service = openapi_client.models.service.Service(
name = '',
protocol = '',
version = '', ),
offer = openapi_client.models.ice_session_description.IceSessionDescription(
name = '',
sdp_type = '',
sdp = '', ),
answer = openapi_client.models.ice_session_description.IceSessionDescription(
name = '',
sdp_type = '',
sdp = '', )
)
else:
return Knock(
)
"""
def testKnock(self):
"""Test Knock"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,63 @@
# coding: utf-8
"""
PeerNetService API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.list_knocks_response import ListKnocksResponse
class TestListKnocksResponse(unittest.TestCase):
"""ListKnocksResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ListKnocksResponse:
"""Test ListKnocksResponse
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `ListKnocksResponse`
"""
model = ListKnocksResponse()
if include_optional:
return ListKnocksResponse(
knocks = [
openapi_client.models.knock.Knock(
name = '',
service = null,
offer = openapi_client.models.ice_session_description.IceSessionDescription(
name = '',
sdp_type = '',
sdp = '', ),
answer = openapi_client.models.ice_session_description.IceSessionDescription(
name = '',
sdp_type = '',
sdp = '', ), )
]
)
else:
return ListKnocksResponse(
)
"""
def testListKnocksResponse(self):
"""Test ListKnocksResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,91 @@
# coding: utf-8
"""
PeerNetService API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.api.peer_net_service_api import PeerNetServiceApi
class TestPeerNetServiceApi(unittest.TestCase):
"""PeerNetServiceApi unit test stubs"""
def setUp(self) -> None:
self.api = PeerNetServiceApi()
def tearDown(self) -> None:
pass
def test_peer_net_service_claim_ice_candidates(self) -> None:
"""Test case for peer_net_service_claim_ice_candidates
"""
pass
def test_peer_net_service_create_ice_candidate(self) -> None:
"""Test case for peer_net_service_create_ice_candidate
"""
pass
def test_peer_net_service_create_knock(self) -> None:
"""Test case for peer_net_service_create_knock
"""
pass
def test_peer_net_service_create_server(self) -> None:
"""Test case for peer_net_service_create_server
"""
pass
def test_peer_net_service_create_service(self) -> None:
"""Test case for peer_net_service_create_service
"""
pass
def test_peer_net_service_delete_server(self) -> None:
"""Test case for peer_net_service_delete_server
"""
pass
def test_peer_net_service_delete_service(self) -> None:
"""Test case for peer_net_service_delete_service
"""
pass
def test_peer_net_service_get_room(self) -> None:
"""Test case for peer_net_service_get_room
"""
pass
def test_peer_net_service_list_knocks(self) -> None:
"""Test case for peer_net_service_list_knocks
"""
pass
def test_peer_net_service_update_knock(self) -> None:
"""Test case for peer_net_service_update_knock
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,67 @@
# coding: utf-8
"""
PeerNetService API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.room import Room
class TestRoom(unittest.TestCase):
"""Room unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Room:
"""Test Room
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Room`
"""
model = Room()
if include_optional:
return Room(
name = '',
display_name = '',
servers = [
openapi_client.models.server.Server(
name = '',
rooms = [
''
],
auth_token = '',
display_name = '',
services = [
openapi_client.models.service.Service(
name = '',
protocol = '',
version = '', )
], )
]
)
else:
return Room(
)
"""
def testRoom(self):
"""Test Room"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,62 @@
# coding: utf-8
"""
PeerNetService API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.server import Server
class TestServer(unittest.TestCase):
"""Server unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Server:
"""Test Server
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Server`
"""
model = Server()
if include_optional:
return Server(
name = '',
rooms = [
''
],
auth_token = '',
display_name = '',
services = [
openapi_client.models.service.Service(
name = '',
protocol = '',
version = '', )
]
)
else:
return Server(
)
"""
def testServer(self):
"""Test Server"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,53 @@
# coding: utf-8
"""
PeerNetService API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.service import Service
class TestService(unittest.TestCase):
"""Service unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Service:
"""Test Service
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Service`
"""
model = Service()
if include_optional:
return Service(
name = '',
protocol = '',
version = ''
)
else:
return Service(
)
"""
def testService(self):
"""Test Service"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@@ -0,0 +1,55 @@
# coding: utf-8
"""
PeerNetService API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.0.1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.status import Status
class TestStatus(unittest.TestCase):
"""Status unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> Status:
"""Test Status
include_option is a boolean, when False only required
params are included, when True both required and
optional params are included """
# uncomment below to create an instance of `Status`
"""
model = Status()
if include_optional:
return Status(
code = 56,
message = '',
details = [
{ }
]
)
else:
return Status(
)
"""
def testStatus(self):
"""Test Status"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()