argo-cd/test
William Tam 9aae99cf7f
fix: Only processes need root uid will run as root inside test container (#4210)
* Add  "chown" to gpg/keys  in "start-local" target that so that repo-server can access gpg keys.

* * Set -u uid:gid in the docker run commands  so that test images are run under the current user.
* test Procfile processes will not need to perform "su"  to  default user (which has the current user's uid/gid)

* Remove chown in start-e2e-local

* clean up, remove  "bash -c"

* Test containers are run as uid 0 which allows uid_entrypoint.sh  to perform some user setup.  uid_entrypoint.sh creates a non-root user (default) and enables passwordless sudo for that user.    The container entry point command is run as the non-root user.   "goreman start"  does "sudo" to to the processes that need root permission including sshd, fcgiwrap, and nginix.   The other processes are running as the non-root user.

* use /bin/bash

* change back to sh

* Docker image to create  unpriveleged testuser and enable passwordless sudo for that user
2020-09-15 11:32:16 +02:00
..
certificates Simplify server certificate and known hosts management (#1807) 2019-07-11 16:00:47 -07:00
container fix: Only processes need root uid will run as root inside test container (#4210) 2020-09-15 11:32:16 +02:00
e2e fix: app create with -f should not ignore other options (#4322) 2020-09-14 15:29:45 -07:00
fixture chore: stop using pre-built docker images for testing/code generation (#3955) 2020-07-23 08:05:06 +02:00
manifests/base Issues #1513 - Make sure insecure flag works for remote Kustomize bases (#1934) 2019-07-12 17:17:23 -07:00
testdata/static Set X-Frame-Options on serving static assets (#2706) (#2711) 2019-11-18 15:12:35 -08:00
manifests_test.go Fix bug where manifests are not cached. Fixes #2770 (#2771) 2019-12-02 12:08:06 -08:00
testdata.go chore: Fix complaints of golang-ci lint v1.26.0 (#3673) 2020-05-30 18:54:14 -07:00
testutil.go feat: GPG commit signature verification (#2492) (#3242) 2020-06-22 18:21:53 +02:00