dev: node.propagate test

Massimo Melina committed May 16, 2023 at 10:53 UTC 855dbe32a4055c0f56be0675a62f489f3eec3a39
2 files changed +8
tests/config.yaml
+6
@@ -97,6 +97,12 @@ vfs:
97 children:
98 - name: hi
99 - name: cantSeeThisButChildren
100 + can_see: false
101 + propagate:
102 + can_see: false
103 + children:
104 + - name: hi
105 + - name: cantSeeThisButChildrenMasks
106 can_see: false
107 masks:
108 "*":
tests/test.ts
+2
@@ -76,6 +76,8 @@ describe('basics', () => {
76 it('cantSeeThis.children', reqList('/cantSeeThis', { outList:['hi/'] }))
77 it('cantSeeThisButChildren', reqList('/', { outList:['cantSeeThisButChildren/'] }))
78 it('cantSeeThisButChildren.children', reqList('/cantSeeThisButChildren', { inList:['hi/'] }))
79 + it('cantSeeThisButChildrenMasks', reqList('/', { outList:['cantSeeThisButChildrenMasks/'] }))
80 + it('cantSeeThisButChildrenMasks.children', reqList('/cantSeeThisButChildrenMasks', { inList:['hi/'] }))
81
82 it('protectFromAbove', req('/protectFromAbove/child/alfa.txt', 403))
83 it('protectFromAbove.list', reqList('/protectFromAbove/child/', { inList:['alfa.txt'] }))