Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 40 for nDests (0.11 sec)

  1. pkg/scheduler/framework/plugins/interpodaffinity/filtering_test.go

    	labels1 := map[string]string{
    		"region": "r1",
    		"zone":   "z11",
    	}
    	podLabel2 := map[string]string{"security": "S1"}
    	node1 := v1.Node{ObjectMeta: metav1.ObjectMeta{Name: "node1", Labels: labels1}}
    
    	tests := []struct {
    		pod                 *v1.Pod
    		pods                []*v1.Pod
    		node                *v1.Node
    		name                string
    		wantPreFilterStatus *framework.Status
    		wantFilterStatus    *framework.Status
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 01 10:24:54 UTC 2023
    - 58.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    // and making a synchronous request through the QueueSet.
    // The test measures how much concurrency each client got, on average, over
    // the initial evalDuration and tests to see whether they all got about the fair amount.
    // Each client needs to be demanding enough to use more than its fair share,
    // or overall care needs to be taken about timing so that scheduling details
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_attacher_test.go

    				}
    			} else {
    				status.Attached = true
    			}
    			markVolumeAttached(t, csiAttacher.k8s, nil, tc.attachID, status)
    			wg.Wait()
    		})
    	}
    }
    
    func TestAttacherWithCSIDriver(t *testing.T) {
    	tests := []struct {
    		name                   string
    		driver                 string
    		expectVolumeAttachment bool
    		watchTimeout           time.Duration
    	}{
    		{
    			name:                   "CSIDriver not attachable",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  4. src/html/template/exec_test.go

    // license that can be found in the LICENSE file.
    
    // Tests for template execution, copied from text/template.
    
    package template
    
    import (
    	"bytes"
    	"errors"
    	"flag"
    	"fmt"
    	"io"
    	"reflect"
    	"strings"
    	"sync"
    	"testing"
    	"text/template"
    )
    
    var debug = flag.Bool("debug", false, "show the errors produced by the tests")
    
    // T has lots of interesting pieces to use to test execution.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    	}
    
    	for i, test := range tests {
    		test.a.Sub(test.b)
    		if test.a.Cmp(test.expected) != 0 {
    			t.Errorf("[%d] Expected %q, got %q", i, test.expected.String(), test.a.String())
    		}
    	}
    }
    
    func TestNeg(t *testing.T) {
    	tests := []struct {
    		a        Quantity
    		b        Quantity
    		expected Quantity
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  6. pkg/controller/endpoint/endpoints_controller_test.go

    		}},
    	})
    	endpointsHandler.ValidateRequest(t, "/api/v1/namespaces/"+ns+"/endpoints/foo", "PUT", &data)
    }
    
    func TestWaitsForAllInformersToBeSynced2(t *testing.T) {
    	var tests = []struct {
    		podsSynced            func() bool
    		servicesSynced        func() bool
    		endpointsSynced       func() bool
    		shouldUpdateEndpoints bool
    	}{
    		{neverReady, alwaysReady, alwaysReady, false},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  7. pkg/controller/endpointslice/endpointslice_controller_test.go

    	"k8s.io/klog/v2/ktesting"
    	"k8s.io/kubernetes/pkg/controller"
    	endpointslicepkg "k8s.io/kubernetes/pkg/controller/util/endpointslice"
    	"k8s.io/utils/pointer"
    )
    
    // Most of the tests related to EndpointSlice allocation can be found in reconciler_test.go
    // Tests here primarily focus on unique controller functionality before the reconciler begins
    
    var alwaysReady = func() bool { return true }
    
    type endpointSliceController struct {
    	*Controller
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

    # See the License for the specific language governing permissions and
    # limitations under the License.
    # ==============================================================================
    """Base test class for quantize_model Tests."""
    import os
    import re
    from typing import Collection, Iterable, Mapping, Sequence, Tuple, Optional, Union, List
    
    from absl.testing import parameterized
    import numpy as np
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  9. tests/integration/security/authz_test.go

    	allow := tsts[0].allow
    	prefix := tsts[0].prefix
    	for _, tst := range tsts {
    		if tst.opts.HTTP.Path != path {
    			panic("authz tests have different paths")
    		}
    		if tst.allow != allow {
    			panic("authz tests have different allow")
    		}
    		if tst.prefix != prefix {
    			panic("authz tests have different prefixes")
    		}
    	}
    }
    
    func (tsts authzTests) Filter(keep func(authzTest) bool) authzTests {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  10. src/cmd/go/go_test.go

    	"cmd/go/internal/work"
    	"cmd/internal/sys"
    
    	cmdgo "cmd/go"
    )
    
    func init() {
    	// GOVCS defaults to public:git|hg,private:all,
    	// which breaks many tests here - they can't use non-git, non-hg VCS at all!
    	// Change to fully permissive.
    	// The tests of the GOVCS setting itself are in ../../testdata/script/govcs.txt.
    	os.Setenv("GOVCS", "*:all")
    }
    
    var (
    	canRace = false // whether we can run the race detector
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
Back to top