Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for expectedCmds (0.16 sec)

  1. pkg/volume/git_repo/git_repo_test.go

    	}
    	var expectedCmds [][]string
    	for _, expected := range expecteds {
    		expectedCmds = append(expectedCmds, expected.cmd)
    	}
    	if !reflect.DeepEqual(expectedCmds, fcmd.CombinedOutputLog) {
    		allErrs = append(allErrs,
    			fmt.Errorf("unexpected commands: %v, expected: %v", fcmd.CombinedOutputLog, expectedCmds))
    	}
    
    	var expectedPaths []string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 08:26:26 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. pkg/kubelet/pod/pod_manager_test.go

    	// Tests that all regular pods are recorded correctly.
    	actualPods := podManager.GetPods()
    	if len(actualPods) != len(expectedPods) {
    		t.Errorf("expected %d pods, got %d pods; expected pods %#v, got pods %#v", len(expectedPods), len(actualPods),
    			expectedPods, actualPods)
    	}
    	for _, expected := range expectedPods {
    		found := false
    		for _, actual := range actualPods {
    			if actual.UID == expected.UID {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 12 16:57:27 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/conflicts/DefaultCapabilitiesConflictHandlerTest.groovy

                expectedIds << cs.id.module
                conflict = handler.registerCandidate(
                    candidate(capability, cs)
                )
            }
    
            then:
            def actualIds = []
            conflict.withParticipatingModules {
                actualIds << it
            }
    
            actualIds == expectedIds
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. cmd/object-api-putobject_test.go

    			expectedError: hash.BadDigest{ExpectedMD5: invalidMD5, CalculatedMD5: getMD5Hash(nilBytes)},
    		},
    		25: {
    			bucketName: bucket, objName: object, inputData: fiveMBBytes, inputMeta: invalidMD5Header, inputDataSize: int64(len(fiveMBBytes)), expectedMd5: getMD5Hash(fiveMBBytes),
    			expectedError: hash.BadDigest{ExpectedMD5: invalidMD5, CalculatedMD5: getMD5Hash(fiveMBBytes)},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  5. pkg/apis/policy/validation/validation_test.go

    		expectErrForVersion: map[schema.GroupVersion]bool{
    			policy.SchemeGroupVersion:        expectNoErrors,
    			policyv1beta1.SchemeGroupVersion: expectNoErrors,
    		},
    	}, {
    		name: "ExpectedPods: 2",
    		pdbStatus: policy.PodDisruptionBudgetStatus{
    			ExpectedPods: 2,
    		},
    		expectErrForVersion: map[schema.GroupVersion]bool{
    			policy.SchemeGroupVersion:        expectNoErrors,
    			policyv1beta1.SchemeGroupVersion: expectNoErrors,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  6. security/pkg/pki/util/san_test.go

    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	testCases := map[string]struct {
    		exts           []pkix.Extension
    		expectedIDs    []string
    		expectedErrMsg string
    	}{
    		"Empty extension list": {
    			exts:           []pkix.Extension{},
    			expectedIDs:    nil,
    			expectedErrMsg: "the SAN extension does not exist",
    		},
    		"Extensions without SAN": {
    			exts: []pkix.Extension{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 17:36:33 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. pkg/apis/policy/v1/zz_generated.conversion.go

    	out.DisruptionsAllowed = in.DisruptionsAllowed
    	out.CurrentHealthy = in.CurrentHealthy
    	out.DesiredHealthy = in.DesiredHealthy
    	out.ExpectedPods = in.ExpectedPods
    	out.Conditions = *(*[]metav1.Condition)(unsafe.Pointer(&in.Conditions))
    	return nil
    }
    
    // Convert_v1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus is an autogenerated conversion function.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 22:32:27 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  8. internal/hash/errors.go

    }
    
    // BadDigest - Content-MD5 you specified did not match what we received.
    type BadDigest struct {
    	ExpectedMD5   string
    	CalculatedMD5 string
    }
    
    func (e BadDigest) Error() string {
    	return "Bad digest: Expected " + e.ExpectedMD5 + " does not match calculated " + e.CalculatedMD5
    }
    
    // SizeTooSmall reader size too small
    type SizeTooSmall struct {
    	Want int64
    	Got  int64
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 15 21:08:54 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook_v1beta1_test.go

    				t.Errorf("Plugin returned incorrect user. Got %#v, expected %#v",
    					resp.User, tt.expectedUser)
    			}
    			if resp != nil && tt.expectedAuds != nil && !reflect.DeepEqual(resp.Audiences, tt.expectedAuds) {
    				t.Errorf("Plugin returned incorrect audiences. Got %#v, expected %#v",
    					resp.Audiences, tt.expectedAuds)
    			}
    		})
    	}
    }
    
    type authenticationV1beta1UserInfo authenticationv1beta1.UserInfo
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 00:47:42 UTC 2022
    - 19.2K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/util/users/users_linux_test.go

    			}
    			if err != nil {
    				return
    			}
    			if len(tc.expectedIDs) != len(got) {
    				t.Fatalf("expected id %d, got %d", len(tc.expectedIDs), len(got))
    			}
    			for i := range got {
    				if !reflect.DeepEqual(tc.expectedIDs[i], got[i]) {
    					t.Fatalf("expected id at position %d: %+v, got: %+v", i, tc.expectedIDs[i], got[i])
    				}
    			}
    		})
    	}
    }
    
    func TestAddEntries(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 01 05:59:41 UTC 2022
    - 16.3K bytes
    - Viewed (0)
Back to top