Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestExtractNamespaceForKubernetesService (0.61 sec)

  1. pilot/pkg/networking/core/route/route_cache_test.go

    			if got := tt.r.DependentConfigs(); !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("DependentConfigs got %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestExtractNamespaceForKubernetesService(t *testing.T) {
    	tests := []struct {
    		hostname string
    		want     string
    	}{
    		{
    			"foo.ns.svc.cluster.local",
    			"ns",
    		},
    		{
    			"foo.svc.cluster.local",
    			"",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top