Skip to content

Commit 4d63f3f

Browse files
committed
Updates
1 parent 523b300 commit 4d63f3f

16 files changed

+776
-0
lines changed

turbinia/api/client/setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[flake8]
2+
max-line-length=99

turbinia/api/client/setup.py

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# coding: utf-8
2+
3+
"""
4+
Turbinia API Server
5+
6+
Turbinia is an open-source framework for deploying, managing, and running distributed forensic workloads
7+
8+
The version of the OpenAPI document: 1.0.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
10+
11+
Do not edit the class manually.
12+
""" # noqa: E501
13+
14+
15+
from setuptools import setup, find_packages # noqa: H301
16+
17+
# To install the library, run the following
18+
#
19+
# python setup.py install
20+
#
21+
# prerequisite: setuptools
22+
# http://pypi.python.org/pypi/setuptools
23+
NAME = "turbinia-api-lib"
24+
VERSION = "1.0.0"
25+
PYTHON_REQUIRES = ">=3.7"
26+
REQUIRES = [
27+
"urllib3 >= 1.25.3, < 2.1.0",
28+
"python-dateutil",
29+
"pydantic >= 1.10.5, < 2",
30+
"aenum"
31+
]
32+
33+
setup(
34+
name=NAME,
35+
version=VERSION,
36+
description="Turbinia API Server",
37+
author="OpenAPI Generator community",
38+
author_email="team@openapitools.org",
39+
url="",
40+
keywords=["OpenAPI", "OpenAPI-Generator", "Turbinia API Server"],
41+
install_requires=REQUIRES,
42+
packages=find_packages(exclude=["test", "tests"]),
43+
include_package_data=True,
44+
license="Apache License 2.0",
45+
long_description_content_type='text/markdown',
46+
long_description="""\
47+
Turbinia is an open-source framework for deploying, managing, and running distributed forensic workloads
48+
""", # noqa: E501
49+
package_data={"turbinia_api_lib": ["py.typed"]},
50+
)

turbinia/api/client/test/__init__.py

Whitespace-only changes.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# coding: utf-8
2+
3+
"""
4+
Turbinia API Server
5+
6+
Turbinia is an open-source framework for deploying, managing, and running distributed forensic workloads
7+
8+
The version of the OpenAPI document: 1.0.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
10+
11+
Do not edit the class manually.
12+
""" # noqa: E501
13+
14+
15+
import unittest
16+
17+
from turbinia_api_lib.models.base_request_options import BaseRequestOptions
18+
19+
class TestBaseRequestOptions(unittest.TestCase):
20+
"""BaseRequestOptions unit test stubs"""
21+
22+
def setUp(self):
23+
pass
24+
25+
def tearDown(self):
26+
pass
27+
28+
def make_instance(self, include_optional) -> BaseRequestOptions:
29+
"""Test BaseRequestOptions
30+
include_option is a boolean, when False only required
31+
params are included, when True both required and
32+
optional params are included """
33+
# uncomment below to create an instance of `BaseRequestOptions`
34+
"""
35+
model = BaseRequestOptions()
36+
if include_optional:
37+
return BaseRequestOptions(
38+
filter_patterns = [
39+
''
40+
],
41+
group_id = '',
42+
jobs_allowlist = [
43+
''
44+
],
45+
jobs_denylist = [
46+
''
47+
],
48+
reason = '',
49+
recipe_data = '',
50+
recipe_name = '',
51+
request_id = '',
52+
requester = '',
53+
sketch_id = 56,
54+
yara_rules = ''
55+
)
56+
else:
57+
return BaseRequestOptions(
58+
)
59+
"""
60+
61+
def testBaseRequestOptions(self):
62+
"""Test BaseRequestOptions"""
63+
# inst_req_only = self.make_instance(include_optional=False)
64+
# inst_req_and_optional = self.make_instance(include_optional=True)
65+
66+
if __name__ == '__main__':
67+
unittest.main()
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# coding: utf-8
2+
3+
"""
4+
Turbinia API Server
5+
6+
Turbinia is an open-source framework for deploying, managing, and running distributed forensic workloads
7+
8+
The version of the OpenAPI document: 1.0.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
10+
11+
Do not edit the class manually.
12+
""" # noqa: E501
13+
14+
15+
import unittest
16+
17+
from turbinia_api_lib.models.complete_turbinia_stats import CompleteTurbiniaStats
18+
19+
class TestCompleteTurbiniaStats(unittest.TestCase):
20+
"""CompleteTurbiniaStats unit test stubs"""
21+
22+
def setUp(self):
23+
pass
24+
25+
def tearDown(self):
26+
pass
27+
28+
def make_instance(self, include_optional) -> CompleteTurbiniaStats:
29+
"""Test CompleteTurbiniaStats
30+
include_option is a boolean, when False only required
31+
params are included, when True both required and
32+
optional params are included """
33+
# uncomment below to create an instance of `CompleteTurbiniaStats`
34+
"""
35+
model = CompleteTurbiniaStats()
36+
if include_optional:
37+
return CompleteTurbiniaStats(
38+
all_tasks = turbinia_api_lib.models.all_tasks.All Tasks(),
39+
failed_tasks = turbinia_api_lib.models.failed_tasks.Failed Tasks(),
40+
requests = turbinia_api_lib.models.requests.Requests(),
41+
successful_tasks = turbinia_api_lib.models.successful_tasks.Successful Tasks(),
42+
tasks_per_type = turbinia_api_lib.models.tasks_per_type.Tasks Per Type(),
43+
tasks_per_user = turbinia_api_lib.models.tasks_per_user.Tasks Per User(),
44+
tasks_per_worker = turbinia_api_lib.models.tasks_per_worker.Tasks Per Worker()
45+
)
46+
else:
47+
return CompleteTurbiniaStats(
48+
)
49+
"""
50+
51+
def testCompleteTurbiniaStats(self):
52+
"""Test CompleteTurbiniaStats"""
53+
# inst_req_only = self.make_instance(include_optional=False)
54+
# inst_req_and_optional = self.make_instance(include_optional=True)
55+
56+
if __name__ == '__main__':
57+
unittest.main()
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# coding: utf-8
2+
3+
"""
4+
Turbinia API Server
5+
6+
Turbinia is an open-source framework for deploying, managing, and running distributed forensic workloads
7+
8+
The version of the OpenAPI document: 1.0.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
10+
11+
Do not edit the class manually.
12+
""" # noqa: E501
13+
14+
15+
import unittest
16+
17+
from turbinia_api_lib.models.http_validation_error import HTTPValidationError
18+
19+
class TestHTTPValidationError(unittest.TestCase):
20+
"""HTTPValidationError unit test stubs"""
21+
22+
def setUp(self):
23+
pass
24+
25+
def tearDown(self):
26+
pass
27+
28+
def make_instance(self, include_optional) -> HTTPValidationError:
29+
"""Test HTTPValidationError
30+
include_option is a boolean, when False only required
31+
params are included, when True both required and
32+
optional params are included """
33+
# uncomment below to create an instance of `HTTPValidationError`
34+
"""
35+
model = HTTPValidationError()
36+
if include_optional:
37+
return HTTPValidationError(
38+
detail = [
39+
turbinia_api_lib.models.validation_error.ValidationError(
40+
loc = [
41+
null
42+
],
43+
msg = '',
44+
type = '', )
45+
]
46+
)
47+
else:
48+
return HTTPValidationError(
49+
)
50+
"""
51+
52+
def testHTTPValidationError(self):
53+
"""Test HTTPValidationError"""
54+
# inst_req_only = self.make_instance(include_optional=False)
55+
# inst_req_and_optional = self.make_instance(include_optional=True)
56+
57+
if __name__ == '__main__':
58+
unittest.main()
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# coding: utf-8
2+
3+
"""
4+
Turbinia API Server
5+
6+
Turbinia is an open-source framework for deploying, managing, and running distributed forensic workloads
7+
8+
The version of the OpenAPI document: 1.0.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
10+
11+
Do not edit the class manually.
12+
""" # noqa: E501
13+
14+
15+
import unittest
16+
17+
from turbinia_api_lib.models.location_inner import LocationInner
18+
19+
class TestLocationInner(unittest.TestCase):
20+
"""LocationInner unit test stubs"""
21+
22+
def setUp(self):
23+
pass
24+
25+
def tearDown(self):
26+
pass
27+
28+
def make_instance(self, include_optional) -> LocationInner:
29+
"""Test LocationInner
30+
include_option is a boolean, when False only required
31+
params are included, when True both required and
32+
optional params are included """
33+
# uncomment below to create an instance of `LocationInner`
34+
"""
35+
model = LocationInner()
36+
if include_optional:
37+
return LocationInner(
38+
)
39+
else:
40+
return LocationInner(
41+
)
42+
"""
43+
44+
def testLocationInner(self):
45+
"""Test LocationInner"""
46+
# inst_req_only = self.make_instance(include_optional=False)
47+
# inst_req_and_optional = self.make_instance(include_optional=True)
48+
49+
if __name__ == '__main__':
50+
unittest.main()
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# coding: utf-8
2+
3+
"""
4+
Turbinia API Server
5+
6+
Turbinia is an open-source framework for deploying, managing, and running distributed forensic workloads
7+
8+
The version of the OpenAPI document: 1.0.0
9+
Generated by OpenAPI Generator (https://openapi-generator.tech)
10+
11+
Do not edit the class manually.
12+
""" # noqa: E501
13+
14+
15+
import unittest
16+
17+
from turbinia_api_lib.models.request import Request
18+
19+
class TestRequest(unittest.TestCase):
20+
"""Request unit test stubs"""
21+
22+
def setUp(self):
23+
pass
24+
25+
def tearDown(self):
26+
pass
27+
28+
def make_instance(self, include_optional) -> Request:
29+
"""Test Request
30+
include_option is a boolean, when False only required
31+
params are included, when True both required and
32+
optional params are included """
33+
# uncomment below to create an instance of `Request`
34+
"""
35+
model = Request()
36+
if include_optional:
37+
return Request(
38+
description = 'Turbinia request object',
39+
evidence = turbinia_api_lib.models.evidence.Evidence(),
40+
request_options = turbinia_api_lib.models.base_request_options.BaseRequestOptions(
41+
filter_patterns = [
42+
''
43+
],
44+
group_id = '',
45+
jobs_allowlist = [
46+
''
47+
],
48+
jobs_denylist = [
49+
''
50+
],
51+
reason = '',
52+
recipe_data = '',
53+
recipe_name = '',
54+
request_id = '',
55+
requester = '',
56+
sketch_id = 56,
57+
yara_rules = '', )
58+
)
59+
else:
60+
return Request(
61+
evidence = turbinia_api_lib.models.evidence.Evidence(),
62+
request_options = turbinia_api_lib.models.base_request_options.BaseRequestOptions(
63+
filter_patterns = [
64+
''
65+
],
66+
group_id = '',
67+
jobs_allowlist = [
68+
''
69+
],
70+
jobs_denylist = [
71+
''
72+
],
73+
reason = '',
74+
recipe_data = '',
75+
recipe_name = '',
76+
request_id = '',
77+
requester = '',
78+
sketch_id = 56,
79+
yara_rules = '', ),
80+
)
81+
"""
82+
83+
def testRequest(self):
84+
"""Test Request"""
85+
# inst_req_only = self.make_instance(include_optional=False)
86+
# inst_req_and_optional = self.make_instance(include_optional=True)
87+
88+
if __name__ == '__main__':
89+
unittest.main()

0 commit comments

Comments
 (0)