summaryrefslogtreecommitdiff
path: root/tests/fixtures
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-17 23:08:43 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-17 23:08:43 -0500
commit383ed329bffdec853bdb4c9c03e56ed3b86455da (patch)
treeeda7ef3f25eb1ecae6b0c8824c87252a5d2d0379 /tests/fixtures
parent01105c999b6ff14f8ba9dae9031c3adfc8391193 (diff)
downloadhorizon-383ed329bffdec853bdb4c9c03e56ed3b86455da.tar.gz
horizon-383ed329bffdec853bdb4c9c03e56ed3b86455da.tar.bz2
horizon-383ed329bffdec853bdb4c9c03e56ed3b86455da.tar.xz
horizon-383ed329bffdec853bdb4c9c03e56ed3b86455da.zip
hscript: Implement diskid key (except execution)
Diffstat (limited to 'tests/fixtures')
-rw-r--r--tests/fixtures/0076-diskid-basic.installfile6
-rw-r--r--tests/fixtures/0077-diskid-missing-id.installfile6
-rw-r--r--tests/fixtures/0078-diskid-diskid-loop0.installfile6
-rw-r--r--tests/fixtures/0079-diskid-enoent.installfile6
-rw-r--r--tests/fixtures/0080-diskid-tmp.installfile6
-rw-r--r--tests/fixtures/0081-diskid-duplicate.installfile7
6 files changed, 37 insertions, 0 deletions
diff --git a/tests/fixtures/0076-diskid-basic.installfile b/tests/fixtures/0076-diskid-basic.installfile
new file mode 100644
index 0000000..329e70c
--- /dev/null
+++ b/tests/fixtures/0076-diskid-basic.installfile
@@ -0,0 +1,6 @@
+network false
+hostname test.machine
+pkginstall adelie-base
+rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/
+mount /dev/sda1 /
+diskid /dev/sda SEAGATE
diff --git a/tests/fixtures/0077-diskid-missing-id.installfile b/tests/fixtures/0077-diskid-missing-id.installfile
new file mode 100644
index 0000000..d98623c
--- /dev/null
+++ b/tests/fixtures/0077-diskid-missing-id.installfile
@@ -0,0 +1,6 @@
+network false
+hostname test.machine
+pkginstall adelie-base
+rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/
+mount /dev/sda1 /
+diskid /dev/nvme0n1
diff --git a/tests/fixtures/0078-diskid-diskid-loop0.installfile b/tests/fixtures/0078-diskid-diskid-loop0.installfile
new file mode 100644
index 0000000..a653295
--- /dev/null
+++ b/tests/fixtures/0078-diskid-diskid-loop0.installfile
@@ -0,0 +1,6 @@
+network false
+hostname test.machine
+pkginstall adelie-base
+rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/
+mount /dev/sda1 /
+diskid /dev/loop0 Loop
diff --git a/tests/fixtures/0079-diskid-enoent.installfile b/tests/fixtures/0079-diskid-enoent.installfile
new file mode 100644
index 0000000..52bca60
--- /dev/null
+++ b/tests/fixtures/0079-diskid-enoent.installfile
@@ -0,0 +1,6 @@
+network false
+hostname test.machine
+pkginstall adelie-base
+rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/
+mount /dev/sda1 /
+diskid /path/doesnt/exist Test
diff --git a/tests/fixtures/0080-diskid-tmp.installfile b/tests/fixtures/0080-diskid-tmp.installfile
new file mode 100644
index 0000000..0aab4cd
--- /dev/null
+++ b/tests/fixtures/0080-diskid-tmp.installfile
@@ -0,0 +1,6 @@
+network false
+hostname test.machine
+pkginstall adelie-base
+rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/
+mount /dev/sda1 /
+diskid /tmp This will error because it isn't a block device
diff --git a/tests/fixtures/0081-diskid-duplicate.installfile b/tests/fixtures/0081-diskid-duplicate.installfile
new file mode 100644
index 0000000..1fe96b1
--- /dev/null
+++ b/tests/fixtures/0081-diskid-duplicate.installfile
@@ -0,0 +1,7 @@
+network false
+hostname test.machine
+pkginstall adelie-base
+rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/
+mount /dev/sda1 /
+diskid /dev/sda SEAGATE
+diskid /dev/sda WD