Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 123 for test1 (0.28 sec)

  1. istioctl/pkg/authz/analyzer_test.go

    	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    
    	"istio.io/istio/istioctl/pkg/util/configdump"
    )
    
    func TestNewAnalyzer(t *testing.T) {
    	tests := []struct {
    		name    string
    		input   *configdump.Wrapper
    		wantErr error
    	}{
    		{
    			name: "Test1",
    			input: &configdump.Wrapper{
    				ConfigDump: &envoy_admin.ConfigDump{
    					Configs: []*anypb.Any{
    						{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sun Apr 21 17:42:54 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. istioctl/pkg/checkinject/checkinject_test.go

    	"istio.io/api/label"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func Test_analyzeRunningWebhooks(t *testing.T) {
    	cases := []struct {
    		name             string
    		pod              *corev1.Pod
    		ns               *corev1.Namespace
    		expectedMessages []webhookAnalysis
    	}{
    		{
    			name: "no inj because of no match labels",
    			pod:  podTestObject("test1", "test1", "", ""),
    			ns:   nsTestObject("test1", "", ""),
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  3. operator/cmd/mesh/operator_test.go

    	for _, test := range tests {
    		t.Run("", func(t *testing.T) {
    			args := []string{"operator", "init", "--dry-run"}
    			if test.operatorNamespace != "" {
    				args = append(args, "--operatorNamespace", test.operatorNamespace)
    			}
    			if test.watchedNamespaces != "" {
    				args = append(args, "--watchedNamespaces", test.watchedNamespaces)
    			}
    
    			kubeClientFunc = func() (kube.CLIClient, error) {
    				return nil, nil
    			}
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Aug 29 14:15:33 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/envoy/configdump/configdump_test.go

    // limitations under the License.
    
    package configdump
    
    import (
    	"bytes"
    	"os"
    	"testing"
    
    	"istio.io/istio/pilot/test/util"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestConfigWriter_Prime(t *testing.T) {
    	tests := []struct {
    		name        string
    		wantConfigs int
    		inputFile   string
    		wantErr     bool
    	}{
    		{
    			name:        "errors if unable to unmarshal bytes",
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Jan 03 23:08:06 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  5. istioctl/pkg/cli/context_test.go

    package cli
    
    import "testing"
    
    func Test_handleNamespace(t *testing.T) {
    	ns := handleNamespace("test", "default")
    	if ns != "test" {
    		t.Fatalf("Get the incorrect namespace: %q back", ns)
    	}
    
    	tests := []struct {
    		description      string
    		namespace        string
    		defaultNamespace string
    		wantNamespace    string
    	}{
    		{
    			description:      "return test namespace",
    			namespace:        "test",
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jun 09 18:17:49 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/envoy/configdump/listener_test.go

    	listener "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3"
    
    	"istio.io/istio/pkg/wellknown"
    )
    
    func TestListenerFilter_Verify(t *testing.T) {
    	tests := []struct {
    		desc       string
    		inFilter   *ListenerFilter
    		inListener *listener.Listener
    		expect     bool
    	}{
    		{
    			desc: "filter-fields-empty",
    			inFilter: &ListenerFilter{
    				Address: "",
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Sep 11 15:29:30 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  7. istioctl/pkg/admin/istiodconfig_test.go

    				outputLogLevel: "test:debug",
    			},
    			wantErr: true,
    		},
    		{
    			name: "stackTraceLevelState.run() should throw an error if the /scopej endpoint is missing",
    			state: &stackTraceLevelState{
    				client:          ctrzClientNoScopejHandler,
    				stackTraceLevel: "test:debug",
    			},
    			wantErr: true,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  8. istioctl/pkg/describe/describe_test.go

    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			ic := util.ReadFile(t, test.inputConfig)
    			cd := configdump.Wrapper{}
    			err := cd.UnmarshalJSON(ic)
    			if err != nil {
    				t.Fatal(err)
    			}
    			out, err := getIstioVirtualServicePathForSvcFromRoute(&cd, test.inputService, test.inputPort)
    			if err != nil {
    				t.Fatal(err)
    			}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  9. istioctl/pkg/util/handlers/handlers_test.go

    	corev1client "k8s.io/client-go/kubernetes/typed/core/v1"
    	"k8s.io/client-go/rest/fake"
    	cmdtesting "k8s.io/kubectl/pkg/cmd/testing"
    	"k8s.io/kubectl/pkg/scheme"
    
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestInferPodInfo(t *testing.T) {
    	tests := []struct {
    		proxyName     string
    		namespace     string
    		wantPodName   string
    		wantNamespace string
    	}{
    		{
    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)
  10. istioctl/pkg/workload/workload_test.go

    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if got := convertToStringMap(tt.arg); !reflect.DeepEqual(got, tt.want) {
    				t.Errorf("convertToStringMap() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestSplitEqual(t *testing.T) {
    	tests := []struct {
    		arg       string
    		wantKey   string
    		wantValue string
    	}{
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
Back to top