Skip to content

Commit

Permalink
adjust existing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
wfeldt committed Dec 21, 2017
1 parent a6e741c commit 732a57f
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 23 deletions.
6 changes: 3 additions & 3 deletions test/data/devicegraphs/output/windows-pc-enc-sep-home.yml
Expand Up @@ -6,7 +6,7 @@
partitions:

- partition:
size: 745470 MiB
size: 745469 MiB
name: /dev/sda1
id: 0x7
file_system: ntfs
Expand All @@ -25,7 +25,7 @@
password: '12345678'

- partition:
size: 12290 MiB
size: 12291 MiB
name: "/dev/sda4"
type: extended
id: extended
Expand All @@ -43,7 +43,7 @@
password: '12345678'

- partition:
size: 10 GiB
size: 10241 MiB
name: "/dev/sda6"
type: logical
id: linux
Expand Down
5 changes: 4 additions & 1 deletion test/data/devicegraphs/output/windows-pc-enc.yml
Expand Up @@ -6,7 +6,7 @@
partitions:

- partition:
size: 738.00 GiB
size: 755711 MiB
name: /dev/sda1
id: 0x7
file_system: ntfs
Expand Down Expand Up @@ -35,6 +35,9 @@
name: "/dev/mapper/cr_sda4"
password: '12345678'

- free:
size: 1 MiB

- partition:
size: unlimited
name: "/dev/sda2"
Expand Down
4 changes: 2 additions & 2 deletions test/data/devicegraphs/output/windows-pc-gpt-enc-sep-home.yml
Expand Up @@ -6,7 +6,7 @@
partitions:

- partition:
size: 745471 MiB
size: 745470 MiB
name: /dev/sda1
id: windows_basic_data
file_system: ntfs
Expand Down Expand Up @@ -40,7 +40,7 @@
password: '12345678'

- partition:
size: 10.00 GiB
size: 10241 MiB
name: "/dev/sda6"
id: linux
file_system: xfs
Expand Down
5 changes: 4 additions & 1 deletion test/data/devicegraphs/output/windows-pc-gpt-enc.yml
Expand Up @@ -6,7 +6,7 @@
partitions:

- partition:
size: 755711 MiB
size: 755710 MiB
name: /dev/sda1
id: windows_basic_data
file_system: ntfs
Expand Down Expand Up @@ -39,6 +39,9 @@
name: "/dev/mapper/cr_sda5"
password: '12345678'

- free:
size: 1 MiB

- partition:
size: unlimited
name: "/dev/sda2"
Expand Down
4 changes: 2 additions & 2 deletions test/data/devicegraphs/output/windows-pc-gpt-sep-home.yml
Expand Up @@ -6,7 +6,7 @@
partitions:

- partition:
size: 745471 MiB
size: 745470 MiB
name: /dev/sda1
id: windows_basic_data
file_system: ntfs
Expand All @@ -32,7 +32,7 @@
mount_point: swap

- partition:
size: 10.00 GiB
size: 10241 MiB
name: "/dev/sda6"
id: linux
file_system: xfs
Expand Down
5 changes: 4 additions & 1 deletion test/data/devicegraphs/output/windows-pc-gpt.yml
Expand Up @@ -6,7 +6,7 @@
partitions:

- partition:
size: 755711 MiB
size: 755710 MiB
name: /dev/sda1
id: windows_basic_data
file_system: ntfs
Expand All @@ -31,6 +31,9 @@
file_system: swap
mount_point: swap

- free:
size: 1 MiB

- partition:
size: unlimited
name: "/dev/sda2"
Expand Down
6 changes: 3 additions & 3 deletions test/data/devicegraphs/output/windows-pc-mbr128-sep-home.yml
Expand Up @@ -7,7 +7,7 @@
partitions:

- partition:
size: 745470 MiB
size: 745469 MiB
start: 128 KiB
name: /dev/sda1
id: 0x7
Expand All @@ -23,7 +23,7 @@
mount_point: "/"

- partition:
size: 12290 MiB
size: 12291 MiB
name: "/dev/sda4"
type: extended
id: extended
Expand All @@ -37,7 +37,7 @@
mount_point: swap

- partition:
size: 10 GiB
size: 10241 MiB
name: "/dev/sda6"
type: logical
id: linux
Expand Down
5 changes: 4 additions & 1 deletion test/data/devicegraphs/output/windows-pc-mbr128.yml
Expand Up @@ -7,7 +7,7 @@
partitions:

- partition:
size: 738.00 GiB
size: 755711 MiB
start: 128 KiB
name: /dev/sda1
id: 0x7
Expand All @@ -29,6 +29,9 @@
file_system: swap
mount_point: swap

- free:
size: 1 MiB

- partition:
size: unlimited
name: "/dev/sda2"
Expand Down
6 changes: 3 additions & 3 deletions test/data/devicegraphs/output/windows-pc-mbr256-sep-home.yml
Expand Up @@ -7,7 +7,7 @@
partitions:

- partition:
size: 745470 MiB
size: 745469 MiB
start: 256 KiB
name: /dev/sda1
id: 0x7
Expand All @@ -23,7 +23,7 @@
mount_point: "/"

- partition:
size: 12290 MiB
size: 12291 MiB
name: "/dev/sda4"
type: extended
id: extended
Expand All @@ -37,7 +37,7 @@
mount_point: swap

- partition:
size: 10 GiB
size: 10241 MiB
name: "/dev/sda6"
type: logical
id: linux
Expand Down
5 changes: 4 additions & 1 deletion test/data/devicegraphs/output/windows-pc-mbr256.yml
Expand Up @@ -7,7 +7,7 @@
partitions:

- partition:
size: 738.00 GiB
size: 755711 MiB
start: 256 KiB
name: /dev/sda1
id: 0x7
Expand All @@ -29,6 +29,9 @@
file_system: swap
mount_point: swap

- free:
size: 1 MiB

- partition:
size: unlimited
name: "/dev/sda2"
Expand Down
6 changes: 3 additions & 3 deletions test/data/devicegraphs/output/windows-pc-sep-home.yml
Expand Up @@ -6,7 +6,7 @@
partitions:

- partition:
size: 745470 MiB
size: 745469 MiB
name: /dev/sda1
id: 0x7
file_system: ntfs
Expand All @@ -21,7 +21,7 @@
mount_point: "/"

- partition:
size: 12290 MiB
size: 12291 MiB
name: "/dev/sda4"
type: extended
id: extended
Expand All @@ -35,7 +35,7 @@
mount_point: swap

- partition:
size: 10 GiB
size: 10241 MiB
name: "/dev/sda6"
type: logical
id: linux
Expand Down
5 changes: 4 additions & 1 deletion test/data/devicegraphs/output/windows-pc.yml
Expand Up @@ -6,7 +6,7 @@
partitions:

- partition:
size: 738.00 GiB
size: 755711 MiB
name: /dev/sda1
id: 0x7
file_system: ntfs
Expand All @@ -27,6 +27,9 @@
file_system: swap
mount_point: swap

- free:
size: 1 MiB

- partition:
size: unlimited
name: "/dev/sda2"
Expand Down
2 changes: 1 addition & 1 deletion test/y2storage/proposal/space_maker_test.rb
Expand Up @@ -296,7 +296,7 @@ def probed_partition(name)
it "resizes Windows partitions to free additional needed space" do
result = maker.provide_space(fake_devicegraph, volumes, lvm_helper)
expect(result[:devicegraph].partitions).to contain_exactly(
an_object_having_attributes(filesystem_label: "windows", size: 200.GiB - 1.MiB)
an_object_having_attributes(filesystem_label: "windows", size: 200.GiB - 2.MiB)
)
end
end
Expand Down

0 comments on commit 732a57f

Please sign in to comment.