mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-04 02:56:18 +00:00
qemu: test Valid for Vsock for Context ID
Add test for the validation when the Context ID is larger than 32 bits Signed-off-by: Alice Frosi <afrosi@de.ibm.com>
This commit is contained in:
parent
3becff5f4e
commit
b3b765cbe6
@ -312,6 +312,12 @@ func TestVSOCKValid(t *testing.T) {
|
|||||||
t.Fatalf("VSOCK Context ID is not valid")
|
t.Fatalf("VSOCK Context ID is not valid")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vsockDevice.ContextID = MaxGuestCID + 1
|
||||||
|
|
||||||
|
if vsockDevice.Valid() {
|
||||||
|
t.Fatalf("VSOCK Context ID is not valid")
|
||||||
|
}
|
||||||
|
|
||||||
vsockDevice.ID = ""
|
vsockDevice.ID = ""
|
||||||
|
|
||||||
if vsockDevice.Valid() {
|
if vsockDevice.Valid() {
|
||||||
|
Loading…
Reference in New Issue
Block a user