mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-07-16 23:11:52 -04:00
Merge pull request #130123 from marosset/windows-unit-test-skip-ippvs-test-cases
skipping InPlacePodVerticleScaling unit tests on Windows
This commit is contained in:
commit
215a9101a7
2 changed files with 10 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
goruntime "runtime"
|
||||
"sort"
|
||||
"strings"
|
||||
"testing"
|
||||
|
|
@ -3821,6 +3822,9 @@ func Test_generateAPIPodStatus(t *testing.T) {
|
|||
}
|
||||
|
||||
func Test_generateAPIPodStatusForInPlaceVPAEnabled(t *testing.T) {
|
||||
if goruntime.GOOS == "windows" {
|
||||
t.Skip("InPlacePodVerticalScaling is not currently supported for Windows")
|
||||
}
|
||||
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.InPlacePodVerticalScaling, true)
|
||||
testContainerName := "ctr0"
|
||||
testContainerID := kubecontainer.ContainerID{Type: "test", ID: testContainerName}
|
||||
|
|
@ -4635,6 +4639,9 @@ func TestConvertToAPIContainerStatusesDataRace(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestConvertToAPIContainerStatusesForResources(t *testing.T) {
|
||||
if goruntime.GOOS == "windows" {
|
||||
t.Skip("InPlacePodVerticalScaling is not currently supported for Windows")
|
||||
}
|
||||
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.InPlacePodVerticalScaling, true)
|
||||
|
||||
nowTime := time.Now()
|
||||
|
|
|
|||
|
|
@ -2583,6 +2583,9 @@ func TestPodResourceAllocationReset(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestHandlePodResourcesResize(t *testing.T) {
|
||||
if goruntime.GOOS == "windows" {
|
||||
t.Skip("InPlacePodVerticalScaling is not currently supported for Windows")
|
||||
}
|
||||
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.InPlacePodVerticalScaling, true)
|
||||
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.SidecarContainers, true)
|
||||
testKubelet := newTestKubelet(t, false)
|
||||
|
|
|
|||
Loading…
Reference in a new issue