blob: a36a5e24c7b36d2e759c537b893366cf372026e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/usr/libexec/flua
local n = require("nuage")
if n.addgroup() then
n.err("addgroup should not accept empty value")
end
if n.addgroup("plop") then
n.err("addgroup should not accept empty value")
end
local gr = {}
gr.name = "impossible_groupname"
local res = n.addgroup(gr)
if not res then
n.err("valid addgroup should return a path")
end
|