diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-19 20:01:14 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-19 20:01:14 -0500 |
commit | f1ef45bd84b57b40b701e094a9b49daac3761f9f (patch) | |
tree | a52df6f8dbd231b5ba07c28aa0cc7c8fda919480 /tests/fixtures | |
parent | 55325a6e780b121f93d35076e4226521ca13ef12 (diff) | |
download | horizon-f1ef45bd84b57b40b701e094a9b49daac3761f9f.tar.gz horizon-f1ef45bd84b57b40b701e094a9b49daac3761f9f.tar.bz2 horizon-f1ef45bd84b57b40b701e094a9b49daac3761f9f.tar.xz horizon-f1ef45bd84b57b40b701e094a9b49daac3761f9f.zip |
hscript: Implement UserGroups, add tests
Diffstat (limited to 'tests/fixtures')
7 files changed, 60 insertions, 0 deletions
diff --git a/tests/fixtures/0104-usergroups-basic.installfile b/tests/fixtures/0104-usergroups-basic.installfile new file mode 100644 index 0000000..fb4c31e --- /dev/null +++ b/tests/fixtures/0104-usergroups-basic.installfile @@ -0,0 +1,15 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +username chris +usergroups chris disk,lp,wheel,floppy,audio,cdrom,video,games,cdrw,usb,users +username kayla +usergroups kayla lp,audio,cdrom,video,games,users +username meg +usergroups meg lp,audio,cdrom,video,games,users +username steph +usergroups steph lp,audio,cdrom,video,games,users +username amanda +usergroups amanda lp,audio,cdrom,video,games,users diff --git a/tests/fixtures/0105-usergroups-without-groups.installfile b/tests/fixtures/0105-usergroups-without-groups.installfile new file mode 100644 index 0000000..63cc3fd --- /dev/null +++ b/tests/fixtures/0105-usergroups-without-groups.installfile @@ -0,0 +1,7 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +username awilfox +usergroups awilfox diff --git a/tests/fixtures/0106-usergroups-comma.installfile b/tests/fixtures/0106-usergroups-comma.installfile new file mode 100644 index 0000000..b337fb5 --- /dev/null +++ b/tests/fixtures/0106-usergroups-comma.installfile @@ -0,0 +1,7 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +username awilfox +usergroups awilfox ,,, diff --git a/tests/fixtures/0107-usergroups-unknown-name.installfile b/tests/fixtures/0107-usergroups-unknown-name.installfile new file mode 100644 index 0000000..6cbec3b --- /dev/null +++ b/tests/fixtures/0107-usergroups-unknown-name.installfile @@ -0,0 +1,8 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +username awilfox +# Intentional misspelling +usergroups awilcox users,wheel diff --git a/tests/fixtures/0108-jumbo-usergroups.installfile b/tests/fixtures/0108-jumbo-usergroups.installfile new file mode 100644 index 0000000..6b3cd03 --- /dev/null +++ b/tests/fixtures/0108-jumbo-usergroups.installfile @@ -0,0 +1,7 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +username awilfox +usergroups awilfox root,bin,daemon,sys,adm,tty,disk,lp,mem,kmem,wheel,floppy,mail,news,uucp,man,cron,console,audio,cdrom,dialout,ftp,sshd,input,at,tape,video diff --git a/tests/fixtures/0109-usergroups-unknown.installfile b/tests/fixtures/0109-usergroups-unknown.installfile new file mode 100644 index 0000000..4557950 --- /dev/null +++ b/tests/fixtures/0109-usergroups-unknown.installfile @@ -0,0 +1,8 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +username awilfox +# Groups that are not in the base set +usergroups awilfox messagebus,www-data,pulse diff --git a/tests/fixtures/0110-usergroups-duplicate.installfile b/tests/fixtures/0110-usergroups-duplicate.installfile new file mode 100644 index 0000000..9d04ae7 --- /dev/null +++ b/tests/fixtures/0110-usergroups-duplicate.installfile @@ -0,0 +1,8 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +username awilfox +usergroups awilfox disk,lp,wheel,floppy,audio,cdrom +usergroups awilfox wheel,video,games,cdrw,usb,users |