From: John Hodge Date: Mon, 11 Oct 2021 12:55:21 +0000 (+0800) Subject: Gitlab CI - SETUID for autoauth X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=51933a63039ddd15179c57bbd3518e024c0f6e0f;p=tpg%2Fopendispense2.git Gitlab CI - SETUID for autoauth --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72fc89a..6f6de61 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,7 +27,9 @@ test: stage: test before_script: # Install the -dev versions to avoid needing to find the actual library names - - apt update && apt -y install libncurses-dev libmodbus-dev libsqlite3-dev libident netcat sqlite3 oidentd + - apt update && apt -y install libncurses-dev libmodbus-dev libsqlite3-dev libident netcat sqlite3 - useradd testuser && chown -R testuser . + # SETUID on the client, so it can use AUTOAUTH (ident doesn't work on the container) + - chmod u+s dispense script: - cd tests && su -c './TEST_basic.sh' testuser