From c51bb91cab3e0b71fc32a0765d557800c30b7fdc Mon Sep 17 00:00:00 2001 From: "Jason C. Nucciarone" Date: Tue, 8 Oct 2024 09:58:12 -0400 Subject: [PATCH] tests(slurm_ops): create slurm user for snap integration tests The Slurm snap currently does not create a Slurm system user, so the integration tests needs an additional step to add both the slurm group and user. This is something that should be patched in the Slurm snap when the team revisits the snap package. Signed-off-by: Jason C. Nucciarone --- tests/integration/test_hpc_libs.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_hpc_libs.yaml b/tests/integration/test_hpc_libs.yaml index b1d4e2c..0e280bf 100644 --- a/tests/integration/test_hpc_libs.yaml +++ b/tests/integration/test_hpc_libs.yaml @@ -59,6 +59,12 @@ acts: apt install -y python3-venv python3-yaml python3 -m venv venv --system-site-packages venv/bin/python3 -m pip install -r dev-requirements.txt + - name: "Create slurm user" + run: | + groupadd --gid 64030 slurm + adduser \ + --system --gid 64030 --uid 64030 \ + --no-create-home --home /nonexistent slurm - name: "Run `slurm_ops` integration tests" run: | PYTHONPATH=./lib \ @@ -93,4 +99,4 @@ acts: -s \ --tb native \ --log-cli-level=INFO \ - slurm_ops \ No newline at end of file + slurm_ops