Skip to content

Commit

Permalink
Added a few annotations in lcow_policy_test.go so that test can run o…
Browse files Browse the repository at this point in the history
…n non-SNP"

Signed-off-by: Jie Chen <jiechen3@microsoft.com>
  • Loading branch information
jiechen0826 committed Feb 5, 2025
1 parent bb2e906 commit 2223ba5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/uvm/create_lcow.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ type OptionsLCOW struct {
EnableColdDiscardHint bool // Whether the HCS should use cold discard hints. Defaults to false
VPCIEnabled bool // Whether the kernel should enable pci
EnableScratchEncryption bool // Whether the scratch should be encrypted
NoSecurityHardware bool // Whether security hardware is used
DisableTimeSyncService bool // Disables the time synchronization service
HclEnabled *bool // Whether to enable the host compatibility layer
ExtraVSockPorts []uint32 // Extra vsock ports to allow
Expand Down
4 changes: 4 additions & 0 deletions test/functional/lcow_policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ func TestGetProperties_WithPolicy(t *testing.T) {
)
opts.SecurityPolicyEnforcer = "rego"
opts.SecurityPolicy = policy
opts.NoSecurityHardware = true
opts.EnableScratchEncryption = false
opts.VPMemDeviceCount = 0
opts.VPMemNoMultiMapping = true

cleanName := util.CleanName(t.Name())
vm := testuvm.CreateAndStartLCOWFromOpts(ctx, t, opts)
Expand Down

0 comments on commit 2223ba5

Please sign in to comment.