Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for NoError (0.13 sec)

  1. cni/pkg/iptables/iptables_e2e_test.go

    	assert.NoError(t, iptConfigurator.CreateInpodRules(scopes.CNIAgent, probeSNATipv4, probeSNATipv6, false))
    
    	t.Log("starting cleanup")
    	// Cleanup, should work
    	assert.NoError(t, iptConfigurator.DeleteInpodRules())
    	validateIptablesClean(t)
    
    	t.Log("second run")
    	// Add again, should still work
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Oct 15 15:39:28 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/server_test.go

    	expectPodAddedToIPSet(fakeIPSetDeps, podIP, pod.ObjectMeta)
    
    	err := m.AddPodToMesh(fakeCtx, pod, podIPs, "")
    	assert.NoError(t, err)
    
    	fakeIPSetDeps.AssertExpectations(t)
    
    	pod, err = fakeClientSet.CoreV1().Pods("test").Get(fakeCtx, "test", metav1.GetOptions{})
    	assert.NoError(t, err)
    	assert.Equal(t, len(pod.Annotations), 1)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/envoy/configdump/secret_test.go

    				t.Errorf("error reading test data output file: %v", err)
    			}
    
    			gotOut := &bytes.Buffer{}
    			cw := &ConfigWriter{Stdout: gotOut}
    			err = cw.Prime(configDump)
    			assert.NoError(t, err)
    			err = cw.PrintSecretSummary()
    			assert.NoError(t, err)
    
    			assert.Equal(t, string(expectedOut), gotOut.String())
    		})
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Oct 28 19:52:53 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/cni-watcher_test.go

    	_, err := client.Kube().CoreV1().Namespaces().Patch(ctx, ns.Name,
    		types.MergePatchType, labelsPatch, metav1.PatchOptions{})
    	assert.NoError(t, err)
    
    	client.RunAndWait(ctx.Done())
    
    	t.Run("found pod", func(t *testing.T) {
    		p, err := pluginServer.getPodWithRetry(log, pod.Name, pod.Namespace)
    		assert.NoError(t, err)
    		assert.Equal(t, p, pod)
    	})
    	t.Run("no pod", func(t *testing.T) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/informers_test.go

    		label.IoIstioDataplaneMode.Name, constants.DataplaneModeAmbient))
    	_, err := client.Kube().CoreV1().Namespaces().Patch(ctx, ns.Name,
    		types.MergePatchType, labelsPatch, metav1.PatchOptions{})
    	assert.NoError(t, err)
    
    	waitForMockCalls()
    
    	assertPodAnnotated(t, client, pod)
    
    	// Assert expected calls actually made
    	fs.AssertExpectations(t)
    }
    
    func TestExistingPodAddedWhenDualStack(t *testing.T) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  6. istioctl/pkg/injector/injector-list_test.go

    		}),
    	}
    
    	client := kube.NewFakeClient(nss...)
    	expected := sets.New[string]("default", "no-ambient")
    	actual, err := getNamespaces(context.TODO(), client, "istio-system")
    	assert.NoError(t, err)
    	for _, ns := range actual {
    		assert.Equal(t, true, expected.Contains(ns.Name))
    	}
    }
    
    func Test_injectionDisabled(t *testing.T) {
    	cases := []struct {
    		name     string
    		pod      *corev1.Pod
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. istioctl/pkg/tag/generate_test.go

    		Revision: "default",
    	}
    
    	_, err := Generate(context.TODO(), fakeClient, opts, "istio-system")
    	assert.NoError(t, err)
    
    	wh, err := fakeClient.Kube().AdmissionregistrationV1().MutatingWebhookConfigurations().
    		Get(context.Background(), "istio-sidecar-injector", metav1.GetOptions{})
    	assert.NoError(t, err)
    
    	assertFunc(t, wh.Webhooks, defaultWh.Webhooks)
    }
    
    func TestGenerateOptions(t *testing.T) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. cmd/admin-heal-ops.go

    		ClientToken:   clientToken,
    		ClientAddress: h.clientAddress,
    		StartTime:     h.startTime,
    	})
    	if err != nil {
    		bugLogIf(h.ctx, err)
    		return nil, toAdminAPIErr(h.ctx, err), ""
    	}
    	return b, noError, ""
    }
    
    // PopHealStatusJSON - Called by heal-status API. It fetches the heal
    // status results from global state and returns its JSON
    // representation. The clientToken helps ensure there aren't
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  9. cmd/api-errors.go

    		}
    	}
    
    	return apiErr
    }
    
    var noError = APIError{}
    
    // toAPIError - Converts embedded errors. Convenience
    // function written to handle all cases where we have known types of
    // errors returned by underlying layers.
    func toAPIError(ctx context.Context, err error) APIError {
    	if err == nil {
    		return noError
    	}
    
    	apiErr := errorCodes.ToAPIErr(toAPIErrorCode(ctx, err))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    				// Send whitespace and keep connection open
    				if _, err := w.Write([]byte(" ")); err != nil {
    					return
    				}
    				w.(http.Flusher).Flush()
    			case hr := <-respCh:
    				switch hr.apiErr {
    				case noError:
    					if started {
    						if _, err := w.Write(hr.respBytes); err != nil {
    							return
    						}
    						w.(http.Flusher).Flush()
    					} else {
    						writeSuccessResponseJSON(w, hr.respBytes)
    					}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
Back to top