2024-06-27 23:50:58 +00:00
|
|
|
module.exports = [
|
|
|
|
{
|
|
|
|
sequence: [
|
|
|
|
{
|
2024-06-28 21:40:27 +00:00
|
|
|
title: 'Kyle creates a file',
|
2024-06-27 23:50:58 +00:00
|
|
|
call: 'create-example-file',
|
|
|
|
as: 'testuser_kyle',
|
|
|
|
with: {
|
|
|
|
name: 'example.txt',
|
|
|
|
contents: 'secret file',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-06-28 21:40:27 +00:00
|
|
|
title: 'Eric tries to access it',
|
2024-06-27 23:50:58 +00:00
|
|
|
call: 'assert-no-access',
|
|
|
|
as: 'testuser_eric',
|
|
|
|
with: {
|
|
|
|
path: '/testuser_kyle/Desktop/example.txt'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
2024-06-30 19:09:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
sequence: [
|
|
|
|
{
|
|
|
|
title: 'Stan creates a file',
|
|
|
|
call: 'create-example-file',
|
|
|
|
as: 'testuser_stan',
|
|
|
|
with: {
|
|
|
|
name: 'example.txt',
|
|
|
|
contents: 'secret file',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Stan grants permission to Eric',
|
|
|
|
call: 'grant',
|
|
|
|
as: 'testuser_stan',
|
|
|
|
with: {
|
|
|
|
to: 'testuser_eric',
|
|
|
|
permission: 'fs:/testuser_stan/Desktop/example.txt:read'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Eric tries to access it',
|
|
|
|
call: 'assert-access',
|
|
|
|
as: 'testuser_eric',
|
|
|
|
with: {
|
|
|
|
path: '/testuser_stan/Desktop/example.txt',
|
|
|
|
level: 'read'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sequence: [
|
|
|
|
{
|
|
|
|
title: 'Stan grants Kyle\'s file to Eric',
|
|
|
|
call: 'grant',
|
|
|
|
as: 'testuser_stan',
|
|
|
|
with: {
|
|
|
|
to: 'testuser_eric',
|
|
|
|
permission: 'fs:/testuser_kyle/Desktop/example.txt:read'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Eric tries to access it',
|
|
|
|
call: 'assert-no-access',
|
|
|
|
as: 'testuser_eric',
|
|
|
|
with: {
|
|
|
|
path: '/testuser_kyle/Desktop/example.txt',
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
|
|
|
},
|
2024-06-27 23:50:58 +00:00
|
|
|
];
|