- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 56 for NewWithT (0.39 sec)
-
pilot/pkg/server/instance_test.go
) func TestStartWithError(t *testing.T) { g := NewWithT(t) inst := server.New() expected := errors.New("fake") inst.RunComponent("fake", func(stop <-chan struct{}) error { return expected }) stop := newReclosableChannel() t.Cleanup(stop.Close) g.Expect(inst.Start(stop.c)).To(Equal(expected)) } func TestStartWithNoError(t *testing.T) { g := NewWithT(t) inst := server.New()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 23:02:39 UTC 2024 - 4.1K bytes - Viewed (0) -
pkg/config/resource/metadata_test.go
"testing" . "github.com/onsi/gomega" ) func TestMetadata_Clone_NilMaps(t *testing.T) { g := NewWithT(t) m := Metadata{ FullName: NewFullName("ns1", "rs1"), Version: Version("v1"), } c := m.Clone() g.Expect(m).To(Equal(c)) } func TestMetadata_Clone_NonNilMaps(t *testing.T) { g := NewWithT(t) m := Metadata{ FullName: NewFullName("ns1", "rs1"), Version: Version("v1"),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 1.1K bytes - Viewed (0) -
pilot/pkg/config/monitor/file_snapshot_test.go
spec: hosts: - some.example.com gateways: - some-ingress http: - route: - destination: host: some.example.internal ` func TestFileSnapshotNoFilter(t *testing.T) { g := NewWithT(t) ts := &testState{ ConfigFiles: map[string][]byte{"gateway.yml": []byte(gatewayYAML)}, } ts.testSetup(t) fileWatcher := NewFileSnapshot(ts.rootPath, collection.SchemasFor(), "foo")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 3.7K bytes - Viewed (0) -
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/networking/core/cluster_test.go
"inbound|10001||": overrideSettings, "inbound|10002||": basicSettings, }, }, } for name, tt := range cases { t.Run(name, func(t *testing.T) { g := NewWithT(t) clusters := xdstest.ExtractClusters(buildTestClusters(clusterTest{ t: t, serviceHostname: "*.example.org", nodeType: model.SidecarProxy, mesh: testMesh(),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 108.8K 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)