From d799d56fc8505261cda099f402eafbc4fe858ca0 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 6 Nov 2019 17:48:33 -0600 Subject: tests: Add more LVM behavioural tests --- tests/fixtures/0207-lvmvg-dot.installfile | 11 +++++++++++ tests/fixtures/0208-lvmvg-valid-dot.installfile | 11 +++++++++++ tests/fixtures/0209-lvmlv-dash.installfile | 12 ++++++++++++ tests/fixtures/0210-lvmlv-snapshot.installfile | 12 ++++++++++++ tests/fixtures/0211-lvmlv-pvmove.installfile | 12 ++++++++++++ tests/fixtures/0212-lvmlv-size-percent.installfile | 12 ++++++++++++ tests/fixtures/0213-lvmlv-size-bytes.installfile | 12 ++++++++++++ tests/fixtures/0214-lvmvg-without-pv.installfile | 10 ++++++++++ 8 files changed, 92 insertions(+) create mode 100644 tests/fixtures/0207-lvmvg-dot.installfile create mode 100644 tests/fixtures/0208-lvmvg-valid-dot.installfile create mode 100644 tests/fixtures/0209-lvmlv-dash.installfile create mode 100644 tests/fixtures/0210-lvmlv-snapshot.installfile create mode 100644 tests/fixtures/0211-lvmlv-pvmove.installfile create mode 100644 tests/fixtures/0212-lvmlv-size-percent.installfile create mode 100644 tests/fixtures/0213-lvmlv-size-bytes.installfile create mode 100644 tests/fixtures/0214-lvmvg-without-pv.installfile (limited to 'tests/fixtures') diff --git a/tests/fixtures/0207-lvmvg-dot.installfile b/tests/fixtures/0207-lvmvg-dot.installfile new file mode 100644 index 0000000..9e53375 --- /dev/null +++ b/tests/fixtures/0207-lvmvg-dot.installfile @@ -0,0 +1,11 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +diskid /dev/sdb WDC +disklabel /dev/sdb apm +partition /dev/sdb 1 8M boot +partition /dev/sdb 2 fill +lvm_pv /dev/sdb2 +lvm_vg /dev/sdb2 . diff --git a/tests/fixtures/0208-lvmvg-valid-dot.installfile b/tests/fixtures/0208-lvmvg-valid-dot.installfile new file mode 100644 index 0000000..e973fc8 --- /dev/null +++ b/tests/fixtures/0208-lvmvg-valid-dot.installfile @@ -0,0 +1,11 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +diskid /dev/sdb WDC +disklabel /dev/sdb apm +partition /dev/sdb 1 8M boot +partition /dev/sdb 2 fill +lvm_pv /dev/sdb2 +lvm_vg /dev/sdb2 .MyVolGroup diff --git a/tests/fixtures/0209-lvmlv-dash.installfile b/tests/fixtures/0209-lvmlv-dash.installfile new file mode 100644 index 0000000..0e5b281 --- /dev/null +++ b/tests/fixtures/0209-lvmlv-dash.installfile @@ -0,0 +1,12 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +diskid /dev/sdb WDC +disklabel /dev/sdb apm +partition /dev/sdb 1 8M boot +partition /dev/sdb 2 fill +lvm_pv /dev/sdb2 +lvm_vg /dev/sdb2 MyVolGroup +lvm_lv MyVolGroup -root fill diff --git a/tests/fixtures/0210-lvmlv-snapshot.installfile b/tests/fixtures/0210-lvmlv-snapshot.installfile new file mode 100644 index 0000000..be065ef --- /dev/null +++ b/tests/fixtures/0210-lvmlv-snapshot.installfile @@ -0,0 +1,12 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +diskid /dev/sdb WDC +disklabel /dev/sdb apm +partition /dev/sdb 1 8M boot +partition /dev/sdb 2 fill +lvm_pv /dev/sdb2 +lvm_vg /dev/sdb2 MyVolGroup +lvm_lv MyVolGroup snapshot fill diff --git a/tests/fixtures/0211-lvmlv-pvmove.installfile b/tests/fixtures/0211-lvmlv-pvmove.installfile new file mode 100644 index 0000000..01de128 --- /dev/null +++ b/tests/fixtures/0211-lvmlv-pvmove.installfile @@ -0,0 +1,12 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +diskid /dev/sdb WDC +disklabel /dev/sdb apm +partition /dev/sdb 1 8M boot +partition /dev/sdb 2 fill +lvm_pv /dev/sdb2 +lvm_vg /dev/sdb2 MyVolGroup +lvm_lv MyVolGroup pvmove fill diff --git a/tests/fixtures/0212-lvmlv-size-percent.installfile b/tests/fixtures/0212-lvmlv-size-percent.installfile new file mode 100644 index 0000000..787044d --- /dev/null +++ b/tests/fixtures/0212-lvmlv-size-percent.installfile @@ -0,0 +1,12 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +diskid /dev/sdb WDC +disklabel /dev/sdb apm +partition /dev/sdb 1 8M boot +partition /dev/sdb 2 fill +lvm_pv /dev/sdb2 +lvm_vg /dev/sdb2 MyVolGroup +lvm_lv MyVolGroup root 50% diff --git a/tests/fixtures/0213-lvmlv-size-bytes.installfile b/tests/fixtures/0213-lvmlv-size-bytes.installfile new file mode 100644 index 0000000..9823b52 --- /dev/null +++ b/tests/fixtures/0213-lvmlv-size-bytes.installfile @@ -0,0 +1,12 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +diskid /dev/sdb WDC +disklabel /dev/sdb apm +partition /dev/sdb 1 8M boot +partition /dev/sdb 2 fill +lvm_pv /dev/sdb2 +lvm_vg /dev/sdb2 MyVolGroup +lvm_lv MyVolGroup root 100M diff --git a/tests/fixtures/0214-lvmvg-without-pv.installfile b/tests/fixtures/0214-lvmvg-without-pv.installfile new file mode 100644 index 0000000..0e0082c --- /dev/null +++ b/tests/fixtures/0214-lvmvg-without-pv.installfile @@ -0,0 +1,10 @@ +network false +hostname test.machine +pkginstall adelie-base +rootpw $6$gumtLGmHwOVIRpQR$2M9PUO24hy5mofzWWf9a.YLbzOgOlUby1g0hDj.wG67E2wrrvys59fq02PPdxBdbgkLZFtjfEx6MHZwMBamwu/ +mount /dev/sda1 / +diskid /dev/sdb WDC +disklabel /dev/sdb apm +partition /dev/sdb 1 8M boot +partition /dev/sdb 2 fill +lvm_vg /dev/loop2 NonExistentVG -- cgit v1.2.3-70-g09d2