mirror of
https://github.com/containers/podman.git
synced 2025-12-01 10:38:05 +08:00
Merge pull request #17217 from ygalblum/ygal-quadlet-blockdev-support
quadlet: Add device support for .volume files
This commit is contained in:
13
test/e2e/quadlet/device-copy.volume
Normal file
13
test/e2e/quadlet/device-copy.volume
Normal file
@@ -0,0 +1,13 @@
|
||||
## assert-key-contains Service ExecStart " --opt o=uid=0,gid=11,rw,compress=zstd "
|
||||
## assert-key-contains Service ExecStart " --opt type=btrfs "
|
||||
## assert-key-contains Service ExecStart " --opt device=/dev/vda1 "
|
||||
## assert-key-contains Service ExecStart " --opt copy "
|
||||
|
||||
[Volume]
|
||||
# Test usernames too
|
||||
User=root
|
||||
Group=11
|
||||
Device=/dev/vda1
|
||||
Type=btrfs
|
||||
Options=rw,compress=zstd
|
||||
Copy=yes
|
||||
13
test/e2e/quadlet/device.volume
Normal file
13
test/e2e/quadlet/device.volume
Normal file
@@ -0,0 +1,13 @@
|
||||
## assert-key-contains Service ExecStart " --opt o=uid=0,gid=11,rw,compress=zstd "
|
||||
## assert-key-contains Service ExecStart " --opt type=btrfs "
|
||||
## assert-key-contains Service ExecStart " --opt device=/dev/vda1 "
|
||||
## assert-key-contains Service ExecStart " --opt nocopy "
|
||||
|
||||
[Volume]
|
||||
# Test usernames too
|
||||
User=root
|
||||
Group=11
|
||||
Device=/dev/vda1
|
||||
Type=btrfs
|
||||
Options=rw,compress=zstd
|
||||
Copy=no
|
||||
@@ -482,6 +482,7 @@ var _ = Describe("quadlet system generator", func() {
|
||||
Entry("basic.volume", "basic.volume"),
|
||||
Entry("label.volume", "label.volume"),
|
||||
Entry("uid.volume", "uid.volume"),
|
||||
Entry("device.volume", "device-copy.volume"),
|
||||
|
||||
Entry("Basic kube", "basic.kube"),
|
||||
Entry("Syslog Identifier", "syslog.identifier.kube"),
|
||||
|
||||
Reference in New Issue
Block a user