mirror of
https://github.com/logos-storage/logos-storage-py-api-client.git
synced 2026-01-02 13:33:11 +00:00
81 lines
2.1 KiB
Python
81 lines
2.1 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
Codex API
|
|
|
|
List of endpoints and interfaces available to Codex API users
|
|
|
|
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 codex_api_client.api.data_api import DataApi
|
|
|
|
|
|
class TestDataApi(unittest.TestCase):
|
|
"""DataApi unit test stubs"""
|
|
|
|
def setUp(self) -> None:
|
|
self.api = DataApi()
|
|
|
|
def tearDown(self) -> None:
|
|
pass
|
|
|
|
def test_download_local(self) -> None:
|
|
"""Test case for download_local
|
|
|
|
Download a file from the local node in a streaming manner. If the file is not available locally, a 404 is returned.
|
|
"""
|
|
pass
|
|
|
|
def test_download_network(self) -> None:
|
|
"""Test case for download_network
|
|
|
|
Download a file from the network to the local node if it's not available locally. Note: Download is performed async. Call can return before download is completed.
|
|
"""
|
|
pass
|
|
|
|
def test_download_network_manifest(self) -> None:
|
|
"""Test case for download_network_manifest
|
|
|
|
Download only the dataset manifest from the network to the local node if it's not available locally.
|
|
"""
|
|
pass
|
|
|
|
def test_download_network_stream(self) -> None:
|
|
"""Test case for download_network_stream
|
|
|
|
Download a file from the network in a streaming manner. If the file is not available locally, it will be retrieved from other nodes in the network if able.
|
|
"""
|
|
pass
|
|
|
|
def test_list_data(self) -> None:
|
|
"""Test case for list_data
|
|
|
|
Lists manifest CIDs stored locally in node.
|
|
"""
|
|
pass
|
|
|
|
def test_space(self) -> None:
|
|
"""Test case for space
|
|
|
|
Gets a summary of the storage space allocation of the node.
|
|
"""
|
|
pass
|
|
|
|
def test_upload(self) -> None:
|
|
"""Test case for upload
|
|
|
|
Upload a file in a streaming manner. Once finished, the file is stored in the node and can be retrieved by any node in the network using the returned CID.
|
|
"""
|
|
pass
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|