mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
* chore(iam): the request-resources generator's own tidying The file has a few things the tooling complains about: the import of the passed-roles helpers is too long for the line, the zip of the resources with the marks does not say whether the two lists have to be the same length, and the kinds of a resource are read as whatever the untyped mapping holds, which a type checker cannot follow. The kinds are now read through a helper that gives the strings they are, the zip says it expects the two lists to be the same length, and a vendored file that is not JSON is reported as an error the way a missing one is, instead of a traceback. * test(iam): the file the request resources gate reads The gate reads the vendored file and reports a file that is missing, so a file that cannot be read is reported the same way instead of ending in a traceback. The tests call the gate with a file that is not JSON and with one that cannot be read, under both the offline and the online mode, and find the exit code and the message. * test(iam): the read the gate cannot do, refused rather than denied A file made unreadable is still readable by a run as root, so the test refused the read itself instead of relying on the permissions of the caller. The gate is asked for a file it cannot read either way. --------- Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>