Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for TestController (0.52 sec)

  1. pilot/pkg/serviceregistry/kube/controller/endpoint_builder_test.go

    	cases := []struct {
    		name      string
    		ctl       testController
    		podLabels labels.Instance
    		expected  labels.Instance
    	}{
    		{
    			name:      "empty",
    			ctl:       testController{},
    			podLabels: nil,
    			expected:  labels.Instance{},
    		},
    		{
    			name: "region only",
    			ctl: testController{
    				locality: "myregion",
    			},
    			podLabels: labels.Instance{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. pkg/kube/multicluster/secretcontroller_test.go

    	return kube.NewFakeClient(), nil
    }
    
    type testController struct {
    	controller *Controller
    	client     kube.Client
    	component  *Component[testHandler]
    	t          *testing.T
    	secrets    clienttest.TestWriter[*v1.Secret]
    }
    
    func buildTestController(t *testing.T, synced bool) testController {
    	tc := testController{
    		client: kube.NewFakeClient(),
    		t:      t,
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. pkg/controller/servicecidrs/servicecidrs_controller_test.go

    	netutils "k8s.io/utils/net"
    	"k8s.io/utils/ptr"
    )
    
    type testController struct {
    	*Controller
    	servicecidrsStore cache.Store
    	ipaddressesStore  cache.Store
    }
    
    func newController(ctx context.Context, t *testing.T, cidrs []*networkingapiv1alpha1.ServiceCIDR, ips []*networkingapiv1alpha1.IPAddress) (*fake.Clientset, *testController) {
    	client := fake.NewSimpleClientset()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 22K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/dynamicresources/structured/namedresources/namedresourcesmodel_test.go

    			}
    			for _, allocation := range tc.allocations {
    				AddAllocation(&actualModel, allocation)
    			}
    
    			require.Equal(t, tc.expectModel, actualModel)
    		})
    	}
    
    }
    
    func TestController(t *testing.T) {
    	filterAny := &resourceapi.NamedResourcesFilter{
    		Selector: "true",
    	}
    	filterNone := &resourceapi.NamedResourcesFilter{
    		Selector: "false",
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 09:27:01 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/controller/controller_test.go

    	"k8s.io/client-go/util/workqueue"
    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	"k8s.io/component-base/metrics/legacyregistry"
    	"k8s.io/component-base/metrics/testutil"
    )
    
    func TestController(t *testing.T) {
    	origMinKMSPluginCloseGracePeriod := minKMSPluginCloseGracePeriod
    	t.Cleanup(func() { minKMSPluginCloseGracePeriod = origMinKMSPluginCloseGracePeriod })
    	minKMSPluginCloseGracePeriod = 300 * time.Millisecond
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. tests/integration/operator/switch_cr_test.go

    	// ManifestPathContainer is path of manifests in the operator container for controller to work with.
    	ManifestPathContainer = "/var/lib/istio/manifests"
    	iopCRFile             = ""
    )
    
    func TestController(t *testing.T) {
    	framework.
    		NewTest(t).
    		Run(func(t framework.TestContext) {
    			istioCtl := istioctl.NewOrFail(t, t, istioctl.Config{})
    			workDir, err := t.CreateTmpDirectory("operator-controller-test")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/dynamicresources/structuredparameters_test.go

    	return nil, errors.New(string(l))
    }
    
    type claimList []any
    
    func (l claimList) List(indexObj any) []any {
    	return l
    }
    
    func TestController(t *testing.T) {
    	driver1 := "driver-1"
    	class1 := &resourceapi.ResourceClass{
    		DriverName: driver1,
    	}
    
    	classParametersEmpty := &resourceapi.ResourceClassParameters{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 09:27:01 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  8. pkg/test/framework/features/allowlist.txt

    mtls_k8s_ca,TestMtlsStrictK8sCA/global-plaintext/naked->ws://multiversion:http
    mtls_k8s_ca,TestMtlsStrictK8sCA/global-plaintext/naked->ws://naked:http
    observability,TestAccessLog
    operator,TestController
    operator,TestOperatorRemove
    operator_controller,TestController
    outbound_traffic_policy,TestOutboundTrafficPolicy_AllowAny
    outbound_traffic_policy,TestOutboundTrafficPolicy_RegistryOnly
    outbound_traffic_policy_egressproxy_test,TestSidecarConfig
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 18 18:03:23 UTC 2022
    - 103.9K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/samples/templates/structuring-software-projects/server-application/app/src/main/java/com/example/myproduct/server/MyProductJsonController.java

    import com.example.myproduct.user.table.TableBuilder;
    
    import org.springframework.http.MediaType;
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RestController;
    
    import java.util.List;
    
    @RestController
    public class MyProductJsonController {
    
        @RequestMapping(value = "/json", produces = MediaType.APPLICATION_JSON_VALUE)
        public List<List<String>> json() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 511 bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/samples/templates/structuring-software-projects/server-application/app/src/main/java/com/example/myproduct/server/MyProductController.java

    import org.apache.juneau.html.HtmlSerializer;
    import org.apache.juneau.serializer.SerializeException;
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RestController;
    
    @RestController
    public class MyProductController {
    
        @RequestMapping("/")
        public String index() throws SerializeException {
            return HtmlSerializer.DEFAULT.serialize(TableBuilder.build());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 533 bytes
    - Viewed (0)
Back to top