Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 261 for testSam (0.15 sec)

  1. pkg/controlplane/reconcilers/lease_test.go

    	}
    	t.Cleanup(dFunc)
    
    	reconcileTests := []struct {
    		testName      string
    		serviceName   string
    		ip            string
    		endpointPorts []corev1.EndpointPort
    		endpointKeys  []string
    		initialState  []runtime.Object
    		expectUpdate  []runtime.Object
    		expectCreate  []runtime.Object
    		expectLeases  []string
    	}{
    		{
    			testName:      "no existing endpoints",
    			serviceName:   "foo",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 28.7K bytes
    - Viewed (0)
  2. plugin/pkg/admission/podnodeselector/admission_test.go

    		if test.admit && err != nil {
    			t.Errorf("Test: %s, expected no error but got: %s", test.testName, err)
    		} else if !test.admit && err == nil {
    			t.Errorf("Test: %s, expected an error", test.testName)
    		}
    		if test.admit && !labels.Equals(test.mergedNodeSelector, labels.Set(pod.Spec.NodeSelector)) {
    			t.Errorf("Test: %s, expected: %s but got: %s", test.testName, test.mergedNodeSelector, pod.Spec.NodeSelector)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. pkg/controlplane/controller/kubernetesservice/controller_test.go

    			}
    		})
    	}
    
    	reconcileTests := []struct {
    		testName     string
    		serviceName  string
    		servicePorts []corev1.ServicePort
    		serviceType  corev1.ServiceType
    		service      *corev1.Service
    		expectUpdate *corev1.Service // nil means none expected
    	}{
    		{
    			testName:    "service definition wrong port",
    			serviceName: "foo",
    			servicePorts: []corev1.ServicePort{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 13 10:41:06 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  4. pkg/client/tests/portfoward_test.go

    				continue
    			}
    
    			if expected != actual {
    				t.Errorf("%s: server expected to receive %q, got %q for port %d", testName, expected, actual, port)
    			}
    		}
    
    		for port, actual := range pf.received {
    			if _, ok := expectedFromClient[port]; !ok {
    				t.Errorf("%s: server unexpectedly received %q for port %d", testName, actual, port)
    			}
    		}
    	})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 06:08:18 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  5. pkg/controller/endpointslicemirroring/endpointslicemirroring_controller_test.go

    	}
    }
    
    func TestShouldMirror(t *testing.T) {
    	testCases := []struct {
    		testName     string
    		endpoints    *v1.Endpoints
    		shouldMirror bool
    	}{{
    		testName: "Standard Endpoints",
    		endpoints: &v1.Endpoints{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: "test-endpoints",
    			},
    		},
    		shouldMirror: true,
    	}, {
    		testName: "Endpoints with skip-mirror=true",
    		endpoints: &v1.Endpoints{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 12:57:29 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  6. tools/go-ordered-test

    RESULTS=/tmp/test-results"$(dirname ${binary})"
    mkdir -p "${RESULTS}"
    code=0
    
    for testname in $("${binary}" -test.list "${RUN}" | grep '^Test'); do
      "${binary}" -test.run '^'"${testname}"'$' -test.count "${COUNT}" -test.v &> "${RESULTS}/${testname}"
      # shellcheck disable=SC2181
      if [[ $? != 0 ]]; then
        echo -e "--- ${red}FAIL:${clr} ${testname}. See ${RESULTS}/${testname} for full logs"
        code=1
      elif [[ "${VERBOSE}" == true ]]; then
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 04 23:04:41 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  7. pkg/test/datasets/Readme.md

    ```plain
    # Input file for the test
    .../dataset/**/<testname>.yaml
    
    # Optional Mesh Config Input file
    .../dataset/**/<testname>_meshconfig.yaml
    
    # Required expected resources file.
    .../dataset/**/<testname>_expected.json
    ```
    
    Tests can be ignored by adding a .skip file
    
    ```plain
    # Input file for the test
    .../dataset/**/<testname>.yaml
    
    # Optional file, indicating that the test should be skipped.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 17 12:28:05 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  8. pkg/cmd/flag_test.go

    	flag.IntVar(&testInt, "testint", defaultInt, "test int flag")
    	AddFlags(cmd)
    
    	testName := "Initialize int Flag"
    	if !flag.Parsed() {
    		t.Errorf("%s: flag.Parsed() returns false, should be true", testName)
    	}
    
    	cmd.Flags().VisitAll(func(f *pflag.Flag) {
    		if f.Name != "testint" {
    			t.Errorf("%s: pflag name error. Actual %s, Expected %s", testName, f.Name, "testint")
    		}
    	})
    
    	_ = cmd.Flags().Parse([]string{})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 29 20:42:01 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  9. pkg/client/tests/remotecommand_test.go

    	if e, a := "pod", name; e != a {
    		ex.t.Errorf("%s: pod: expected %q, got %q", ex.testName, e, a)
    	}
    	if e, a := "uid", uid; e != string(a) {
    		ex.t.Errorf("%s: uid: expected %q, got %q", ex.testName, e, a)
    	}
    	if ex.exec {
    		if e, a := "ls /", strings.Join(ex.command, " "); e != a {
    			ex.t.Errorf("%s: command: expected %q, got %q", ex.testName, e, a)
    		}
    	} else {
    		if len(ex.command) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 06:08:18 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  10. pkg/util/slice/slice_test.go

    		if s == "ab" {
    			return "ee"
    		}
    		return s
    	}
    	tests := []struct {
    		testName string
    		input    []string
    		remove   string
    		modifier func(s string) string
    		want     []string
    	}{
    		{
    			testName: "Nil input slice",
    			input:    nil,
    			remove:   "",
    			modifier: nil,
    			want:     nil,
    		},
    		{
    			testName: "Slice doesn't contain the string",
    			input:    []string{"a", "ab", "cdef"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 30 07:21:37 UTC 2022
    - 3.5K bytes
    - Viewed (0)
Back to top