mirror of
https://github.com/logos-blockchain/logos-blockchain-e2e-tests.git
synced 2026-01-07 15:43:05 +00:00
test: add api endpoints
- disperse_data - get_range
This commit is contained in:
parent
78f9e2bfe0
commit
231a3918c5
@ -23,3 +23,9 @@ class REST(BaseClient):
|
|||||||
def info(self):
|
def info(self):
|
||||||
status_response = self.rest_call("get", "cryptarchia/info")
|
status_response = self.rest_call("get", "cryptarchia/info")
|
||||||
return status_response.json()
|
return status_response.json()
|
||||||
|
|
||||||
|
def disperse_data(self, dispersal_request):
|
||||||
|
return self.rest_call("post", "disperse-data", json.dumps(dispersal_request))
|
||||||
|
|
||||||
|
def get_range(self, app_id, data_range):
|
||||||
|
return self.rest_call("post", "da/get-range", json.dumps({app_id, data_range}))
|
||||||
|
|||||||
@ -1,6 +1,14 @@
|
|||||||
class TestDataIntegrity:
|
class TestDataIntegrity:
|
||||||
main_nodes = []
|
main_nodes = []
|
||||||
|
|
||||||
def test_cluster_start(self):
|
def test_da_identify_retrieve_missing_columns(self):
|
||||||
for node in self.main_nodes:
|
for node in self.main_nodes:
|
||||||
print(node)
|
print(node)
|
||||||
|
|
||||||
|
def test_da_sampling_determines_data_presence(self):
|
||||||
|
for node in self.main_nodes:
|
||||||
|
print(node)
|
||||||
|
|
||||||
|
# Disperse data
|
||||||
|
# Get data from range
|
||||||
|
# Compare
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user