Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in ldef validator #1927

Merged
merged 1 commit into from
Oct 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion synapse/lib/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
'iden': {'type': 'string', 'pattern': s_config.re_iden},
'creator': {'type': 'string', 'pattern': s_config.re_iden},
'lockmemory': {'type': 'boolean'},
'logedits': {'type': 'boolean'}, 'default': True,
'logedits': {'type': 'boolean', 'default': True},
'name': {'type': 'string'},
},
'additionalProperties': True,
Expand Down
13 changes: 13 additions & 0 deletions synapse/tests/test_lib_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,3 +1007,16 @@ async def test_layer_v3(self):

for layr in core.layers.values():
self.eq(layr.layrvers, 3)

async def test_layer_logedits_default(self):

with self.getTestDir() as dirn:

layrinfo = {
'iden': s_common.guid(),
'creator': s_common.guid(),
'lockmemory': False,
}
s_layer.reqValidLdef(layrinfo)
layr = await s_layer.Layer.anit(layrinfo, dirn)
self.true(layr.logedits)