Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for testPass (0.29 sec)

  1. pkg/registry/batch/job/strategy_test.go

    		},
    	}
    	validSpec := batch.JobSpec{
    		CompletionMode: completionModePtr(batch.NonIndexedCompletion),
    		Selector:       nil,
    		Template:       validPodTemplate,
    	}
    
    	testcases := map[string]struct {
    		job               *batch.Job
    		wantWarningsCount int32
    	}{
    		"happy path job": {
    			job: &batch.Job{
    				ObjectMeta: metav1.ObjectMeta{
    					Name:      "myjob2",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 101.5K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    		Embed
    		x, X int
    	}
    	type S4 struct {
    		*Embed
    		x, X int
    	}
    
    	type testCase struct {
    		// -1 means Addr().Elem() of current value
    		index  []int
    		canSet bool
    	}
    	tests := []struct {
    		val   Value
    		cases []testCase
    	}{{
    		val: ValueOf(&S1{}),
    		cases: []testCase{
    			{[]int{0}, false},
    			{[]int{0, -1}, false},
    			{[]int{0, 0}, false},
    			{[]int{0, 0, -1}, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/gateway_test.go

    	"istio.io/istio/pkg/proto"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/util/sets"
    	"istio.io/istio/pkg/wellknown"
    )
    
    func TestBuildGatewayListenerTlsContext(t *testing.T) {
    	testCases := []struct {
    		name              string
    		server            *networking.Server
    		result            *auth.DownstreamTlsContext
    		transportProtocol istionetworking.TransportProtocol
    		mesh              *meshconfig.MeshConfig
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 144K bytes
    - Viewed (0)
  4. pkg/printers/internalversion/printers_test.go

    	}}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			rows, err := printIngressClass(testCase.ingressClass, printers.GenerateOptions{})
    			if err != nil {
    				t.Fatalf("Error generating table rows for Ingress: %#v", err)
    			}
    			for i := range rows {
    				rows[i].Object.Object = nil
    			}
    			if !reflect.DeepEqual(testCase.expected, rows) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  5. src/net/http/transport_test.go

    }
    
    func TestTransportProxy(t *testing.T) {
    	defer afterTest(t)
    	testCases := []struct{ siteMode, proxyMode testMode }{
    		{http1Mode, http1Mode},
    		{http1Mode, https1Mode},
    		{https1Mode, http1Mode},
    		{https1Mode, https1Mode},
    	}
    	for _, testCase := range testCases {
    		siteMode := testCase.siteMode
    		proxyMode := testCase.proxyMode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_node_status_test.go

    	}
    	memoryPressureCondition := v1.NodeCondition{
    		Type:               v1.NodeMemoryPressure,
    		Status:             v1.ConditionFalse,
    		LastHeartbeatTime:  fakeNow,
    		LastTransitionTime: fakeNow,
    	}
    	testcases := []struct {
    		name           string
    		originalStatus *v1.NodeStatus
    		status         *v1.NodeStatus
    		expectChange   bool
    	}{
    		{
    			name:           "Node status does not change with nil status.",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  7. pkg/controller/nodelifecycle/node_lifecycle_controller_test.go

    	}
    }
    
    func TestMonitorNodeHealthUpdateNodeAndPodStatusWithLease(t *testing.T) {
    	nodeCreationTime := metav1.Date(2012, 1, 1, 0, 0, 0, 0, time.UTC)
    	fakeNow := metav1.Date(2015, 1, 1, 12, 0, 0, 0, time.UTC)
    	testcases := []struct {
    		description             string
    		fakeNodeHandler         *testutil.FakeNodeHandler
    		lease                   *coordv1.Lease
    		timeToPass              time.Duration
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 03:26:45 UTC 2024
    - 119K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_test.go

    func TestValidateContainerLogStatus(t *testing.T) {
    	testKubelet := newTestKubelet(t, false /* controllerAttachDetachEnabled */)
    	defer testKubelet.Cleanup()
    	kubelet := testKubelet.kubelet
    	containerName := "x"
    	testCases := []struct {
    		statuses []v1.ContainerStatus
    		success  bool // whether getting logs for the container should succeed.
    		pSuccess bool // whether getting logs for the previous container should succeed.
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  9. pkg/controller/daemon/daemon_controller_test.go

    		}
    	}
    }
    
    func TestSimpleDaemonSetUpdatesStatusError(t *testing.T) {
    	var (
    		syncErr   = fmt.Errorf("sync error")
    		statusErr = fmt.Errorf("status error")
    	)
    
    	testCases := []struct {
    		desc string
    
    		hasSyncErr   bool
    		hasStatusErr bool
    
    		expectedErr error
    	}{
    		{
    			desc:         "sync error",
    			hasSyncErr:   true,
    			hasStatusErr: false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

    import java.util.logging.Logger;
    import junit.framework.AssertionFailedError;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Unit tests for {@link Futures}.
     *
     * @author Nishant Thakkar
     */
    @ElementTypesAreNonnullByDefault
    @GwtCompatible(emulated = true)
    public class FuturesTest extends TestCase {
      private static final Logger aggregateFutureLogger =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
Back to top