- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for ToNot (0.1 sec)
-
pkg/config/mesh/networks_watcher_test.go
"istio.io/istio/pkg/filewatcher" ) func TestNewNetworksWatcherWithBadInputShouldFail(t *testing.T) { g := NewWithT(t) _, err := mesh.NewNetworksWatcher(filewatcher.NewWatcher(), "") g.Expect(err).ToNot(BeNil()) } func TestNetworksWatcherShouldNotifyHandlers(t *testing.T) { g := NewWithT(t) path := newTempFile(t) defer removeSilent(path) n := meshconfig.MeshNetworks{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 1.9K bytes - Viewed (0) -
pkg/config/schema/resource/schema_test.go
expectError: true, }, } for _, c := range cases { t.Run(c.name, func(t *testing.T) { g := NewWithT(t) err := c.b.BuildNoValidate().Validate() if c.expectError { g.Expect(err).ToNot(BeNil()) } else { g.Expect(err).To(BeNil()) } }) } } func TestBuild(t *testing.T) { cases := []struct { name string b Builder expectError bool }{ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 5.2K bytes - Viewed (0) -
hack/verify-test-code.sh
kube::util::read-array all_e2e_files < <(find test/e2e{,_node,_kubeadm} -name '*.go' | grep -v 'test/e2e/framework/') errors_expect_no_error=() for file in "${all_e2e_files[@]}" do if grep -E "Expect\(.*\)\.(NotTo|ToNot)\(.*HaveOccurred\(\)" "${file}" > /dev/null then errors_expect_no_error+=( "${file}" ) fi if grep -E "Expect\(err\)\.To\(gomega\.BeNil\(\)\)" "${file}" > /dev/null then
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 23 08:51:42 UTC 2023 - 2.6K bytes - Viewed (0) -
pkg/config/mesh/watcher_test.go
"istio.io/istio/pkg/util/protomarshal" ) func TestNewWatcherWithBadInputShouldFail(t *testing.T) { g := NewWithT(t) _, err := mesh.NewFileWatcher(filewatcher.NewWatcher(), "", false) g.Expect(err).ToNot(BeNil()) } func TestWatcherShouldNotifyHandlers(t *testing.T) { watcherShouldNotifyHandlers(t, false) } func TestMultiWatcherShouldNotifyHandlers(t *testing.T) { watcherShouldNotifyHandlers(t, true) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 3K bytes - Viewed (0) -
pkg/config/schema/collection/schemas_test.go
g := NewWithT(t) b := collection.NewSchemasBuilder() for _, s := range c.schemas { b.MustAdd(s) } err := b.Build().Validate() if c.expectError { g.Expect(err).ToNot(BeNil()) } else { g.Expect(err).To(BeNil()) } }) } } func TestSchemas_Validate_Error(t *testing.T) { g := NewWithT(t) b := collection.NewSchemasBuilder()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 5.4K bytes - Viewed (0) -
pilot/pkg/config/kube/gateway/controller_test.go
Name: "http-route", Namespace: "ns1", }, Spec: httpRouteSpec, }) cg := core.NewConfigGenTest(t, core.TestOptions{}) g.Expect(controller.Reconcile(cg.PushContext())).ToNot(HaveOccurred()) cfg := controller.List(gvk.Gateway, "ns1") g.Expect(cfg).To(HaveLen(1)) for _, c := range cfg { g.Expect(c.GroupVersionKind).To(Equal(gvk.Gateway))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 02 16:47:06 UTC 2024 - 5.6K bytes - Viewed (0) -
pkg/bootstrap/option/instances_test.go
}, } for _, c := range cases { t.Run(c.testName, func(t *testing.T) { g := NewWithT(t) params, err := option.NewTemplateParams(c.option) if c.expectError { g.Expect(err).ToNot(BeNil()) } else { g.Expect(err).To(BeNil()) actual, ok := params[c.key] if c.expected == nil { g.Expect(ok).To(BeFalse()) } else { g.Expect(ok).To(BeTrue())
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 20:38:02 UTC 2024 - 22.4K bytes - Viewed (0) -
pilot/pkg/bootstrap/server_test.go
InsecureSkipVerify: true, }, } defer c.CloseIdleConnections() for _, url := range []string{"http://" + s.httpAddr, "https://" + s.httpsAddr} { resp, err := c.Get(url + "/ready") g.Expect(err).ToNot(HaveOccurred()) g.Expect(resp.StatusCode).To(Equal(http.StatusOK)) g.Expect(resp.Body.Close()).To(Succeed()) } } func TestInitOIDC(t *testing.T) { tests := []struct { name string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 23.1K bytes - Viewed (0) -
pkg/config/analysis/analyzers/analyzers_test.go
existingNames.Insert(n) } } func TestAnalyzersHaveDescription(t *testing.T) { g := NewWithT(t) for _, a := range All() { g.Expect(a.Metadata().Description).ToNot(Equal("")) } } func setupAnalyzerForCase(tc testCase, cr local.CollectionReporterFn) (*local.IstiodAnalyzer, error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 07:22:31 UTC 2024 - 42.6K bytes - Viewed (0) -
pilot/pkg/networking/core/cluster_test.go
clusters := buildTestClusters(clusterTest{t: t, serviceHostname: TestServiceNHostname, nodeType: model.SidecarProxy, mesh: mesh, destRule: destRule}) tlsContext := getTLSContext(t, clusters[1]) g.Expect(tlsContext).ToNot(BeNil()) g.Expect(tlsContext.GetSni()).To(Equal("custom.sni.com")) g.Expect(clusters[1].TransportSocketMatches).To(HaveLen(0)) for _, i := range []int{0, 2, 3} {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 108.8K bytes - Viewed (0)