Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 1,345 for absent (0.07 sec)

  1. cni/pkg/util/podutil_test.go

    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestGetPodIPIfPodIPPresent(t *testing.T) {
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "test",
    			Namespace: "test",
    		},
    		Spec: corev1.PodSpec{
    			NodeName: "derp",
    		},
    		Status: corev1.PodStatus{
    			PodIP: "11.1.1.12",
    		},
    	}
    
    	podIPs := GetPodIPsIfPresent(pod)
    	assert.Equal(t, len(podIPs), 1)
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_header_params/test_tutorial001_an_py310.py

        [
            ("/items", None, 200, {"User-Agent": "testclient"}),
            ("/items", {"X-Header": "notvalid"}, 200, {"User-Agent": "testclient"}),
            ("/items", {"User-Agent": "FastAPI test"}, 200, {"User-Agent": "FastAPI test"}),
        ],
    )
    def test(path, headers, expected_status, expected_response, client: TestClient):
        response = client.get(path, headers=headers)
        assert response.status_code == expected_status
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/cni-watcher_test.go

    	t.Run("pod out of ambient", func(t *testing.T) {
    		p, err := pluginServer.getPodWithRetry(log, podOutOfAmbient.Name, pod.Namespace)
    		assert.Error(t, err)
    		assert.Equal(t, true, strings.Contains(err.Error(), "unexpectedly not enrolled in ambient"))
    		assert.Equal(t, p, nil)
    	})
    }
    
    func TestCNIPluginServerPrefersCNIProvidedPodIP(t *testing.T) {
    	fakePodIP := "11.1.1.12"
    	_, addr, _ := net.ParseCIDR(fakePodIP + "/32")
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. istioctl/pkg/injector/injector-list_test.go

    	expected := sets.New[string]("default", "no-ambient")
    	actual, err := getNamespaces(context.TODO(), client, "istio-system")
    	assert.NoError(t, err)
    	for _, ns := range actual {
    		assert.Equal(t, true, expected.Contains(ns.Name))
    	}
    }
    
    func Test_injectionDisabled(t *testing.T) {
    	cases := []struct {
    		name     string
    		pod      *corev1.Pod
    		expected bool
    	}{
    		{
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. cni/pkg/constants/constants.go

    	CNIEventSocket           = "cni-event-address"
    	CNIAgentRunDir           = "cni-agent-run-dir"
    	ExcludeNamespaces        = "exclude-namespaces"
    	AmbientEnabled           = "ambient-enabled"
    	AmbientDNSCapture        = "ambient-dns-capture"
    	AmbientIPv6              = "ambient-ipv6"
    	AmbientTPROXYRedirection = "ambient-tproxy-redirection"
    
    	// Repair
    	RepairEnabled            = "repair-enabled"
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Aug 16 15:33:47 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. cni/pkg/plugin/plugin_test.go

    	testDoAddRun(t, cniConf, testNSName, pod, ns)
    
    	wasCalled := serverClose()
    	// Pod in namespace with enabled ambient label, should be added to mesh
    	assert.Equal(t, wasCalled, true)
    }
    
    func TestCmdAddAmbientEnabledOnNSServerFails(t *testing.T) {
    	serverClose := setupCNIEventClientWithMockServer(true)
    
    	cniConf := buildMockConf(true)
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  7. CHANGELOG/CHANGELOG-1.31.md

    - Improved scheduling performance when many nodes, and prefilter returned 1-2 nodes (e.g. daemonset)
      
      For developers of out-of-tree PostFilter plugins, note that the semantics of NodeToStatusMap are changing: A node with an absent value in the NodeToStatusMap should be interpreted as having an UnschedulableAndUnresolvable status. ([#125197](https://github.com/kubernetes/kubernetes/pull/125197), [@gabesaba](https://github.com/gabesaba))
    Registered: Fri Nov 01 09:05:11 UTC 2024
    - Last Modified: Wed Oct 23 12:18:32 UTC 2024
    - 315.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/EnumsTest.java

        assertThat(Enums.getIfPresent(TestEnum.class, "cHEETO")).isAbsent();
        assertThat(Enums.getIfPresent(TestEnum.class, "Honda")).isAbsent();
        assertThat(Enums.getIfPresent(TestEnum.class, "poodlE")).isAbsent();
      }
    
      public void testGetIfPresent_whenNoMatchingConstant() {
        assertThat(Enums.getIfPresent(TestEnum.class, "WOMBAT")).isAbsent();
      }
    
    
      @J2ktIncompatible
      @GwtIncompatible // weak references
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. istioctl/pkg/proxystatus/proxystatus.go

    		"Access Istiod via the tap service of each agent")
    	statusCmd.PersistentFlags().IntVar(&multiXdsOpts.XdsViaAgentsLimit, "xds-via-agents-limit", 100,
    		"Maximum number of pods being visited by istioctl when `xds-via-agent` flag is true."+
    			"To iterate all the agent pods without limit, set to 0")
    
    	return statusCmd
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. CODEOWNERS

    /samples/addons                                                  @istio/wg-policies-and-telemetry-maintainers @istio/wg-environments-maintainers
    /samples/ambient-argo                                            @istio/wg-user-experience-maintainers @istio/wg-networking-maintainers
    /samples/multicluster                                            @istio/wg-networking-maintainers
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Apr 22 19:22:33 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top