Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 56 for NewWithT (0.44 sec)

  1. pkg/test/framework/components/namespace/namespace_test.go

    				Revision: "",
    			},
    			wantRevision: "istio.io/rev=canary",
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			tc.cfg.overwriteRevisionIfEmpty(tc.revision)
    			g := NewWithT(t)
    			g.Expect(tc.cfg.Revision).Should(Equal(tc.wantRevision))
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. pkg/test/framework/components/echo/config/param/template_test.go

    			expectFound: true,
    		},
    	}
    
    	for _, c := range cases {
    		t.Run(c.name, func(t *testing.T) {
    			tpl := param.Parse(tmpl.ParseOrFail(t, c.template))
    			actual := tpl.ContainsWellKnown(param.To)
    
    			g := NewWithT(t)
    			g.Expect(actual).To(Equal(c.expectFound))
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. pilot/pkg/config/file/store_test.go

    import (
    	"fmt"
    	"testing"
    
    	. "github.com/onsi/gomega"
    
    	"istio.io/istio/pkg/config/schema/collections"
    	"istio.io/istio/pkg/config/schema/gvk"
    )
    
    func TestUpdateExistingContents(t *testing.T) {
    	g := NewWithT(t)
    	src := NewKubeSource(collections.Istio)
    
    	applyAndValidate := func(version string) {
    		configTemplate := `apiVersion: networking.istio.io/v1beta1
    kind: DestinationRule
    metadata:
      name: productpage
      labels:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 05 18:44:58 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. pilot/pkg/bootstrap/server_test.go

    					TLSOptions:     *c.tlsOptions,
    				}
    				p.RegistryOptions = RegistryOptions{
    					FileDir: configDir,
    				}
    
    				p.ShutdownDuration = 1 * time.Millisecond
    			})
    			g := NewWithT(t)
    			s, err := NewServer(args, func(s *Server) {
    				s.kubeClient = kube.NewFakeClient()
    			})
    			g.Expect(err).To(Succeed())
    			stop := make(chan struct{})
    			g.Expect(s.Start(stop)).To(Succeed())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. pkg/config/schema/ast/ast_test.go

    						Validate:     "validation.ValidateVirtualService",
    					},
    				},
    			},
    		},
    	}
    
    	for _, c := range cases {
    		t.Run("", func(t *testing.T) {
    			g := NewWithT(t)
    			actual, err := Parse(c.input)
    			g.Expect(err).To(BeNil())
    			g.Expect(actual).To(Equal(c.expected))
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. pkg/util/strcase/camelcase_test.go

    		"_foo":          "XFoo",
    		"-foo":          "XFoo",
    		"_Foo":          "XFoo",
    		"-Foo":          "XFoo",
    	}
    
    	for k, v := range cases {
    		t.Run(k, func(t *testing.T) {
    			g := NewWithT(t)
    
    			a := CamelCase(k)
    			g.Expect(a).To(Equal(v))
    		})
    	}
    }
    
    func TestCamelCaseToKebabCase(t *testing.T) {
    	cases := map[string]string{
    		"":                   "",
    		"Foo":                "foo",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. operator/cmd/mesh/profile-list_test.go

    	"path/filepath"
    	"testing"
    
    	. "github.com/onsi/gomega"
    
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test/env"
    )
    
    func TestProfileList(t *testing.T) {
    	g := NewWithT(t)
    	args := []string{"profile", "list", "--dry-run", "--manifests", filepath.Join(env.IstioSrc, "manifests")}
    
    	kubeClientFunc = func() (kube.CLIClient, error) {
    		return nil, nil
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 03 06:27:07 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. pilot/pkg/bootstrap/istio_ca_test.go

    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/env"
    	"istio.io/istio/security/pkg/pki/ca"
    )
    
    const testNamespace = "istio-system"
    
    func TestRemoteCerts(t *testing.T) {
    	g := NewWithT(t)
    
    	dir := t.TempDir()
    
    	s := Server{
    		kubeClient: kube.NewFakeClient(),
    	}
    	s.kubeClient.RunAndWait(test.NewStop(t))
    	caOpts := &caOptions{
    		Namespace: testNamespace,
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  9. pilot/pkg/model/proxy_view_test.go

    			name:        "no network label",
    			networkView: []string{"network1"},
    			network:     "",
    			visible:     true,
    		},
    	}
    
    	for _, c := range cases {
    		c := c
    		t.Run(c.name, func(t *testing.T) {
    			g := NewWithT(t)
    
    			view := (&model.Proxy{
    				Metadata: &model.NodeMetadata{
    					RequestedNetworkView: c.networkView,
    				},
    			}).GetView()
    
    			actual := view.IsVisible(&model.IstioEndpoint{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. pilot/pkg/config/kube/gateway/controller_test.go

    			},
    		},
    	}
    )
    
    var AlwaysReady = func(class schema.GroupVersionResource, stop <-chan struct{}) bool {
    	return true
    }
    
    func TestListInvalidGroupVersionKind(t *testing.T) {
    	g := NewWithT(t)
    	clientSet := kube.NewFakeClient()
    	clientSet.RunAndWait(test.NewStop(t))
    	store := memory.NewController(memory.Make(collections.All))
    	controller := NewController(clientSet, store, AlwaysReady, nil, controller.Options{})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 16:47:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top