Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MockConfig (0.58 sec)

  1. pilot/test/mock/config.go

    			Name:             "invalid",
    			ResourceVersion:  revs[0],
    		},
    		Spec: &config.MockConfig{},
    	}
    
    	missing := config2.Config{
    		Meta: config2.Meta{
    			GroupVersionKind: mockGvk,
    			Name:             "missing",
    			ResourceVersion:  revs[0],
    		},
    		Spec: &config.MockConfig{Key: "missing"},
    	}
    
    	if _, err := r.Create(config2.Config{}); err == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  2. pilot/pkg/model/config_test.go

    			t.Errorf("Failed: got eq=%v want=%v for %q ?= %q", got, c.want, c.a, c.b)
    		}
    	}
    }
    
    func TestConfigKey(t *testing.T) {
    	cfg := mock_config.Make("ns", 2)
    	want := "test.istio.io/v1/MockConfig/ns/mock-config2"
    	if key := cfg.Meta.Key(); key != want {
    		t.Fatalf("config.Key() => got %q, want %q", key, want)
    	}
    }
    
    func TestResolveShortnameToFQDN(t *testing.T) {
    	tests := []struct {
    		name string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 20 12:54:10 UTC 2023
    - 19K bytes
    - Viewed (0)
  3. pilot/pkg/leaderelection/k8sleaderelection/leaderelection_test.go

    					EndpointsMeta: objectMeta,
    					LockConfig:    resourceLockConfig,
    					Client:        c.CoreV1(),
    				}
    			case "configmaps":
    				lock = &rl.ConfigMapLock{
    					ConfigMapMeta: objectMeta,
    					LockConfig:    resourceLockConfig,
    					Client:        c.CoreV1(),
    				}
    			case "leases":
    				lock = &rl.LeaseLock{
    					LeaseMeta:  objectMeta,
    					LockConfig: resourceLockConfig,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 23 16:39:43 UTC 2023
    - 42.5K bytes
    - Viewed (0)
Back to top