Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix actions script failing #1

Merged
merged 2 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.github/workflows/python.yml
.gitignore
.gitlab-ci.yml
.openapi-generator-ignore
.travis.yml
README.md
agones_python_sdk/__init__.py
Expand Down Expand Up @@ -51,4 +50,21 @@ requirements.txt
setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_game_server_object_meta.py
test/test_game_server_spec.py
test/test_game_server_spec_health.py
test/test_googlerpc_status.py
test/test_protobuf_any.py
test/test_sdk_api.py
test/test_sdk_duration.py
test/test_sdk_game_server.py
test/test_sdk_game_server_status.py
test/test_sdk_key_value.py
test/test_status_address.py
test/test_status_counter_status.py
test/test_status_list_status.py
test/test_status_player_status.py
test/test_status_port.py
test/test_stream_result_of_sdk_game_server.py
tox.ini
Empty file added test/__init__.py
Empty file.
63 changes: 63 additions & 0 deletions test/test_game_server_object_meta.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# coding: utf-8

"""
sdk.proto

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: version not set
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


import unittest

from agones_python_sdk.models.game_server_object_meta import GameServerObjectMeta

class TestGameServerObjectMeta(unittest.TestCase):
"""GameServerObjectMeta unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional) -> GameServerObjectMeta:
"""Test GameServerObjectMeta
include_optional 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 `GameServerObjectMeta`
"""
model = GameServerObjectMeta()
if include_optional:
return GameServerObjectMeta(
name = '',
namespace = '',
uid = '',
resource_version = '',
generation = '',
creation_timestamp = '',
deletion_timestamp = '',
annotations = {
'key' : ''
},
labels = {
'key' : ''
}
)
else:
return GameServerObjectMeta(
)
"""

def testGameServerObjectMeta(self):
"""Test GameServerObjectMeta"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
unittest.main()
55 changes: 55 additions & 0 deletions test/test_game_server_spec.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# coding: utf-8

"""
sdk.proto

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: version not set
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


import unittest

from agones_python_sdk.models.game_server_spec import GameServerSpec

class TestGameServerSpec(unittest.TestCase):
"""GameServerSpec unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional) -> GameServerSpec:
"""Test GameServerSpec
include_optional 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 `GameServerSpec`
"""
model = GameServerSpec()
if include_optional:
return GameServerSpec(
health = agones_python_sdk.models.game_server_spec_health.GameServerSpecHealth(
disabled = True,
period_seconds = 56,
failure_threshold = 56,
initial_delay_seconds = 56, )
)
else:
return GameServerSpec(
)
"""

def testGameServerSpec(self):
"""Test GameServerSpec"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
unittest.main()
54 changes: 54 additions & 0 deletions test/test_game_server_spec_health.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# coding: utf-8

"""
sdk.proto

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: version not set
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


import unittest

from agones_python_sdk.models.game_server_spec_health import GameServerSpecHealth

class TestGameServerSpecHealth(unittest.TestCase):
"""GameServerSpecHealth unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional) -> GameServerSpecHealth:
"""Test GameServerSpecHealth
include_optional 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 `GameServerSpecHealth`
"""
model = GameServerSpecHealth()
if include_optional:
return GameServerSpecHealth(
disabled = True,
period_seconds = 56,
failure_threshold = 56,
initial_delay_seconds = 56
)
else:
return GameServerSpecHealth(
)
"""

def testGameServerSpecHealth(self):
"""Test GameServerSpecHealth"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
unittest.main()
57 changes: 57 additions & 0 deletions test/test_googlerpc_status.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# coding: utf-8

"""
sdk.proto

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: version not set
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


import unittest

from agones_python_sdk.models.googlerpc_status import GooglerpcStatus

class TestGooglerpcStatus(unittest.TestCase):
"""GooglerpcStatus unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional) -> GooglerpcStatus:
"""Test GooglerpcStatus
include_optional 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 `GooglerpcStatus`
"""
model = GooglerpcStatus()
if include_optional:
return GooglerpcStatus(
code = 56,
message = '',
details = [
{
'key' : None
}
]
)
else:
return GooglerpcStatus(
)
"""

def testGooglerpcStatus(self):
"""Test GooglerpcStatus"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
unittest.main()
51 changes: 51 additions & 0 deletions test/test_protobuf_any.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# coding: utf-8

"""
sdk.proto

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

The version of the OpenAPI document: version not set
Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


import unittest

from agones_python_sdk.models.protobuf_any import ProtobufAny

class TestProtobufAny(unittest.TestCase):
"""ProtobufAny unit test stubs"""

def setUp(self):
pass

def tearDown(self):
pass

def make_instance(self, include_optional) -> ProtobufAny:
"""Test ProtobufAny
include_optional 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 `ProtobufAny`
"""
model = ProtobufAny()
if include_optional:
return ProtobufAny(
type = ''
)
else:
return ProtobufAny(
)
"""

def testProtobufAny(self):
"""Test ProtobufAny"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)

if __name__ == '__main__':
unittest.main()
Loading