Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for fails (0.14 sec)

  1. cni/pkg/log/uds_test.go

    	log.Debug("debug log")
    	log.Info("info log")
    	log.Warn("warn log")
    	log.Error("error log")
    	// This will error because stdout cannot sync, but the UDS part should sync
    	// Ideally we would fail if the UDS part fails but the error library makes it kind of tricky
    	_ = log.Sync()
    
    	// Restore os stdout.
    	os.Stdout = stdout
    	assert.NoError(t, log.Configure(loggingOptions))
    
    	assert.NoError(t, w.Close())
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Mar 16 00:20:01 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  2. operator/cmd/mesh/profile-diff_test.go

    			expectedString: "+    profile: openshift",
    			// The profile doesn't change istiocoredns, so we shouldn't see this in the diff
    			notExpected: "-    istiocoredns:",
    			// 'profile diff' "fails" so that the error level `$?` is 1, not 0, if there is a diff
    			shouldFail: false,
    		},
    	}
    
    	l := clog.NewConsoleLogger(os.Stdout, os.Stderr, nil)
    	for i, c := range cases {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Jan 10 05:10:03 GMT 2024
    - 3.6K bytes
    - Viewed (1)
  3. operator/cmd/mesh/manifest_shared_test.go

    	ctx context.Context,
    	clnt client.WithWatch,
    	obj client.Object,
    	patch client.Patch,
    	opts ...client.PatchOption,
    ) error {
    	// Apply patches are supposed to upsert, but fake client fails if the object doesn't exist,
    	// if an apply patch occurs for an object that doesn't yet exist, create it.
    	if patch.Type() != types.ApplyPatchType {
    		return clnt.Patch(ctx, obj, patch, opts...)
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 20 22:39:28 GMT 2024
    - 11.7K bytes
    - Viewed (1)
  4. istioctl/pkg/proxyconfig/proxyconfig_test.go

    		},
    		{ // supplying valid pod name retrieves Envoy config (fails because we don't check in Envoy config unit tests)
    			execClientConfig: loggingConfig,
    			args:             strings.Split("bootstrap httpbin-794b576b6c-qx6pf", " "),
    			expectedString:   `config dump has no configuration type`,
    			wantException:    true,
    		},
    		{ // supplying valid pod name retrieves Envoy config (fails because we don't check in Envoy config unit tests)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 10 21:51:29 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  5. operator/cmd/mesh/test-util_test.go

    }
    
    // mustGetService returns the service with the given name or fails if it's not found in objs.
    func mustGetService(g *WithT, objs *ObjectSet, name string) *object.K8sObject {
    	obj := objs.kind(name2.ServiceStr).nameEquals(name)
    	g.Expect(obj).Should(Not(BeNil()))
    	return obj
    }
    
    // mustGetDeployment returns the deployment with the given name or fails if it's not found in objs.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  6. istioctl/pkg/admin/istiodconfig_test.go

    	type args struct {
    		slp               string
    		validationPattern string
    	}
    	tests := []struct {
    		name    string
    		args    args
    		want    *ScopeLevelPair
    		wantErr bool
    	}{
    		{
    			name:    "Fail when logs scope-level pair don't match pattern",
    			args:    args{validationPattern: validationPattern, slp: "invalid:pattern"},
    			wantErr: true,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/server_test.go

    	fakeClientSet := fake.NewSimpleClientset()
    	m := meshDataplane{
    		kubeClient: fakeClientSet,
    		netServer:  server,
    	}
    
    	// pod is not in fake client, so if this will try to remove annotation, it will fail.
    	err := m.DelPodFromMesh(fakeCtx, pod)
    	assert.NoError(t, err)
    }
    
    func TestMeshDataplaneDelPodErrorDoesntPatchPod(t *testing.T) {
    	pod := podWithAnnotation()
    
    	fakeCtx := context.Background()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  8. istioctl/pkg/workload/workload_test.go

    				if !strings.Contains(output, noClusterID) {
    					t.Fatal(err)
    				}
    			}
    
    			checkFiles := map[string]bool{
    				// inputs that we allow to exist, if other files seep in unexpectedly we fail the test
    				".gitignore": false, "meshconfig.yaml": false, "workloadgroup.yaml": false,
    			}
    			for k, v := range generated {
    				checkFiles[k] = v
    			}
    
    			checkOutputFiles(t, testdir, checkFiles)
    		})
    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)
  9. cni/pkg/nodeagent/net.go

    		// so it should be annotated, so if it is removed from the mesh, the rules will be removed.
    		// alternatively, we may not return an error at all, but we want this to fail on tests.
    		return NewErrPartialAdd(err)
    	}
    	return nil
    }
    
    func (s *NetServer) sendPodToZtunnelAndWaitForAck(ctx context.Context, pod *corev1.Pod, netns Netns) error {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
  10. cni/test/install_cni.go

    			if op == "add" {
    				t.Logf("PASS: File %v was added to %v", f, tempCNIBinDir)
    				return nil
    			} else if op == "del" {
    				return fmt.Errorf("FAIL: File %v was not removed from %v", f, tempCNIBinDir)
    			}
    		} else {
    			if op == "add" {
    				return fmt.Errorf("FAIL: File %v was not added to %v", f, tempCNIBinDir)
    			} else if op == "del" {
    				t.Logf("PASS: File %v was removed from %v", f, tempCNIBinDir)
    				return nil
    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)
Back to top