diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-07-25 12:59:49 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2022-07-26 12:52:24 -0400 |
commit | eeaa2d041ae64c51164e03a9335d8dcc28bf7c50 (patch) | |
tree | 517f7fa71a4d39d7369a3f8ed5ee8b5e6ce270d3 | |
parent | ed0021b9939ed702f6449948615e14c18cb5f93f (diff) | |
download | accountsservice-eeaa2d041ae64c51164e03a9335d8dcc28bf7c50.tar.gz |
tests: Add second user to test data
-rw-r--r-- | tests/data/etc/group | 1 | ||||
-rw-r--r-- | tests/data/etc/passwd | 1 | ||||
-rw-r--r-- | tests/data/etc/shadow | 1 | ||||
-rw-r--r-- | tests/data/var/lib/AccountsService/icons/benedict | bin | 0 -> 153490 bytes | |||
-rw-r--r-- | tests/data/var/lib/AccountsService/users/benedict.in | 13 | ||||
-rwxr-xr-x | tests/test-daemon.py | 2 |
6 files changed, 17 insertions, 1 deletions
diff --git a/tests/data/etc/group b/tests/data/etc/group index 30cca53..315568a 100644 --- a/tests/data/etc/group +++ b/tests/data/etc/group @@ -1,2 +1,3 @@ +benedict:x:1000: rupert:x:1001: gdm:x:42: diff --git a/tests/data/etc/passwd b/tests/data/etc/passwd index 89d6498..92568e9 100644 --- a/tests/data/etc/passwd +++ b/tests/data/etc/passwd @@ -1,2 +1,3 @@ +benedict:x:1000:1000:Benedict Duck:/home/benedict:/bin/zsh rupert:x:1001:1001:Rupert Monkey:/home/rupert:/bin/bash gdm:x:42:42::/var/lib/gdm:/sbin/nologin diff --git a/tests/data/etc/shadow b/tests/data/etc/shadow index b3560e9..5d30ce9 100644 --- a/tests/data/etc/shadow +++ b/tests/data/etc/shadow @@ -1,3 +1,4 @@ # Password is "rupert" +benedict:$y$j9T$5I8c/YVQzwIwui0iBqPjc0$Sbukxjh3c7xGoUo1/1DSOrFZ9iwh2mU8Mdj5PV/0Zc2:19195:0:99999:7::: rupert:$y$j9T$5I8c/YVQzwIwui0iBqPjc0$Sbukxjh3c7xGoUo1/1DSOrFZ9iwh2mU8Mdj5PV/0Zc2:19195:0:99999:7::: gdm:!!:18012:::::: diff --git a/tests/data/var/lib/AccountsService/icons/benedict b/tests/data/var/lib/AccountsService/icons/benedict Binary files differnew file mode 100644 index 0000000..ce15640 --- /dev/null +++ b/tests/data/var/lib/AccountsService/icons/benedict diff --git a/tests/data/var/lib/AccountsService/users/benedict.in b/tests/data/var/lib/AccountsService/users/benedict.in new file mode 100644 index 0000000..f70dc26 --- /dev/null +++ b/tests/data/var/lib/AccountsService/users/benedict.in @@ -0,0 +1,13 @@ +[com.endlessm.ParentalControls.AppFilter] +AppFilter=(false, []) +OarsFilter=('oars-1.1', {}) +AllowUserInstallation=true +AllowSystemInstallation=true + +[User] +Language= +Session= +XSession= +PasswordHint= +Icon=@ROOTDIR@/var/lib/AccountsService/icons/benedict +SystemAccount=false diff --git a/tests/test-daemon.py b/tests/test-daemon.py index 1d383f5..08ebfc1 100755 --- a/tests/test-daemon.py +++ b/tests/test-daemon.py @@ -132,7 +132,7 @@ class Tests(dbusmock.DBusTestCase): shutil.copytree(os.path.join(srcdir, 'tests', 'data', 'etc'), os.path.join(self.test_dir, 'etc')) shutil.copytree(os.path.join(srcdir, 'tests', 'data', 'var'), os.path.join(self.test_dir, 'var')) - users = ['rupert'] + users = ['rupert', 'benedict'] for user in users: path = os.path.join(self.test_dir, 'var', 'lib', 'AccountsService', 'users', user) with open(path + '.in') as f: |