Testing with non-root user
Goal
Identify testing scheme that verifies functionality of analyzers with a non-root, non-default user
Proposal
- Rely on the integration-test project
- Add a
gitlab_usersetting that is off by default - Analyzers converted to non-default, non-root user will add a test case using the
gitlab_useroption
Implementation Plan
Integration Tests
-
Add another parameter to docker_runnercalleduser: strwith default value ofnil -
When docker_runis called, ifprivilegedis not supplied anduseris not, run docker command without--userparameter, relying on default user.
When--useris supplied, it will override theprivilegedflag
Test Suite
TBD
Edited by Tal Kopel