Skip to content

Commit

Permalink
Expect SEV test to fail on non-amd64 architectures
Browse files Browse the repository at this point in the history
Signed-off-by: Vasiliy Ulyanov <vulyanov@suse.de>
  • Loading branch information
vasiliy-ul committed May 12, 2023
1 parent b065e37 commit 3528f6a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/virt-launcher/virtwrap/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1293,9 +1293,13 @@ var _ = Describe("Manager", func() {

manager, _ := NewLibvirtDomainManager(mockConn, testVirtShareDir, testEphemeralDiskDir, nil, ovmfDir, ephemeralDiskCreatorMock, metadataCache)
sevMeasurementInfo, err := manager.GetLaunchMeasurement(vmi)
Expect(err).ToNot(HaveOccurred())
Expect(sevMeasurementInfo.Measurement).To(Equal(domainLaunchSecurityParameters.SEVMeasurement))
Expect(sevMeasurementInfo.LoaderSHA).To(Equal(fmt.Sprintf("%x", sha256.Sum256(loaderBytes))))
if runtime.GOARCH == "amd64" {
Expect(err).ToNot(HaveOccurred())
Expect(sevMeasurementInfo.Measurement).To(Equal(domainLaunchSecurityParameters.SEVMeasurement))
Expect(sevMeasurementInfo.LoaderSHA).To(Equal(fmt.Sprintf("%x", sha256.Sum256(loaderBytes))))
} else {
Expect(err).To(HaveOccurred())
}
})

It("should inject a secret into a VirtualMachineInstance", func() {
Expand Down

0 comments on commit 3528f6a

Please sign in to comment.