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