Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for SetForTest (0.14 sec)

  1. pilot/pkg/controllers/untaint/nodeuntainter_test.go

    	return &nodeTainterTestServer{
    		client: client,
    		t:      t,
    		pc:     pc,
    		nc:     nc,
    	}
    }
    
    func TestNodeUntainter(t *testing.T) {
    	setupLogging()
    	test.SetForTest(t, &features.EnableNodeUntaintControllers, true)
    	s := newNodeUntainterTestServer(t)
    	s.addTaintedNodes(t, "node1", "node2", "node3")
    	s.addPod(t, "node3", true, map[string]string{"k8s-app": "other-app"}, "")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. pilot/pkg/xds/vm_test.go

    // TestRegistration is an e2e test for registration. Most tests are in autoregister package, but this
    // exercises the full XDS flow.
    func TestRegistration(t *testing.T) {
    	// TODO: allow fake XDS to be "authenticated"
    	test.SetForTest(t, &features.ValidateWorkloadEntryIdentity, false)
    	ds := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{})
    	ds.Store().Create(config.Config{
    		Meta: config.Meta{
    			GroupVersionKind: gvk.WorkloadGroup,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/kube/controller/multicluster_test.go

    	verifyControllers(t, mc, 1, "delete remote controller")
    }
    
    func Test_KubeSecretController_ExternalIstiod_MultipleClusters(t *testing.T) {
    	test.SetForTest(t, &features.ExternalIstiod, true)
    	test.SetForTest(t, &features.InjectionWebhookConfigName, "")
    	mockserviceController := newMockserviceController()
    	clientset := kube.NewFakeClient()
    	stop := test.NewStop(t)
    	s := server.New()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 16:44:32 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. tests/integration/security/policy_attachment_only/jwt_gateway_test.go

    				})).
    				BuildAll(nil, apps.A.Append(apps.B).Services()).
    				Apply()
    
    			t.NewSubTest("gateway-authn-policy-attachment-only").Run(func(t framework.TestContext) {
    				test.SetForTest(t, &features.EnableSelectorBasedK8sGatewayPolicy, false)
    				cases := []struct {
    					name          string
    					customizeCall func(opts *echo.CallOptions, to echo.Target)
    				}{
    					{
    						name: "deny without token",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. pilot/pkg/model/policyattachment_test.go

    			},
    			enableSelectorPolicies: false,
    			expected:               true,
    		},
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			test.SetForTest(t, &features.EnableSelectorBasedK8sGatewayPolicy, tt.enableSelectorPolicies)
    			nsName := types.NamespacedName{Name: "policy1", Namespace: "default"}
    			matcher := tt.selection.ShouldAttachPolicy(mockKind, nsName, tt.policy)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. pilot/pkg/xds/deltaadstest.go

    	"istio.io/istio/pilot/pkg/model"
    	v3 "istio.io/istio/pilot/pkg/xds/v3"
    	"istio.io/istio/pkg/test"
    )
    
    func NewDeltaAdsTest(t test.Failer, conn *grpc.ClientConn) *DeltaAdsTest {
    	test.SetForTest(t, &features.DeltaXds, true)
    	return NewDeltaXdsTest(t, conn, func(conn *grpc.ClientConn) (DeltaDiscoveryClient, error) {
    		xds := discovery.NewAggregatedDiscoveryServiceClient(conn)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Feb 04 03:39:42 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. pkg/bootstrap/config_test.go

    	g.Expect(node.RawMetadata["WORKLOAD_NAME"]).To(Equal(expectWorkloadName))
    	g.Expect(node.Metadata.Labels[model.LocalityLabel]).To(Equal("region/zone/subzone"))
    }
    
    func TestSetIstioVersion(t *testing.T) {
    	test.SetForTest(t, &version.Info.Version, "binary")
    
    	testCases := []struct {
    		name            string
    		meta            *model.BootstrapNodeMetadata
    		binaryVersion   string
    		expectedVersion string
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top