Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for cmdtesting (0.16 sec)

  1. istioctl/pkg/ztunnelconfig/ztunnelconfig_test.go

    		tf := cmdtesting.NewTestFactory()
    		_, _, codec := cmdtesting.NewExternalScheme()
    		tf.UnstructuredClient = &fake.RESTClient{
    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    				StatusCode: http.StatusOK,
    				Header:     cmdtesting.DefaultHeader(),
    				Body: cmdtesting.ObjBody(codec,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 21:51:29 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. istioctl/pkg/util/handlers/handlers_test.go

    				body := cmdtesting.ObjBody(codec, attachDeploy("istio-system"))
    				return &http.Response{StatusCode: http.StatusOK, Header: cmdtesting.DefaultHeader(), Body: body}, nil
    			case p == "/namespaces/test/deployments/foo" && m == "GET":
    				body := cmdtesting.ObjBody(codec, attachDeploy("test"))
    				return &http.Response{StatusCode: http.StatusOK, Header: cmdtesting.DefaultHeader(), Body: body}, nil
    			default:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 09 18:17:49 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  3. istioctl/pkg/cli/mock_test.go

    import (
    	"net/http"
    
    	"k8s.io/cli-runtime/pkg/resource"
    	"k8s.io/client-go/rest/fake"
    	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{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 15 15:02:17 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. istioctl/pkg/internaldebug/internal-debug_test.go

    		tf := cmdtesting.NewTestFactory()
    		_, _, codec := cmdtesting.NewExternalScheme()
    		tf.UnstructuredClient = &fake.RESTClient{
    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    				StatusCode: http.StatusOK,
    				Header:     cmdtesting.DefaultHeader(),
    				Body: cmdtesting.ObjBody(codec,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. istioctl/pkg/proxystatus/proxystatus_test.go

    		tf := cmdtesting.NewTestFactory()
    		_, _, codec := cmdtesting.NewExternalScheme()
    		tf.UnstructuredClient = &fake.RESTClient{
    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    				StatusCode: http.StatusOK,
    				Header:     cmdtesting.DefaultHeader(),
    				Body: cmdtesting.ObjBody(codec,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. istioctl/pkg/proxyconfig/proxyconfig_test.go

    		tf := cmdtesting.NewTestFactory()
    		_, _, codec := cmdtesting.NewExternalScheme()
    		tf.UnstructuredClient = &fake.RESTClient{
    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    				StatusCode: http.StatusOK,
    				Header:     cmdtesting.DefaultHeader(),
    				Body: cmdtesting.ObjBody(codec,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 21:51:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. pkg/kubectl/cmd/convert/convert_test.go

    limitations under the License.
    */
    
    package convert
    
    import (
    	"bytes"
    	"fmt"
    	"net/http"
    	"strings"
    	"testing"
    
    	"k8s.io/cli-runtime/pkg/genericiooptions"
    	"k8s.io/client-go/rest/fake"
    	cmdtesting "k8s.io/kubectl/pkg/cmd/testing"
    )
    
    type testcase struct {
    	name          string
    	file          string
    	outputVersion string
    	fields        []checkField
    }
    
    type checkField struct {
    	expected string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 03:21:17 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  8. tools/istio-iptables/pkg/dependencies/stub.go

    			s.ExecutedAll = append(s.ExecutedAll, stdincmd)
    			s.ExecutedStdin = append(s.ExecutedStdin, stdincmd)
    		}
    	} else {
    		// ...or as discrete individual commands
    		cmdline := strings.Join(append([]string{iptVer.CmdToString(cmd)}, args...), " ")
    		s.ExecutedAll = append(s.ExecutedAll, cmdline)
    		if quietly {
    			s.ExecutedQuietly = append(s.ExecutedQuietly, cmdline)
    		} else {
    			s.ExecutedNormally = append(s.ExecutedNormally, cmdline)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 17:46:23 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    func createReactor(tracker cgotesting.ObjectTracker) func(action cgotesting.Action) (handled bool, ret apiruntime.Object, err error) {
    	var uidCounter int
    	var resourceVersionCounter int
    	var mutex sync.Mutex
    
    	return func(action cgotesting.Action) (handled bool, ret apiruntime.Object, err error) {
    		createAction, ok := action.(cgotesting.CreateAction)
    		if !ok {
    			return false, nil, nil
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
  10. pkg/volume/util/operationexecutor/operation_generator_test.go

    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/apimachinery/pkg/util/uuid"
    	fakeclient "k8s.io/client-go/kubernetes/fake"
    	"k8s.io/component-base/metrics/testutil"
    	"k8s.io/kubernetes/pkg/volume"
    	csitesting "k8s.io/kubernetes/pkg/volume/csi/testing"
    	volumetesting "k8s.io/kubernetes/pkg/volume/testing"
    	"k8s.io/kubernetes/pkg/volume/util"
    	volumetypes "k8s.io/kubernetes/pkg/volume/util/types"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top