Skip to content

Commit 324f517

Browse files
committed
Disable AppArmor for slapd to allow slapdtest to create temp instances
Signed-off-by: tdruez <[email protected]>
1 parent 71392a7 commit 324f517

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/run-unit-tests.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,21 @@ jobs:
4242
with:
4343
python-version: "3.13"
4444

45-
- name: Install python-ldap OS dependencies
45+
# - name: Install python-ldap OS dependencies
46+
# run: |
47+
# sudo apt-get update
48+
# # https://github.com/python-ldap/python-ldap/blob/main/.github/workflows/ci.yml
49+
# sudo apt-get install -y libldap2-dev libsasl2-dev slapd ldap-utils enchant-2 apparmor-utils
50+
# # Disable AppArmor for slapd to allow slapdtest to create temp instances
51+
# sudo aa-disable /usr/sbin/slapd
52+
53+
- name: Install apt dependencies
4654
run: |
47-
sudo apt-get update
48-
# https://github.com/python-ldap/python-ldap/blob/main/.github/workflows/ci.yml
49-
sudo apt-get install -y libldap2-dev libsasl2-dev slapd ldap-utils enchant-2 apparmor-utils
50-
# Disable AppArmor for slapd to allow slapdtest to create temp instances
51-
sudo aa-disable /usr/sbin/slapd
55+
set -ex
56+
sudo apt update
57+
sudo apt install -y ldap-utils slapd enchant-2 libldap2-dev libsasl2-dev apparmor-utils
58+
- name: Disable AppArmor
59+
run: sudo aa-disable /usr/sbin/slapd
5260

5361
- name: Install dependencies
5462
run: make dev envfile

0 commit comments

Comments
 (0)