diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-18 23:18:12 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-18 23:18:12 -0500 |
commit | da01034909eba11be184cedb408f34732a33c4cd (patch) | |
tree | bc75474a59515f33ada34377c2e12e92bfd5e048 /tests/fixtures | |
parent | 72ca6added88259f9b456810bdd7300c2037b23c (diff) | |
download | horizon-da01034909eba11be184cedb408f34732a33c4cd.tar.gz horizon-da01034909eba11be184cedb408f34732a33c4cd.tar.bz2 horizon-da01034909eba11be184cedb408f34732a33c4cd.tar.xz horizon-da01034909eba11be184cedb408f34732a33c4cd.zip |
hscript: Implement username validity check and UserAlias code; add tests
Diffstat (limited to 'tests/fixtures')
6 files changed, 46 insertions, 1 deletions
diff --git a/tests/fixtures/0067-netssid-spaces-wpa.installfile b/tests/fixtures/0067-netssid-spaces-wpa.installfile index e74f34c..fecebf7 100644 --- a/tests/fixtures/0067-netssid-spaces-wpa.installfile +++ b/tests/fixtures/0067-netssid-spaces-wpa.installfile @@ -1,5 +1,5 @@ network false -hostname test.machine +hostname my.test.machine pkginstall adelie-base rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ mount /dev/sda1 / diff --git a/tests/fixtures/0086-username-invalid.installfile b/tests/fixtures/0086-username-invalid.installfile new file mode 100644 index 0000000..3605860 --- /dev/null +++ b/tests/fixtures/0086-username-invalid.installfile @@ -0,0 +1,6 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +username 1AWilcox diff --git a/tests/fixtures/0087-useralias-basic.installfile b/tests/fixtures/0087-useralias-basic.installfile new file mode 100644 index 0000000..bb3a0e5 --- /dev/null +++ b/tests/fixtures/0087-useralias-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 +useralias chris Christopher +username kayla +useralias kayla Kayla +username meg +useralias meg Meaghan +username steph +useralias steph Stephanie +username amanda +useralias amanda Amanda Jane diff --git a/tests/fixtures/0088-useralias-without-alias.installfile b/tests/fixtures/0088-useralias-without-alias.installfile new file mode 100644 index 0000000..f269e2e --- /dev/null +++ b/tests/fixtures/0088-useralias-without-alias.installfile @@ -0,0 +1,7 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +username awilfox +useralias awilfox diff --git a/tests/fixtures/0089-useralias-unknown-name.installfile b/tests/fixtures/0089-useralias-unknown-name.installfile new file mode 100644 index 0000000..b3b6d55 --- /dev/null +++ b/tests/fixtures/0089-useralias-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 to trigger error +useralias awilcox A. Wilcox diff --git a/tests/fixtures/0090-useralias-duplicate.installfile b/tests/fixtures/0090-useralias-duplicate.installfile new file mode 100644 index 0000000..5426abe --- /dev/null +++ b/tests/fixtures/0090-useralias-duplicate.installfile @@ -0,0 +1,9 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +username awilfox +# intentional duplication +useralias awilfox A. Wilcox +useralias awilfox A. Wilcox |