synapse 2.185.0__py311-none-any.whl → 2.187.0__py311-none-any.whl
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.
Potentially problematic release.
This version of synapse might be problematic. Click here for more details.
- synapse/cortex.py +5 -4
- synapse/exc.py +2 -0
- synapse/lib/ast.py +1 -1
- synapse/lib/cell.py +65 -2
- synapse/lib/drive.py +45 -10
- synapse/lib/hive.py +1 -1
- synapse/lib/modelrev.py +771 -11
- synapse/lib/snap.py +0 -6
- synapse/lib/spooled.py +26 -3
- synapse/lib/storm.py +7 -0
- synapse/lib/stormlib/model.py +320 -250
- synapse/lib/stormtypes.py +36 -10
- synapse/lib/types.py +6 -0
- synapse/lib/version.py +2 -2
- synapse/models/infotech.py +49 -22
- synapse/models/risk.py +3 -0
- synapse/tests/test_cortex.py +10 -5
- synapse/tests/test_lib_base.py +2 -2
- synapse/tests/test_lib_cell.py +16 -4
- synapse/tests/test_lib_modelrev.py +918 -379
- synapse/tests/test_lib_spooled.py +34 -0
- synapse/tests/test_lib_stormlib_model.py +0 -270
- synapse/tests/test_lib_stormtypes.py +11 -0
- synapse/tests/test_model_infotech.py +14 -11
- synapse/tests/test_model_risk.py +2 -0
- synapse/tests/test_tools_snapshot.py +47 -0
- synapse/tools/aha/clone.py +3 -1
- synapse/tools/aha/easycert.py +1 -1
- synapse/tools/aha/enroll.py +3 -1
- synapse/tools/aha/provision/service.py +3 -1
- synapse/tools/aha/provision/user.py +3 -1
- synapse/tools/changelog.py +11 -3
- synapse/tools/livebackup.py +3 -1
- synapse/tools/promote.py +9 -3
- synapse/tools/snapshot.py +69 -0
- {synapse-2.185.0.dist-info → synapse-2.187.0.dist-info}/METADATA +1 -1
- {synapse-2.185.0.dist-info → synapse-2.187.0.dist-info}/RECORD +40 -41
- {synapse-2.185.0.dist-info → synapse-2.187.0.dist-info}/WHEEL +1 -1
- synapse/assets/__init__.py +0 -35
- synapse/assets/storm/migrations/model-0.2.28.storm +0 -355
- synapse/tests/test_assets.py +0 -25
- {synapse-2.185.0.dist-info → synapse-2.187.0.dist-info}/LICENSE +0 -0
- {synapse-2.185.0.dist-info → synapse-2.187.0.dist-info}/top_level.txt +0 -0
synapse/tests/test_assets.py
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
import synapse.assets as s_assets
|
|
3
|
-
|
|
4
|
-
import synapse.tests.utils as s_t_utils
|
|
5
|
-
|
|
6
|
-
class TestAssets(s_t_utils.SynTest):
|
|
7
|
-
|
|
8
|
-
def test_assets_path(self):
|
|
9
|
-
|
|
10
|
-
fp = s_assets.getAssetPath('storm', 'migrations', 'model-0.2.28.storm')
|
|
11
|
-
self.true(os.path.isfile(fp))
|
|
12
|
-
|
|
13
|
-
with self.raises(ValueError) as cm:
|
|
14
|
-
s_assets.getAssetPath('../../../../../../../etc/passwd')
|
|
15
|
-
self.isin('Path escaping', str(cm.exception))
|
|
16
|
-
|
|
17
|
-
with self.raises(ValueError) as cm:
|
|
18
|
-
s_assets.getAssetPath('newp', 'does', 'not', 'exit')
|
|
19
|
-
self.isin('Asset does not exist', str(cm.exception))
|
|
20
|
-
|
|
21
|
-
def test_assets_storm(self):
|
|
22
|
-
|
|
23
|
-
text = s_assets.getStorm('migrations', 'model-0.2.28.storm')
|
|
24
|
-
self.isinstance(text, str)
|
|
25
|
-
self.gt(len(text), 0)
|
|
File without changes
|
|
File without changes
|