public async Task GetPermissions_JsonComments() { DynamicPermissionLayout layout = new DynamicPermissionLayout(new TestStore(), new KeyEncoder(111)); PermissionSet result = await layout.GetPermissions(evidence, LedgerPath.Parse("/root/comment/"), true, "name"); AssertPermissionSet(Access.Unset, result); }
public async Task GetPermissions_NoMatch() { DynamicPermissionLayout layout = new DynamicPermissionLayout(new TestStore(), new KeyEncoder(111)); PermissionSet result = await layout.GetPermissions(evidence, LedgerPath.Parse("/root/subitem/"), true, "other"); AssertPermissionSet(Access.Unset, result); }
public async Task GetPermissions_JsonComments() { DynamicPermissionLayout layout = new DynamicPermissionLayout(new TestStore(), new KeyEncoder(111)); PermissionSet result = await layout.GetPermissions(evidence, LedgerPath.Parse("/root/comment/"), true, "name"); Assert.Equal(Access.Unset, result.AccountModify); Assert.Equal(Access.Unset, result.AccountNegative); Assert.Equal(Access.Unset, result.AccountSpend); Assert.Equal(Access.Unset, result.DataModify); }