Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Fatal (0.13 sec)

  1. cni/pkg/install/install_test.go

    			}(ctx)
    
    			select {
    			case <-readyChan:
    				assert.Equal(t, isReady.Load(), true)
    			case err := <-errChan:
    				if err == nil {
    					t.Fatal("invalid configuration detected")
    				}
    				t.Fatal(err)
    			case <-time.After(5 * time.Second):
    				t.Fatal("timed out waiting for isReady to be set to true")
    			}
    
    			// Change SA token
    			if len(c.saNewFilename) > 0 {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  2. istioctl/pkg/workload/workload_test.go

    		t.Logf("output: %v", output)
    		t.Fatal(err)
    	}
    
    	cmdNoClusterID := []string{
    		"entry", "configure",
    		"-f", path.Join(testdir, "workloadgroup.yaml"),
    		"--internalIP", "10.10.10.10",
    		"-o", testdir,
    	}
    	if output, err := runTestCmd(t, createClientFunc, "", cmdNoClusterID); err != nil {
    		if !strings.Contains(output, noClusterID) {
    			t.Fatal(err)
    		}
    	}
    
    	checkFiles := map[string]bool{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  3. cni/test/install_cni.go

    	cniConfigMap, err := util.ReadCNIConfigMap(cniConfigFilepath)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Find Istio CNI and remove from plugin list
    	plugins, err := util.GetPlugins(cniConfigMap)
    	if err != nil {
    		t.Fatal(err)
    	}
    	for i, rawPlugin := range plugins {
    		plugin, err := util.GetPlugin(rawPlugin)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if plugin["type"] == "istio-cni" {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/informers_test.go

    		p, err := client.Kube().CoreV1().Pods(pod.Namespace).Get(context.Background(), pod.Name, metav1.GetOptions{})
    		if err != nil {
    			t.Fatal(err)
    		}
    		if p.Annotations[constants.AmbientRedirection] == constants.AmbientRedirectionEnabled {
    			return
    		}
    		time.Sleep(1 * time.Second)
    	}
    	t.Fatal("Pod not annotated")
    }
    
    func assertPodNotAnnotated(t *testing.T, client kube.Client, pod *corev1.Pod) {
    	for i := 0; i < 5; i++ {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/net_test.go

    	err := netServer.AddPodToMesh(ctx, &corev1.Pod{ObjectMeta: podMeta}, podIPs, "faksens")
    	assert.Equal(t, ztunnelServer.addedPods.Load(), 1)
    	if !errors.Is(err, ErrPartialAdd) {
    		t.Fatal("expected partial error")
    	}
    }
    
    func TestDoesntReturnsPartialErrorOnIptablesFail(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    	setupLogging()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  6. istioctl/pkg/describe/describe_test.go

    			ic := util.ReadFile(t, test.inputConfig)
    			cd := configdump.Wrapper{}
    			err := cd.UnmarshalJSON(ic)
    			if err != nil {
    				t.Fatal(err)
    			}
    			out, err := getIstioVirtualServicePathForSvcFromRoute(&cd, test.inputService, test.inputPort)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if diff := cmp.Diff(test.expected, out); diff != "" {
    				t.Fatalf("Diff:\n%s", diff)
    			}
    		})
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  7. istioctl/pkg/validate/validate_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	if _, err := validFile.WriteString(data); err != nil {
    		t.Fatal(err)
    	}
    	return validFile.Name(), validFile
    }
    
    func createTestDirectory(t *testing.T, files map[string]string) string {
    	t.Helper()
    	tempDir, err := os.MkdirTemp("", "TestValidateCommand")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for name, content := range files {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jul 25 08:08:36 GMT 2023
    - 21.5K bytes
    - Viewed (0)
  8. operator/cmd/mesh/manifest-generate_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	objs, err := object.ParseK8sObjectsFromYAMLManifest(got)
    	if err != nil {
    		t.Fatal(err)
    	}
    	gotRev, e := runManifestGenerate([]string{}, "--set revision=canary", liveCharts, selectors)
    	if e != nil {
    		t.Fatal(e)
    	}
    	objsRev, err := object.ParseK8sObjectsFromYAMLManifest(gotRev)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
  9. cni/pkg/plugin/plugin_test.go

    	}
    
    	// Create a kube client
    	client := kube.NewFakeClient(objects...)
    
    	mockRedir := &mockInterceptRuleMgr{}
    	err = doAddRun(args, conf, client.Kube(), mockRedir)
    	if err == nil {
    		t.Fatal("expected to fail, but did not!")
    	}
    
    	return mockRedir
    }
    
    func testDoAddRun(t *testing.T, stdinData, nsName string, objects ...runtime.Object) *mockInterceptRuleMgr {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 08 15:58:51 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  10. cni/pkg/install/cniconfig_test.go

    				return
    			case err := <-errChan:
    				t.Fatal(err)
    			case <-time.After(250 * time.Millisecond):
    				if len(c.delayedConfName) > 0 {
    					// Delayed case
    					// Write delayed CNI config file
    					data, err := os.ReadFile(filepath.Join("testdata", c.delayedConfName))
    					if err != nil {
    						t.Fatal(err)
    					}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 17 02:22:22 GMT 2023
    - 15.4K bytes
    - Viewed (0)
Back to top