- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 466 for testCases (0.16 sec)
-
security/pkg/k8s/chiron/utils_test.go
_, _, _, err := GenKeyCertK8sCA(client.Kube(), "foo", ca, testSigner, true, DefaulCertTTL) assert.NoError(t, err) } func TestReadCACert(t *testing.T) { testCases := map[string]struct { certPath string shouldFail bool expectedCert []byte }{ "cert not exist": { certPath: "./invalid-path/invalid-file", shouldFail: true, },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 03:58:11 UTC 2024 - 13K bytes - Viewed (0) -
pkg/spiffe/spiffe_test.go
"bar.domain.com": {validRootCert}, }, errContains: "x509: certificate signed by unknown authority", }, } for _, testCase := range testCases { t.Run(testCase.name, func(t *testing.T) { certMap := make(map[string][]*x509.Certificate) for trustDomain, certStrs := range testCase.certMap { certMap[trustDomain] = []*x509.Certificate{} for _, certStr := range certStrs {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 18.1K bytes - Viewed (0) -
hack/make-rules/test.sh
fi # Filter out arguments that start with "-" and move them to goflags. testcases=() for arg; do if [[ "${arg}" == -* ]]; then goflags+=("${arg}") else testcases+=("${arg}") fi done if [[ ${#testcases[@]} -eq 0 ]]; then kube::util::read-array testcases < <(kube::test::find_dirs) fi set -- "${testcases[@]+${testcases[@]}}" if [[ -n "${KUBE_RACE}" ]] ; then goflags+=("${KUBE_RACE}")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 02 22:40:10 UTC 2024 - 10.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/egressselector/egress_selector_test.go
"sigs.k8s.io/apiserver-network-proxy/konnectivity-client/proto/client" ) type fakeEgressSelection struct { directDialerCalled bool } func TestEgressSelector(t *testing.T) { testcases := []struct { name string input *apiserver.EgressSelectorConfiguration services []struct { egressType EgressType validateDialer func(dialer utilnet.DialFunc, s *fakeEgressSelection) (bool, error)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 26 22:41:29 UTC 2023 - 12.3K bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/endpointslicemirroring_controller_test.go
informerFactory.Core().V1().Services().Informer().GetStore(), } } func TestSyncEndpoints(t *testing.T) { endpointsName := "testing-sync-endpoints" namespace := metav1.NamespaceDefault testCases := []struct { testName string service *v1.Service endpoints *v1.Endpoints endpointSlices []*discovery.EndpointSlice expectedNumActions int expectedNumSlices int }{{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 12 12:57:29 UTC 2023 - 13.9K bytes - Viewed (0) -
platforms/software/testing-base/src/testFixtures/groovy/org/gradle/testing/AbstractTestFrameworkIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 12.2K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/config_test.go
if len(actual) != defaultNumberOfImages { t.Fatalf("Expected %v but found %v images", defaultNumberOfImages, len(actual)) } } func TestImagesListRunWithCustomConfigPath(t *testing.T) { testcases := []struct { name string expectedImageCount int // each string provided here must appear in at least one image returned by Run expectedImageSubstrings []string configContents []byte }{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 13K bytes - Viewed (0) -
pkg/volume/csi/csi_plugin_test.go
shouldFail: true, }, } for _, tc := range testCases { // Arrange & Act err := PluginHandler.ValidatePlugin(tc.pluginName, tc.endpoint, tc.versions) // Assert if tc.shouldFail && err == nil { t.Fatalf("expecting ValidatePlugin to fail, but got nil error for testcase: %#v", tc) } if !tc.shouldFail && err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 41.8K bytes - Viewed (0) -
pkg/slices/slices_test.go
expected: []int{1}, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { result := SortBy(tc.input, tc.extract) if !reflect.DeepEqual(result, tc.expected) { t.Fatalf("Expected: %+v, but got: %+v", tc.expected, result) } }) } } func TestSort(t *testing.T) { testCases := []struct { name string input []int expected []int }{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 18.2K bytes - Viewed (0) -
cmd/signature-v4_test.go
"Policy": []string{"policy"}, }, expected: ErrNone, }, } // Run each test case individually. for i, testCase := range testCases { _, code := doesPolicySignatureMatch(testCase.form) if code != testCase.expected { t.Errorf("(%d) expected to get %s, instead got %s", i, niceError(testCase.expected), niceError(code)) } } } func TestDoesPresignedSignatureMatch(t *testing.T) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 10.5K bytes - Viewed (0)