-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathvmprovider_cpu_freq_test.go
More file actions
43 lines (35 loc) · 1.03 KB
/
vmprovider_cpu_freq_test.go
File metadata and controls
43 lines (35 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// © Broadcom. All Rights Reserved.
// The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
// SPDX-License-Identifier: Apache-2.0
package vsphere_test
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/vmware-tanzu/vm-operator/pkg/providers"
"github.com/vmware-tanzu/vm-operator/pkg/providers/vsphere"
"github.com/vmware-tanzu/vm-operator/test/builder"
)
var _ = Describe("CPU Frequency", func() {
var (
testConfig builder.VCSimTestConfig
ctx *builder.TestContextForVCSim
vmProvider providers.VirtualMachineProviderInterface
)
BeforeEach(func() {
testConfig = builder.VCSimTestConfig{}
})
JustBeforeEach(func() {
ctx = suite.NewTestContextForVCSim(testConfig)
vmProvider = vsphere.NewVSphereVMProviderFromClient(ctx, ctx.Client, ctx.Recorder)
})
AfterEach(func() {
ctx.AfterEach()
ctx = nil
vmProvider = nil
})
Context("ComputeCPUMinFrequency", func() {
It("returns success", func() {
Expect(vmProvider.ComputeCPUMinFrequency(ctx)).To(Succeed())
})
})
})