open-aea-test-autonomy 0.20.2__tar.gz → 0.21.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {open_aea_test_autonomy-0.20.2/open_aea_test_autonomy.egg-info → open_aea_test_autonomy-0.21.1}/PKG-INFO +5 -7
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/base_test_classes/agents.py +1 -1
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/configurations.py +1 -1
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/docker/amm_net.py +1 -1
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/docker/ganache.py +7 -1
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/docker/gnosis_safe_net.py +1 -1
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/docker/registries.py +1 -1
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/docker/tendermint.py +5 -3
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/fixture_helpers.py +18 -14
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/helpers/tendermint_utils.py +1 -1
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1/open_aea_test_autonomy.egg-info}/PKG-INFO +5 -7
- open_aea_test_autonomy-0.21.1/open_aea_test_autonomy.egg-info/requires.txt +4 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/setup.py +5 -7
- open_aea_test_autonomy-0.20.2/open_aea_test_autonomy.egg-info/requires.txt +0 -4
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/LICENSE +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/README.md +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/__init__.py +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/base_test_classes/__init__.py +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/base_test_classes/contracts.py +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/data/encrypted_keys.json +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/data/ethereum_key_1.txt +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/data/ethereum_key_2.txt +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/data/ethereum_key_3.txt +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/data/ethereum_key_4.txt +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/data/ethereum_key_5.txt +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/data/ethereum_key_deployer.txt +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/docker/__init__.py +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/docker/acn_node.py +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/docker/base.py +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/helpers/__init__.py +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/helpers/async_utils.py +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/helpers/base.py +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/helpers/contracts.py +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/py.typed +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/open_aea_test_autonomy.egg-info/SOURCES.txt +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/open_aea_test_autonomy.egg-info/dependency_links.txt +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/open_aea_test_autonomy.egg-info/top_level.txt +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/pyproject.toml +0 -0
- {open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: open-aea-test-autonomy
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.21.1
|
|
4
4
|
Summary: Plugin containing test tools for open-autonomy packages.
|
|
5
5
|
Author: Valory AG
|
|
6
6
|
License: Apache-2.0
|
|
@@ -13,8 +13,6 @@ Classifier: Natural Language :: English
|
|
|
13
13
|
Classifier: Operating System :: MacOS
|
|
14
14
|
Classifier: Operating System :: Microsoft
|
|
15
15
|
Classifier: Operating System :: Unix
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
18
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
18
|
Classifier: Topic :: Communications
|
|
@@ -22,10 +20,10 @@ Classifier: Topic :: Internet
|
|
|
22
20
|
Classifier: Topic :: Software Development
|
|
23
21
|
Description-Content-Type: text/markdown
|
|
24
22
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: open-aea[all]<
|
|
26
|
-
Requires-Dist: pytest==7.
|
|
27
|
-
Requires-Dist: open-aea-ledger-ethereum<
|
|
28
|
-
Requires-Dist: docker==
|
|
23
|
+
Requires-Dist: open-aea[all]<3.0.0,>=2.0.5
|
|
24
|
+
Requires-Dist: pytest==7.4.4
|
|
25
|
+
Requires-Dist: open-aea-ledger-ethereum<3.0.0,>=2.0.5
|
|
26
|
+
Requires-Dist: docker==7.1.0
|
|
29
27
|
Dynamic: author
|
|
30
28
|
Dynamic: classifier
|
|
31
29
|
Dynamic: description
|
|
@@ -279,7 +279,7 @@ class BaseTestEnd2End(AEATestCaseMany, UseFlaskTendermintNode, UseLocalIpfs):
|
|
|
279
279
|
|
|
280
280
|
@staticmethod
|
|
281
281
|
def __generate_full_strings_from_rounds(
|
|
282
|
-
happy_path: Tuple[RoundChecks, ...]
|
|
282
|
+
happy_path: Tuple[RoundChecks, ...],
|
|
283
283
|
) -> Dict[str, int]:
|
|
284
284
|
"""Generate the full strings from the given round strings"""
|
|
285
285
|
full_strings = {}
|
{open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/configurations.py
RENAMED
|
@@ -37,7 +37,7 @@ LOCALHOST = "localhost"
|
|
|
37
37
|
HTTP_LOCALHOST = f"http://{LOCALHOST}"
|
|
38
38
|
|
|
39
39
|
DEFAULT_IMAGE_VERSION = "latest"
|
|
40
|
-
MATCHING_FRAMEWORK_VERSION = "0.
|
|
40
|
+
MATCHING_FRAMEWORK_VERSION = "0.21.1"
|
|
41
41
|
TENDERMINT_IMAGE_VERSION = os.environ.get(
|
|
42
42
|
"TENDERMINT_IMAGE_VERSION", MATCHING_FRAMEWORK_VERSION
|
|
43
43
|
)
|
{open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/docker/amm_net.py
RENAMED
|
@@ -91,7 +91,7 @@ class AMMNetDockerImage(DockerImage):
|
|
|
91
91
|
"""
|
|
92
92
|
for i in range(max_attempts):
|
|
93
93
|
try:
|
|
94
|
-
response = requests.get(f"{self.addr}:{self.port}")
|
|
94
|
+
response = requests.get(f"{self.addr}:{self.port}", timeout=30)
|
|
95
95
|
enforce(response.status_code == 200, "")
|
|
96
96
|
return True
|
|
97
97
|
except Exception as e: # pylint: disable=broad-except
|
{open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/docker/ganache.py
RENAMED
|
@@ -96,7 +96,9 @@ class GanacheDockerImage(DockerImage):
|
|
|
96
96
|
request = dict(jsonrpc=2.0, method="web3_clientVersion", params=[], id=1)
|
|
97
97
|
for i in range(max_attempts):
|
|
98
98
|
try:
|
|
99
|
-
response = requests.post(
|
|
99
|
+
response = requests.post(
|
|
100
|
+
f"{self._addr}:{self._port}", json=request, timeout=30
|
|
101
|
+
)
|
|
100
102
|
enforce(response.status_code == 200, "")
|
|
101
103
|
return True
|
|
102
104
|
except Exception: # pylint: disable=broad-except
|
|
@@ -123,3 +125,7 @@ class GanacheForkDockerImage(GanacheDockerImage):
|
|
|
123
125
|
]
|
|
124
126
|
|
|
125
127
|
return cmd
|
|
128
|
+
|
|
129
|
+
def create_many(self, nb_containers: int) -> List[Container]:
|
|
130
|
+
"""Instantiate the image in many containers, parametrized."""
|
|
131
|
+
raise NotImplementedError()
|
|
@@ -89,7 +89,7 @@ class GnosisSafeNetDockerImage(DockerImage):
|
|
|
89
89
|
"""
|
|
90
90
|
for i in range(max_attempts):
|
|
91
91
|
try:
|
|
92
|
-
response = requests.get(f"{self.addr}:{self.port}")
|
|
92
|
+
response = requests.get(f"{self.addr}:{self.port}", timeout=30)
|
|
93
93
|
enforce(response.status_code == 200, "")
|
|
94
94
|
return True
|
|
95
95
|
except Exception as e: # pylint: disable=broad-except
|
|
@@ -112,7 +112,7 @@ class RegistriesDockerImage(DockerImage):
|
|
|
112
112
|
"""
|
|
113
113
|
for i in range(max_attempts):
|
|
114
114
|
try:
|
|
115
|
-
response = requests.get(f"{self.addr}:{self.port}")
|
|
115
|
+
response = requests.get(f"{self.addr}:{self.port}", timeout=30)
|
|
116
116
|
enforce(response.status_code == 200, "")
|
|
117
117
|
return True
|
|
118
118
|
except Exception as e: # pylint: disable=broad-except
|
|
@@ -56,7 +56,7 @@ class TendermintDockerImage(DockerImage):
|
|
|
56
56
|
|
|
57
57
|
use_grpc: bool = False
|
|
58
58
|
|
|
59
|
-
def __init__(
|
|
59
|
+
def __init__(
|
|
60
60
|
self,
|
|
61
61
|
client: docker.DockerClient,
|
|
62
62
|
abci_host: str = DEFAULT_ABCI_HOST,
|
|
@@ -108,7 +108,9 @@ class TendermintDockerImage(DockerImage):
|
|
|
108
108
|
"""Instantiate the image in many containers, parametrized."""
|
|
109
109
|
raise NotImplementedError()
|
|
110
110
|
|
|
111
|
-
def wait(
|
|
111
|
+
def wait(
|
|
112
|
+
self, max_attempts: int = 15, sleep_rate: float = 1.0
|
|
113
|
+
) -> bool: # pylint: disable=unused-argument
|
|
112
114
|
"""
|
|
113
115
|
Wait until the image is running.
|
|
114
116
|
|
|
@@ -125,7 +127,7 @@ class FlaskTendermintDockerImage(TendermintDockerImage):
|
|
|
125
127
|
|
|
126
128
|
_extra_hosts: Dict[str, str]
|
|
127
129
|
|
|
128
|
-
def __init__( # pylint: disable=
|
|
130
|
+
def __init__( # pylint: disable=useless-super-delegation
|
|
129
131
|
self,
|
|
130
132
|
client: docker.DockerClient,
|
|
131
133
|
abci_host: str = DEFAULT_ABCI_HOST,
|
{open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/fixture_helpers.py
RENAMED
|
@@ -300,13 +300,15 @@ class UseGanache:
|
|
|
300
300
|
cls.key_pairs = cast(
|
|
301
301
|
List[Tuple[str, str]],
|
|
302
302
|
[
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
303
|
+
(
|
|
304
|
+
key
|
|
305
|
+
if type(key) is tuple # pylint: disable=unidiomatic-typecheck
|
|
306
|
+
else (
|
|
307
|
+
Account.from_key( # pylint: disable=no-value-for-parameter
|
|
308
|
+
key
|
|
309
|
+
).address,
|
|
310
|
+
key,
|
|
311
|
+
)
|
|
310
312
|
)
|
|
311
313
|
for key, _ in ganache_configuration.get("accounts_balances", [])
|
|
312
314
|
],
|
|
@@ -341,13 +343,15 @@ class GanacheBaseTest(DockerBaseTest):
|
|
|
341
343
|
key_pairs_ = cast(
|
|
342
344
|
List[Tuple[str, str]],
|
|
343
345
|
[
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
346
|
+
(
|
|
347
|
+
key
|
|
348
|
+
if type(key) is tuple # pylint: disable=unidiomatic-typecheck
|
|
349
|
+
else (
|
|
350
|
+
Account.from_key( # pylint: disable=no-value-for-parameter
|
|
351
|
+
key
|
|
352
|
+
).address,
|
|
353
|
+
key,
|
|
354
|
+
)
|
|
351
355
|
)
|
|
352
356
|
for key, _ in cls.configuration.get("accounts_balances", [])
|
|
353
357
|
],
|
|
@@ -107,7 +107,7 @@ class TendermintLocalNetworkBuilder:
|
|
|
107
107
|
]
|
|
108
108
|
)
|
|
109
109
|
|
|
110
|
-
def _get_node_id(self, i: int) -> str:
|
|
110
|
+
def _get_node_id(self, i: int) -> str:
|
|
111
111
|
"""Get the node id."""
|
|
112
112
|
assert 0 <= i < self.nb_nodes, "invalid node id" # nosec
|
|
113
113
|
node_name = f"node{i}"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: open-aea-test-autonomy
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.21.1
|
|
4
4
|
Summary: Plugin containing test tools for open-autonomy packages.
|
|
5
5
|
Author: Valory AG
|
|
6
6
|
License: Apache-2.0
|
|
@@ -13,8 +13,6 @@ Classifier: Natural Language :: English
|
|
|
13
13
|
Classifier: Operating System :: MacOS
|
|
14
14
|
Classifier: Operating System :: Microsoft
|
|
15
15
|
Classifier: Operating System :: Unix
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
18
16
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
17
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
18
|
Classifier: Topic :: Communications
|
|
@@ -22,10 +20,10 @@ Classifier: Topic :: Internet
|
|
|
22
20
|
Classifier: Topic :: Software Development
|
|
23
21
|
Description-Content-Type: text/markdown
|
|
24
22
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: open-aea[all]<
|
|
26
|
-
Requires-Dist: pytest==7.
|
|
27
|
-
Requires-Dist: open-aea-ledger-ethereum<
|
|
28
|
-
Requires-Dist: docker==
|
|
23
|
+
Requires-Dist: open-aea[all]<3.0.0,>=2.0.5
|
|
24
|
+
Requires-Dist: pytest==7.4.4
|
|
25
|
+
Requires-Dist: open-aea-ledger-ethereum<3.0.0,>=2.0.5
|
|
26
|
+
Requires-Dist: docker==7.1.0
|
|
29
27
|
Dynamic: author
|
|
30
28
|
Dynamic: classifier
|
|
31
29
|
Dynamic: description
|
|
@@ -24,15 +24,15 @@ from setuptools import setup # type: ignore
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
base_deps = [
|
|
27
|
-
"open-aea[all]>=
|
|
28
|
-
"pytest==7.
|
|
29
|
-
"open-aea-ledger-ethereum>=
|
|
30
|
-
"docker==
|
|
27
|
+
"open-aea[all]>=2.0.5,<3.0.0",
|
|
28
|
+
"pytest==7.4.4",
|
|
29
|
+
"open-aea-ledger-ethereum>=2.0.5,<3.0.0",
|
|
30
|
+
"docker==7.1.0",
|
|
31
31
|
]
|
|
32
32
|
|
|
33
33
|
setup(
|
|
34
34
|
name="open-aea-test-autonomy",
|
|
35
|
-
version="0.
|
|
35
|
+
version="0.21.1",
|
|
36
36
|
author="Valory AG",
|
|
37
37
|
license="Apache-2.0",
|
|
38
38
|
description="Plugin containing test tools for open-autonomy packages.",
|
|
@@ -59,8 +59,6 @@ setup(
|
|
|
59
59
|
"Operating System :: MacOS",
|
|
60
60
|
"Operating System :: Microsoft",
|
|
61
61
|
"Operating System :: Unix",
|
|
62
|
-
"Programming Language :: Python :: 3.8",
|
|
63
|
-
"Programming Language :: Python :: 3.9",
|
|
64
62
|
"Programming Language :: Python :: 3.10",
|
|
65
63
|
"Programming Language :: Python :: 3.11",
|
|
66
64
|
"Topic :: Communications",
|
|
File without changes
|
|
File without changes
|
{open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/docker/__init__.py
RENAMED
|
File without changes
|
{open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/docker/acn_node.py
RENAMED
|
File without changes
|
{open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/docker/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{open_aea_test_autonomy-0.20.2 → open_aea_test_autonomy-0.21.1}/aea_test_autonomy/helpers/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|