Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestLocality (0.14 sec)

  1. tests/integration/pilot/locality_test.go

    - "topology.kubernetes.io/zone"
    - "topology.istio.io/subzone"`
    
    const localityDistribute = `
    distribute:
    - from: region
      to:
        nearregion: 80
        region: 20`
    
    func TestLocality(t *testing.T) {
    	// nolint: staticcheck
    	framework.
    		NewTest(t).
    		RequiresSingleCluster().
    		Run(func(t framework.TestContext) {
    			destA := apps.B[0]
    			destB := apps.C[0]
    			destC := apps.Naked[0]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. pkg/bootstrap/platform/gcp_test.go

    		t.Run(tt.host, func(t *testing.T) {
    			if got := defaultPort(tt.host, "80"); got != tt.want {
    				t.Errorf("defaultPort() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestLocality(t *testing.T) {
    	tests := []struct {
    		name                string
    		shouldFill          shouldFillFn
    		projectIDFn         metadataFn
    		numericProjectIDFn  metadataFn
    		locationFn          metadataFn
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 15 00:37:33 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/serviceregistry_test.go

    		}
    		if err != nil {
    			t.Fatalf("failed to create endpoint slice %s in namespace %s (error %v)", name, namespace, err)
    		}
    	}
    }
    
    func TestLocality(t *testing.T) {
    	namespace := "default"
    	basePod := &v1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "pod",
    			Namespace: namespace,
    			Labels:    map[string]string{},
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
Back to top