- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 483 for testCases (0.2 sec)
-
pkg/kubelet/cm/dra/state/state_checkpoint_test.go
// for API types). That breaks checksuming with pkg/util/hash because it is based on spew output. // That output includes those new fields. func TestCheckpointGetOrCreate(t *testing.T) { testCases := []struct { description string checkpointContent string expectedError string expectedState ClaimInfoStateList }{ { "Create non-existing checkpoint", "", "",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:13 UTC 2024 - 11.9K bytes - Viewed (0) -
pkg/api/service/warnings_test.go
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/validation/field" api "k8s.io/kubernetes/pkg/apis/core" ) func TestGetWarningsForService(t *testing.T) { testCases := []struct { name string tweakSvc func(svc *api.Service) // Given a basic valid service, each test case can customize it. numWarnings int }{{ name: "new topology mode set",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 26 22:57:57 UTC 2023 - 10.4K bytes - Viewed (0) -
pkg/scheduler/internal/cache/snapshot_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 05 08:00:25 UTC 2023 - 12K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce_test.go
"name": "my-meta", "generateName": nil, "generation": nil, "labels": map[string]string{ "foo": "bar", }, "annotations": 11, }, } var testcases = []struct { obj map[string]interface{} dropMalformedFields bool returnUnknownFieldPaths bool expectedObject *metav1.ObjectMeta expectedUnknownPaths []string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 12.7K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/operation_generator_test.go
func TestOperationGenerator_GenerateUnmapVolumeFunc_PluginName(t *testing.T) { type testcase struct { name string pluginName string pvSpec v1.PersistentVolumeSpec probVolumePlugins []volume.VolumePlugin } testcases := []testcase{ { name: "gce pd plugin: csi migration disabled", pluginName: "fake-plugin",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 16.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/test/api_meta_meta_test.go
if err != nil { t.Errorf("%s: unexpected error %#v", key, err) } if actual != testCase.Expected { t.Errorf("%s: expected %v, got %v", key, testCase.Expected, actual) } } failingCases := map[string]struct { runtime.Object Expected string }{ "not a valid object to try": {&MyIncorrectlyMarkedAsAPIObject{}, "1"}, } for key, testCase := range failingCases {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 14 10:11:56 UTC 2022 - 12.9K bytes - Viewed (0) -
security/pkg/nodeagent/cache/secretcache_test.go
}, } sc := createCache(t, nil, func(resourceName string) {}, security.Options{}) for _, tc := range testCases { ret := sc.rootCertificateExist(tc.certPath) if tc.expectResult != ret { t.Errorf("unexpected result is returned!") } } } func TestKeyCertificateExist(t *testing.T) { testCases := map[string]struct { certPath string keyPath string expectResult bool }{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 22:12:28 UTC 2024 - 23.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/yaml/yaml_test.go
package yaml import ( "strings" "testing" "k8s.io/apimachinery/pkg/util/yaml" sigsyaml "sigs.k8s.io/yaml" ) type testcase struct { name string data []byte error string benchmark bool } func testcases() []testcase { return []testcase{ { name: "arrays of string aliases", error: "excessive aliasing", data: []byte(` apiVersion: v1 data:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 06 20:18:22 UTC 2020 - 14.3K bytes - Viewed (0) -
pkg/controller/job/success_policy_test.go
featuregatetesting "k8s.io/component-base/featuregate/testing" "k8s.io/klog/v2/ktesting" "k8s.io/kubernetes/pkg/features" "k8s.io/utils/ptr" ) func TestMatchSuccessPolicy(t *testing.T) { testCases := map[string]struct { successPolicy *batch.SuccessPolicy completions int32 succeededIndexes orderedIntervals wantMessage string wantMetSuccessPolicy bool
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 15:36:36 UTC 2024 - 14.6K bytes - Viewed (0) -
tests/integration/security/filebased_tls_origination/egress_gateway_origination_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 11.9K bytes - Viewed (0)