forked from google/turbinia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
776 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[flake8] | ||
max-line-length=99 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
Turbinia API Server | ||
Turbinia is an open-source framework for deploying, managing, and running distributed forensic workloads | ||
The version of the OpenAPI document: 1.0.0 | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
""" # noqa: E501 | ||
|
||
|
||
from setuptools import setup, find_packages # noqa: H301 | ||
|
||
# To install the library, run the following | ||
# | ||
# python setup.py install | ||
# | ||
# prerequisite: setuptools | ||
# http://pypi.python.org/pypi/setuptools | ||
NAME = "turbinia-api-lib" | ||
VERSION = "1.0.0" | ||
PYTHON_REQUIRES = ">=3.7" | ||
REQUIRES = [ | ||
"urllib3 >= 1.25.3, < 2.1.0", | ||
"python-dateutil", | ||
"pydantic >= 1.10.5, < 2", | ||
"aenum" | ||
] | ||
|
||
setup( | ||
name=NAME, | ||
version=VERSION, | ||
description="Turbinia API Server", | ||
author="OpenAPI Generator community", | ||
author_email="team@openapitools.org", | ||
url="", | ||
keywords=["OpenAPI", "OpenAPI-Generator", "Turbinia API Server"], | ||
install_requires=REQUIRES, | ||
packages=find_packages(exclude=["test", "tests"]), | ||
include_package_data=True, | ||
license="Apache License 2.0", | ||
long_description_content_type='text/markdown', | ||
long_description="""\ | ||
Turbinia is an open-source framework for deploying, managing, and running distributed forensic workloads | ||
""", # noqa: E501 | ||
package_data={"turbinia_api_lib": ["py.typed"]}, | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
Turbinia API Server | ||
Turbinia is an open-source framework for deploying, managing, and running distributed forensic workloads | ||
The version of the OpenAPI document: 1.0.0 | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
""" # noqa: E501 | ||
|
||
|
||
import unittest | ||
|
||
from turbinia_api_lib.models.base_request_options import BaseRequestOptions | ||
|
||
class TestBaseRequestOptions(unittest.TestCase): | ||
"""BaseRequestOptions unit test stubs""" | ||
|
||
def setUp(self): | ||
pass | ||
|
||
def tearDown(self): | ||
pass | ||
|
||
def make_instance(self, include_optional) -> BaseRequestOptions: | ||
"""Test BaseRequestOptions | ||
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 `BaseRequestOptions` | ||
""" | ||
model = BaseRequestOptions() | ||
if include_optional: | ||
return BaseRequestOptions( | ||
filter_patterns = [ | ||
'' | ||
], | ||
group_id = '', | ||
jobs_allowlist = [ | ||
'' | ||
], | ||
jobs_denylist = [ | ||
'' | ||
], | ||
reason = '', | ||
recipe_data = '', | ||
recipe_name = '', | ||
request_id = '', | ||
requester = '', | ||
sketch_id = 56, | ||
yara_rules = '' | ||
) | ||
else: | ||
return BaseRequestOptions( | ||
) | ||
""" | ||
|
||
def testBaseRequestOptions(self): | ||
"""Test BaseRequestOptions""" | ||
# inst_req_only = self.make_instance(include_optional=False) | ||
# inst_req_and_optional = self.make_instance(include_optional=True) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
Turbinia API Server | ||
Turbinia is an open-source framework for deploying, managing, and running distributed forensic workloads | ||
The version of the OpenAPI document: 1.0.0 | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
""" # noqa: E501 | ||
|
||
|
||
import unittest | ||
|
||
from turbinia_api_lib.models.complete_turbinia_stats import CompleteTurbiniaStats | ||
|
||
class TestCompleteTurbiniaStats(unittest.TestCase): | ||
"""CompleteTurbiniaStats unit test stubs""" | ||
|
||
def setUp(self): | ||
pass | ||
|
||
def tearDown(self): | ||
pass | ||
|
||
def make_instance(self, include_optional) -> CompleteTurbiniaStats: | ||
"""Test CompleteTurbiniaStats | ||
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 `CompleteTurbiniaStats` | ||
""" | ||
model = CompleteTurbiniaStats() | ||
if include_optional: | ||
return CompleteTurbiniaStats( | ||
all_tasks = turbinia_api_lib.models.all_tasks.All Tasks(), | ||
failed_tasks = turbinia_api_lib.models.failed_tasks.Failed Tasks(), | ||
requests = turbinia_api_lib.models.requests.Requests(), | ||
successful_tasks = turbinia_api_lib.models.successful_tasks.Successful Tasks(), | ||
tasks_per_type = turbinia_api_lib.models.tasks_per_type.Tasks Per Type(), | ||
tasks_per_user = turbinia_api_lib.models.tasks_per_user.Tasks Per User(), | ||
tasks_per_worker = turbinia_api_lib.models.tasks_per_worker.Tasks Per Worker() | ||
) | ||
else: | ||
return CompleteTurbiniaStats( | ||
) | ||
""" | ||
|
||
def testCompleteTurbiniaStats(self): | ||
"""Test CompleteTurbiniaStats""" | ||
# inst_req_only = self.make_instance(include_optional=False) | ||
# inst_req_and_optional = self.make_instance(include_optional=True) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
Turbinia API Server | ||
Turbinia is an open-source framework for deploying, managing, and running distributed forensic workloads | ||
The version of the OpenAPI document: 1.0.0 | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
""" # noqa: E501 | ||
|
||
|
||
import unittest | ||
|
||
from turbinia_api_lib.models.http_validation_error import HTTPValidationError | ||
|
||
class TestHTTPValidationError(unittest.TestCase): | ||
"""HTTPValidationError unit test stubs""" | ||
|
||
def setUp(self): | ||
pass | ||
|
||
def tearDown(self): | ||
pass | ||
|
||
def make_instance(self, include_optional) -> HTTPValidationError: | ||
"""Test HTTPValidationError | ||
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 `HTTPValidationError` | ||
""" | ||
model = HTTPValidationError() | ||
if include_optional: | ||
return HTTPValidationError( | ||
detail = [ | ||
turbinia_api_lib.models.validation_error.ValidationError( | ||
loc = [ | ||
null | ||
], | ||
msg = '', | ||
type = '', ) | ||
] | ||
) | ||
else: | ||
return HTTPValidationError( | ||
) | ||
""" | ||
|
||
def testHTTPValidationError(self): | ||
"""Test HTTPValidationError""" | ||
# inst_req_only = self.make_instance(include_optional=False) | ||
# inst_req_and_optional = self.make_instance(include_optional=True) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
Turbinia API Server | ||
Turbinia is an open-source framework for deploying, managing, and running distributed forensic workloads | ||
The version of the OpenAPI document: 1.0.0 | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
""" # noqa: E501 | ||
|
||
|
||
import unittest | ||
|
||
from turbinia_api_lib.models.location_inner import LocationInner | ||
|
||
class TestLocationInner(unittest.TestCase): | ||
"""LocationInner unit test stubs""" | ||
|
||
def setUp(self): | ||
pass | ||
|
||
def tearDown(self): | ||
pass | ||
|
||
def make_instance(self, include_optional) -> LocationInner: | ||
"""Test LocationInner | ||
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 `LocationInner` | ||
""" | ||
model = LocationInner() | ||
if include_optional: | ||
return LocationInner( | ||
) | ||
else: | ||
return LocationInner( | ||
) | ||
""" | ||
|
||
def testLocationInner(self): | ||
"""Test LocationInner""" | ||
# inst_req_only = self.make_instance(include_optional=False) | ||
# inst_req_and_optional = self.make_instance(include_optional=True) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
Turbinia API Server | ||
Turbinia is an open-source framework for deploying, managing, and running distributed forensic workloads | ||
The version of the OpenAPI document: 1.0.0 | ||
Generated by OpenAPI Generator (https://openapi-generator.tech) | ||
Do not edit the class manually. | ||
""" # noqa: E501 | ||
|
||
|
||
import unittest | ||
|
||
from turbinia_api_lib.models.request import Request | ||
|
||
class TestRequest(unittest.TestCase): | ||
"""Request unit test stubs""" | ||
|
||
def setUp(self): | ||
pass | ||
|
||
def tearDown(self): | ||
pass | ||
|
||
def make_instance(self, include_optional) -> Request: | ||
"""Test Request | ||
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 `Request` | ||
""" | ||
model = Request() | ||
if include_optional: | ||
return Request( | ||
description = 'Turbinia request object', | ||
evidence = turbinia_api_lib.models.evidence.Evidence(), | ||
request_options = turbinia_api_lib.models.base_request_options.BaseRequestOptions( | ||
filter_patterns = [ | ||
'' | ||
], | ||
group_id = '', | ||
jobs_allowlist = [ | ||
'' | ||
], | ||
jobs_denylist = [ | ||
'' | ||
], | ||
reason = '', | ||
recipe_data = '', | ||
recipe_name = '', | ||
request_id = '', | ||
requester = '', | ||
sketch_id = 56, | ||
yara_rules = '', ) | ||
) | ||
else: | ||
return Request( | ||
evidence = turbinia_api_lib.models.evidence.Evidence(), | ||
request_options = turbinia_api_lib.models.base_request_options.BaseRequestOptions( | ||
filter_patterns = [ | ||
'' | ||
], | ||
group_id = '', | ||
jobs_allowlist = [ | ||
'' | ||
], | ||
jobs_denylist = [ | ||
'' | ||
], | ||
reason = '', | ||
recipe_data = '', | ||
recipe_name = '', | ||
request_id = '', | ||
requester = '', | ||
sketch_id = 56, | ||
yara_rules = '', ), | ||
) | ||
""" | ||
|
||
def testRequest(self): | ||
"""Test Request""" | ||
# inst_req_only = self.make_instance(include_optional=False) | ||
# inst_req_and_optional = self.make_instance(include_optional=True) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |
Oops, something went wrong.