- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 579 for testCases (0.83 sec)
-
staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go
expectedErr: "", }, } for _, testCase := range testCases { t.Run(testCase.name, func(t *testing.T) { // only the KMSv2 feature flag is enabled _, err := LoadEncryptionConfig(testContext(t), testCase.filePath, false, "") if len(testCase.expectedErr) > 0 && !strings.Contains(errString(err), testCase.expectedErr) { t.Fatalf("expected error %q, got %q", testCase.expectedErr, errString(err)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 16:56:39 UTC 2024 - 72.3K bytes - Viewed (0) -
pkg/volume/csi/csi_client_test.go
capabilityMethodToTest func(*csiDriverClient) (bool, error), nodeClientGenerator func(bool) *fake.NodeClient) { testCases := []struct { name string capable bool }{ {name: "positive", capable: true}, {name: "negative", capable: false}, } for _, tc := range testCases { t.Logf("Running test case: %s", tc.name) fakeCloser := fake.NewCloser(t) client := &csiDriverClient{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 33.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/dynamicresources/structured/namedresources/namedresourcesmodel_test.go
return InstanceAllocation{ Allocated: allocated, Instance: &resourceapi.NamedResourcesInstance{ Name: name, Attributes: attributes, }, } } func TestModel(t *testing.T) { testcases := map[string]struct { resources []*resourceapi.NamedResourcesResources allocations []*resourceapi.NamedResourcesAllocationResult expectModel Model }{ "empty": {}, "nil": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 27 09:27:01 UTC 2024 - 7.9K bytes - Viewed (0) -
cmd/signature-v4-utils_test.go
if testCase.inputHeaderKey != "" { q.Add(testCase.inputHeaderKey, testCase.inputHeaderValue) } inputReq.URL.RawQuery = q.Encode() } else if testCase.inputHeaderKey != "" { inputReq.Header.Set(testCase.inputHeaderKey, testCase.inputHeaderValue) } inputReq.ParseForm() actualResult := skipContentSha256Cksum(inputReq) if testCase.expectedResult != actualResult {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 05 21:26:41 UTC 2024 - 14.3K bytes - Viewed (0) -
pilot/pkg/security/authz/matcher/template_test.go
"github.com/google/go-cmp/cmp" "google.golang.org/protobuf/testing/protocmp" ) func TestPathTemplateMatcher(t *testing.T) { testCases := []struct { name string path string want *uri_template.UriTemplateMatchConfig }{ { name: "matchOneOnly", path: "/foo/bar/{*}", want: &uri_template.UriTemplateMatchConfig{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 20 01:58:53 UTC 2024 - 1.8K bytes - Viewed (0) -
pkg/proxy/util/endpoints_test.go
See the License for the specific language governing permissions and limitations under the License. */ package util import ( "testing" ) func TestIPPart(t *testing.T) { const noError = "" testCases := []struct { endpoint string expectedIP string expectedError string }{ {"1.2.3.4", "1.2.3.4", noError}, {"1.2.3.4:9999", "1.2.3.4", noError}, {"2001:db8::1:1", "2001:db8::1:1", noError},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 11:57:43 UTC 2024 - 1.4K bytes - Viewed (0) -
cmd/kubeadm/app/util/apiclient/wait_test.go
limitations under the License. */ package apiclient import ( "reflect" "testing" kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm" ) func TestGetControlPlaneComponents(t *testing.T) { testcases := []struct { name string cfg *kubeadmapi.ClusterConfiguration expected []controlPlaneComponent }{ { name: "port values from config", cfg: &kubeadmapi.ClusterConfiguration{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 16 15:33:38 UTC 2024 - 2.3K bytes - Viewed (0) -
pkg/kubelet/network/dns/dns_test.go
select { case event := <-recorder.Events: return event default: return "" } } ) func TestParseResolvConf(t *testing.T) { testCases := []struct { data string nameservers []string searches []string options []string isErr bool }{ {"", []string{}, []string{}, []string{}, false},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 25.6K bytes - Viewed (0) -
pkg/util/tail/tail_test.go
line := strings.Repeat("a", blockSize) testBytes := []byte(line + "\n" + line + "\n" + line + "\n" + line + "\n" + line[blockSize/2:]) // incomplete line file.Write(testBytes) testCases := []struct { name string max int64 longerThanMax bool expected string }{ { name: "the max is negative", max: -1, longerThanMax: true,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 30 13:13:22 UTC 2024 - 2.3K bytes - Viewed (0) -
cmd/erasure-object_test.go
} } toObjectNames := func(testCases []testCaseType) []ObjectToDelete { names := make([]ObjectToDelete, len(testCases)) for i := range testCases { names[i] = ObjectToDelete{ ObjectV: ObjectV{ ObjectName: testCases[i].object, }, } } return names } objectNames := toObjectNames(testCases)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Jan 30 20:43:25 UTC 2024 - 36.8K bytes - Viewed (0)