- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 123 for test1 (0.15 sec)
-
istioctl/pkg/checkinject/checkinject_test.go
"istio.io/api/label" "istio.io/istio/pkg/test/util/assert" ) func Test_analyzeRunningWebhooks(t *testing.T) { cases := []struct { name string pod *corev1.Pod ns *corev1.Namespace expectedMessages []webhookAnalysis }{ { name: "no inj because of no match labels", pod: podTestObject("test1", "test1", "", ""), ns: nsTestObject("test1", "", ""),
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Thu Jun 15 15:02:17 GMT 2023 - 10.6K bytes - Viewed (0) -
istioctl/pkg/authz/analyzer_test.go
timestamppb "google.golang.org/protobuf/types/known/timestamppb" "istio.io/istio/istioctl/pkg/util/configdump" ) func TestNewAnalyzer(t *testing.T) { tests := []struct { name string input *configdump.Wrapper wantErr error }{ { name: "Test1", input: &configdump.Wrapper{ ConfigDump: &envoy_admin.ConfigDump{ Configs: []*anypb.Any{ {
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Sun Apr 21 17:42:54 GMT 2024 - 2.8K bytes - Viewed (0) -
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) -
istioctl/pkg/writer/compare/comparator_test.go
} } // TestComparatorMismatchedConfigs tests the scenario where Istiod and Envoy configurations do not match func TestComparatorMismatchedConfigs(t *testing.T) { cfg, err := os.ReadFile("testdata/configdump.json") if err != nil { t.Fatalf("Failed to read test data: %v", err) } diffCfg, err := os.ReadFile("testdata/configdump_diff.json") if err != nil { t.Fatalf("Failed to read test data: %v", err) }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Mar 12 10:02:09 GMT 2024 - 2.3K bytes - Viewed (0) -
operator/cmd/mesh/test-util_test.go
} func mustSelect(t test.Failer, selector map[string]string, labels map[string]string) { t.Helper() kselector := labels2.Set(selector).AsSelectorPreValidated() if !kselector.Matches(labels2.Set(labels)) { t.Fatalf("%v does not select %v", selector, labels) } } func mustNotSelect(t test.Failer, selector map[string]string, labels map[string]string) { t.Helper()
Go - Registered: Wed Mar 20 22:53:08 GMT 2024 - Last Modified: Tue Oct 31 14:48:28 GMT 2023 - 15.3K bytes - Viewed (0) -
operator/cmd/mesh/manifest-generate_test.go
"istio.io/istio/operator/pkg/object" "istio.io/istio/operator/pkg/util" "istio.io/istio/operator/pkg/util/clog" tutil "istio.io/istio/pilot/test/util" "istio.io/istio/pkg/file" "istio.io/istio/pkg/kube" "istio.io/istio/pkg/test" "istio.io/istio/pkg/test/env" "istio.io/istio/pkg/test/util/assert" "istio.io/istio/pkg/version" ) const ( testIstioDiscoveryChartPath = "charts/istio-control/istio-discovery/templates"
Go - Registered: Wed Mar 20 22:53:08 GMT 2024 - Last Modified: Thu Feb 22 08:32:23 GMT 2024 - 42K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/secret_test.go
"io" "os" "testing" "istio.io/istio/pkg/test/util/assert" ) func TestSDSWriter_ValidCert(t *testing.T) { configDumpFile, err := os.Open("testdata/secret/config_dump.json") if err != nil { t.Errorf("error opening test data file: %v", err) } defer configDumpFile.Close() configDump, err := io.ReadAll(configDumpFile) if err != nil { t.Errorf("error reading test data file: %v", err) }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Jun 06 15:14:48 GMT 2023 - 1.5K bytes - Viewed (0) -
cni/pkg/install/cniconfig_test.go
package install import ( "context" "os" "path/filepath" "testing" "time" "istio.io/istio/cni/pkg/config" testutils "istio.io/istio/pilot/test/util" "istio.io/istio/pkg/file" "istio.io/istio/pkg/test/util/assert" ) func TestGetDefaultCNINetwork(t *testing.T) { tempDir := t.TempDir() cases := []struct { name string dir string
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Wed May 17 02:22:22 GMT 2023 - 15.4K bytes - Viewed (0) -
cni/pkg/plugin/cnieventclient_test.go
"testing" "github.com/containernetworking/cni/pkg/skel" cniv1 "github.com/containernetworking/cni/pkg/types/100" "istio.io/istio/cni/pkg/constants" "istio.io/istio/cni/pkg/nodeagent" "istio.io/istio/pkg/test/util/assert" ) func fakeCNIEventClient(address string) CNIEventClient { c := http.DefaultClient eventC := CNIEventClient{ client: c, url: address + constants.CNIAddEventPath, } return eventC
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 4.2K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list_test.go
Annotations: map[string]string{ annotation.SidecarStatus.Name: `{"revision": "test-anno"}`, }, }, }, expectedRevision: "test-anno", }, { name: "has both rev label and annotation, use label", pod: &corev1.Pod{ ObjectMeta: metav1.ObjectMeta{ Labels: map[string]string{ label.IoIstioRev.Name: "test-label", // don't care about the label }, Annotations: map[string]string{
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Thu Jan 04 03:08:06 GMT 2024 - 2.9K bytes - Viewed (0)