Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for NewTestFactory (0.19 sec)

  1. istioctl/pkg/cli/mock_test.go

    	cmdtesting "k8s.io/kubectl/pkg/cmd/testing"
    	"k8s.io/kubectl/pkg/cmd/util"
    
    	"istio.io/istio/pkg/kube"
    )
    
    func init() {
    	MakeKubeFactory = func(k kube.CLIClient) util.Factory {
    		tf := cmdtesting.NewTestFactory()
    		_, _, codec := cmdtesting.NewExternalScheme()
    		tf.UnstructuredClient = &fake.RESTClient{
    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  2. istioctl/pkg/internaldebug/internal-debug_test.go

    			t.Fatalf("Unwanted exception for 'istioctl %s': %v", strings.Join(c.args, " "), fErr)
    		}
    	}
    }
    
    func init() {
    	cli.MakeKubeFactory = func(k kube.CLIClient) cmdutil.Factory {
    		tf := cmdtesting.NewTestFactory()
    		_, _, codec := cmdtesting.NewExternalScheme()
    		tf.UnstructuredClient = &fake.RESTClient{
    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  3. istioctl/pkg/proxystatus/proxystatus_test.go

    			t.Fatalf("Unwanted exception for 'istioctl %s': %v", strings.Join(c.args, " "), fErr)
    		}
    	}
    }
    
    func init() {
    	cli.MakeKubeFactory = func(k kube.CLIClient) cmdutil.Factory {
    		tf := cmdtesting.NewTestFactory()
    		_, _, codec := cmdtesting.NewExternalScheme()
    		tf.UnstructuredClient = &fake.RESTClient{
    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  4. istioctl/pkg/util/handlers/handlers_test.go

    			wantPodName:   "foo-abc",
    			wantNamespace: "istio-system",
    		},
    		{
    			name:          "Deployment/foo",
    			wantPodName:   "foo-abc",
    			wantNamespace: "test",
    		},
    	}
    	factory := cmdtesting.NewTestFactory().WithNamespace("test")
    	ns := scheme.Codecs.WithoutConversion()
    	codec := scheme.Codecs.LegacyCodec(scheme.Scheme.PrioritizedVersionsAllGroups()...)
    	factory.Client = &fake.RESTClient{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jun 09 18:17:49 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  5. istioctl/pkg/ztunnelconfig/ztunnelconfig_test.go

    			t.Fatalf("Unwanted exception for 'istioctl %s': %v", strings.Join(c.args, " "), fErr)
    		}
    	}
    }
    
    func init() {
    	cli.MakeKubeFactory = func(k kube.CLIClient) cmdutil.Factory {
    		tf := cmdtesting.NewTestFactory()
    		_, _, codec := cmdtesting.NewExternalScheme()
    		tf.UnstructuredClient = &fake.RESTClient{
    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Apr 10 21:51:29 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  6. istioctl/pkg/proxyconfig/proxyconfig_test.go

    		t.Fatalf("Unexpected output for 'istioctl proxy-config all'\n got: %q\nwant: %q", out.String(), expected)
    	}
    }
    
    func init() {
    	cli.MakeKubeFactory = func(k kube.CLIClient) cmdutil.Factory {
    		tf := cmdtesting.NewTestFactory()
    		_, _, codec := cmdtesting.NewExternalScheme()
    		tf.UnstructuredClient = &fake.RESTClient{
    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Apr 10 21:51:29 GMT 2024
    - 8.9K bytes
    - Viewed (0)
Back to top