significant progress! a working process from beginning to end can be seen in test/org_req_test.lua

This commit is contained in:
Luke Miller
2021-05-06 14:13:02 -04:00
parent a7ba7605d3
commit 797d0bebb8
5 changed files with 66 additions and 12 deletions

View File

@ -3,17 +3,20 @@ dofile('../modpol.lua');
modpol.orgs.reset()
test_org = modpol.instance:add_org('test_org')
test_org:add_member('luke')
test_org:add_member('nathan')
test_org:set_policy("add_member", nil, false);
new_request = {
user = "lukvmil",
user = "josh",
type = "add_member",
params = {"lukvmil"}
params = {"josh"}
}
request_id = test_org:make_request(new_request)
process_id = test_org:create_process("consent", request_id)
process = test_org.processes[process_id]
process:approve("luke", true)
process:approve("luke", true)
process:approve("nathan", true)