- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for HaveOccurred (0.13 sec)
-
pilot/cmd/pilot-agent/status/ready/probe_test.go
g.Expect(err).To(HaveOccurred()) g.Expect(probe.atleastOnceReady).Should(BeFalse()) err = probe.Check() g.Expect(err).To(HaveOccurred()) g.Expect(probe.atleastOnceReady).Should(BeFalse()) server.Close() server = testserver.CreateAndStartServer(liveServerStats) probe.AdminPort = uint16(server.Listener.Addr().(*net.TCPAddr).Port) err = probe.Check() g.Expect(err).NotTo(HaveOccurred())
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 5.9K bytes - Viewed (0) -
pkg/filewatcher/filewatcher_test.go
err := os.Mkdir(dataDir2, 0o777) g.Expect(err).NotTo(HaveOccurred()) watchFile2 := path.Join(dataDir2, "test.conf") err = os.WriteFile(watchFile2, []byte("foo: baz\n"), 0o640) g.Expect(err).NotTo(HaveOccurred()) // change the symlink using the `ln -sfn` command err = exec.Command("ln", "-sfn", dataDir2, path.Join(watchDir, "data")).Run() g.Expect(err).NotTo(HaveOccurred()) // Wait its event to be received.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 7.9K bytes - Viewed (0) -
pilot/pkg/config/aggregate/config_test.go
GroupVersionKind: gvk.GatewayClass, Name: "other", }, } _, err := store1.Create(*configReturn) g.Expect(err).NotTo(HaveOccurred()) stores := []model.ConfigStore{store1, store2} store, err := makeStore(stores, nil) g.Expect(err).NotTo(HaveOccurred()) c := store.Get(gvk.GatewayClass, "other", "") g.Expect(c.Name).To(Equal(configReturn.Name)) } func TestAggregateStoreList(t *testing.T) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 17:36:47 UTC 2024 - 6.7K bytes - Viewed (0) -
hack/verify-test-code.sh
all_e2e_files=() # NOTE: This checks e2e test code without the e2e framework which contains Expect().To(HaveOccurred()) 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
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 23 08:51:42 UTC 2023 - 2.6K bytes - Viewed (0) -
pilot/pkg/networking/core/route/route_test.go
routes, err := route.BuildHTTPRoutesForVirtualService(node(cg), virtualServicePlain, serviceRegistry, nil, 8080, gatewayNames, route.RouteOptions{}) xdstest.ValidateRoutes(t, routes) g.Expect(err).NotTo(HaveOccurred()) g.Expect(len(routes)).To(Equal(1)) // Validate that when timeout is not specified, we disable it based on default value of flag. g.Expect(routes[0].GetRoute().Timeout.Seconds).To(Equal(int64(0)))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 14:12:39 UTC 2024 - 88.1K bytes - Viewed (0) -
pilot/pkg/config/monitor/file_snapshot_test.go
} ts.testSetup(t) fileWatcher := NewFileSnapshot(ts.rootPath, collection.SchemasFor(), "foo") configs, err := fileWatcher.ReadConfigFiles() g.Expect(err).NotTo(HaveOccurred()) g.Expect(configs).To(HaveLen(1)) g.Expect(configs[0].Domain).To(Equal("foo")) gateway := configs[0].Spec.(*networking.Gateway) g.Expect(gateway.Servers[0].Port.Number).To(Equal(uint32(80)))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 3.7K 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) -
pilot/pkg/bootstrap/server_test.go
}, } 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 expectErr bool
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 23.1K bytes - Viewed (0)