- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 76 for teston (0.18 sec)
-
operator/cmd/mesh/operator_test.go
for _, test := range tests { t.Run("", func(t *testing.T) { args := []string{"operator", "init", "--dry-run"} if test.operatorNamespace != "" { args = append(args, "--operatorNamespace", test.operatorNamespace) } if test.watchedNamespaces != "" { args = append(args, "--watchedNamespaces", test.watchedNamespaces) } kubeClientFunc = func() (kube.CLIClient, error) { return nil, nil
Go - Registered: Wed Mar 20 22:53:08 GMT 2024 - Last Modified: Tue Aug 29 14:15:33 GMT 2023 - 6.4K bytes - Viewed (0) -
cni/pkg/nodeagent/net_test.go
assert.NoError(t, err) fakeIPSetDeps.AssertExpectations(t) } // for tests that call `runtime.GC()` - we have no control over when the GC is actually scheduled, // and it is flake-prone to check for closure after calling it, this retries for a bit to make // sure the netns is closed eventually. func assertNSClosed(t *testing.T, closed *atomic.Bool) { for i := 0; i < 5; i++ { if closed.Load() { return }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 16.4K bytes - Viewed (0) -
cni/pkg/nodeagent/informers_test.go
setupLogging() NodeName = "testnode" ctx, cancel := context.WithCancel(context.Background()) defer cancel() pod := &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "test", Namespace: "test", }, Spec: corev1.PodSpec{ NodeName: NodeName, }, Status: corev1.PodStatus{ PodIP: "11.1.1.12", }, } ns := &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "test"}}
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Thu Feb 08 01:03:24 GMT 2024 - 15.8K bytes - Viewed (0) -
cni/pkg/install/kubeconfig_test.go
import ( "os" "path/filepath" "testing" "istio.io/istio/cni/pkg/config" "istio.io/istio/cni/pkg/constants" testutils "istio.io/istio/pilot/test/util" ) const ( k8sServiceHost = "10.96.0.1" k8sServicePort = "443" kubeCAFilepath = "testdata/kube-ca.crt" saToken = "service_account_token_string" ) func TestCreateValidKubeconfigFile(t *testing.T) { tmp := t.TempDir()
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Thu Feb 08 03:52:24 GMT 2024 - 5.1K bytes - Viewed (0) -
cni/pkg/iptables/iptables_test.go
// limitations under the License. package iptables import ( "net/netip" "path/filepath" "strings" "testing" testutil "istio.io/istio/pilot/test/util" dep "istio.io/istio/tools/istio-iptables/pkg/dependencies" ) func TestIptables(t *testing.T) { cases := []struct { name string config func(cfg *Config) }{ { "default", func(cfg *Config) {
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 3.7K bytes - Viewed (0) -
cni/pkg/plugin/plugin_test.go
} r := mockIntercept.lastRedirect[len(mockIntercept.lastRedirect)-1] if !r.dualStack { t.Fatalf("expect dualStack is true, actual %v", r.dualStack) } } func Test_dedupPorts(t *testing.T) { type args struct { ports []string } tests := []struct { name string args args want []string }{ { name: "No duplicates", args: args{ports: []string{"1234", "2345"}},
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Sat Feb 10 00:31:55 GMT 2024 - 17.5K bytes - Viewed (0) -
istioctl/pkg/config/config_test.go
// limitations under the License. package config import ( "fmt" "strings" "testing" "github.com/spf13/viper" "istio.io/istio/istioctl/pkg/util/testutil" "istio.io/istio/pkg/config/constants" ) func TestConfigList(t *testing.T) { cases := []testutil.TestCase{ //{ // case 0 // Args: strings.Split("get istioNamespace", " "),
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Thu Jun 15 15:02:17 GMT 2023 - 1.8K bytes - Viewed (0) -
istioctl/pkg/install/k8sversion/version_test.go
t.Run(fmt.Sprintf("case %d %s", i, c.version), func(t *testing.T) { got, err := extractKubernetesVersion(c.version) if c.errMsg != err && c.isValid { t.Fatalf("\nwanted: %v \nbut found: %v", c.errMsg, err) } if got != c.expected { t.Fatalf("wanted %v got %v", c.expected, got) } }) } } func TestIsK8VersionSupported(t *testing.T) { cases := []struct { version *version.Info
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Fri Jan 19 02:46:48 GMT 2024 - 6.3K bytes - Viewed (0) -
istioctl/pkg/tag/tag_test.go
}, }, }, }, outputMatches: []string{"test", "revision", "dependent"}, error: "", }, } for _, tc := range tcs { t.Run(tc.name, func(t *testing.T) { var out bytes.Buffer client := fake.NewSimpleClientset(tc.webhooks.DeepCopyObject(), tc.namespaces.DeepCopyObject()) outputFormat = util.JSONFormat
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Fri Nov 17 22:41:06 GMT 2023 - 8.7K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/ecds_test.go
// limitations under the License. package configdump import ( "bytes" "encoding/json" "os" "testing" "istio.io/istio/pilot/test/util" "istio.io/istio/pkg/test/util/assert" ) func TestPrintEcdsSummary(t *testing.T) { gotOut := &bytes.Buffer{} cw := &ConfigWriter{Stdout: gotOut} cd, _ := os.ReadFile("testdata/ecds/configdump.json") cw.Prime(cd)
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Dec 13 01:08:07 GMT 2022 - 1.9K bytes - Viewed (0)