- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 44 for NewWithT (0.14 sec)
-
istioctl/pkg/analyze/analyze_test.go
. "github.com/onsi/gomega" "istio.io/istio/istioctl/pkg/cli" "istio.io/istio/istioctl/pkg/util/testutil" "istio.io/istio/pkg/config/analysis/diag" ) func TestErrorOnIssuesFound(t *testing.T) { g := NewWithT(t) msgs := []diag.Message{ diag.NewMessage( diag.NewMessageType(diag.Error, "B1", "Template: %q"), nil, "", ), diag.NewMessage( diag.NewMessageType(diag.Warning, "A1", "Template: %q"),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 1.8K bytes - Viewed (0) -
pkg/config/analysis/analyzers/util/hosts_test.go
// limitations under the License. package util import ( "testing" . "github.com/onsi/gomega" "istio.io/istio/pkg/config/resource" ) func TestGetResourceNameFromHost(t *testing.T) { g := NewWithT(t) // FQDN, same namespace g.Expect(GetResourceNameFromHost("default", "foo.default.svc.cluster.local")).To(Equal(resource.NewFullName("default", "foo"))) // FQDN, cross namespace
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 4.4K bytes - Viewed (0) -
tools/bug-report/pkg/filter/filter_test.go
panic(err) } if err := yaml.Unmarshal([]byte(testClusterResourcesAnnotations), &testClusterResources.Annotations); err != nil { panic(err) } } func TestGetMatchingPaths(t *testing.T) { g := NewWithT(t) tests := []struct { name string config string want []string wantErr string }{ { name: "wantEmpty", config: ``, want: ns1, }, {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 7.7K bytes - Viewed (0) -
pilot/pkg/config/monitor/monitor_test.go
Number: 80, Protocol: "HTTP2", Name: "http", }, Hosts: []string{"*.example.com"}, }, }, }, }, } func TestMonitorForChange(t *testing.T) { g := NewWithT(t) store := memory.Make(collection.SchemasFor(collections.Gateway)) var ( callCount int configs []*config.Config err error ) someConfigFunc := func() ([]*config.Config, error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 4.8K bytes - Viewed (0) -
pilot/cmd/pilot-agent/app/cmd_test.go
package app import ( "testing" . "github.com/onsi/gomega" "istio.io/istio/pilot/cmd/pilot-agent/options" ) func TestPilotDefaultDomainKubernetes(t *testing.T) { g := NewWithT(t) role := &options.ProxyArgs{} role.DNSDomain = "" domain := getDNSDomain("default", role.DNSDomain) g.Expect(domain).To(Equal("default.svc.cluster.local"))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 05 23:51:52 UTC 2024 - 935 bytes - Viewed (0) -
pkg/config/analysis/analyzers/util/exportto_test.go
// limitations under the License. package util import ( "testing" . "github.com/onsi/gomega" ) func TestIsExportToAllNamespaces(t *testing.T) { g := NewWithT(t) // Empty array g.Expect(IsExportToAllNamespaces(nil)).To(Equal(true)) // Array with "*" g.Expect(IsExportToAllNamespaces([]string{"*"})).To(Equal(true)) // Array with "."
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 1.1K bytes - Viewed (0) -
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) -
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) -
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) -
pkg/config/schema/ast/ast_test.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 00:31:03 UTC 2024 - 1.6K bytes - Viewed (0)