Skip to content

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_user setting that is off by default
  • Analyzers converted to non-default, non-root user will add a test case using the gitlab_user option

Implementation Plan

Integration Tests

  • Add another parameter to docker_runner called user: str with default value of nil
  • When docker_run is called, if privileged is not supplied and user is not, run docker command without --user parameter, relying on default user.
    When --user is supplied, it will override the privileged flag

Test Suite

TBD

Edited by Tal Kopel