Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for expectedBytes (0.14 sec)

  1. cmd/kubeadm/app/cmd/upgrade/common_test.go

    	var tests = []struct {
    		name          string
    		cfg           *kubeadmapi.ClusterConfiguration
    		buf           *bytes.Buffer
    		expectedBytes []byte
    	}{
    		{
    			name:          "config is nil",
    			cfg:           nil,
    			expectedBytes: []byte(""),
    		},
    		{
    			name: "cluster config with local Etcd",
    			cfg: &kubeadmapi.ClusterConfiguration{
    				KubernetesVersion: "v1.7.1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. pkg/kubelet/eviction/helpers_test.go

    	}
    	if expectedBytes := int64(nodeAvailableBytes); memQuantity.available.Value() != expectedBytes {
    		t.Errorf("Expected %v, actual: %v", expectedBytes, memQuantity.available.Value())
    	}
    	if expectedBytes := int64(nodeWorkingSetBytes + nodeAvailableBytes); memQuantity.capacity.Value() != expectedBytes {
    		t.Errorf("Expected %v, actual: %v", expectedBytes, memQuantity.capacity.Value())
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/upgrade/plan_test.go

    				t.Errorf("unexpected error when print object: %v", err)
    			}
    
    			actualBytes := rt.buf.Bytes()
    			if !bytes.Equal(actualBytes, rt.expectedBytes) {
    				t.Errorf(
    					"failed PrintUpgradePlan:\n\texpected: %s\n\n\tactual: %s",
    					string(rt.expectedBytes),
    					string(actualBytes),
    				)
    			}
    		})
    	}
    }
    
    func TestPrintUpgradePlanStructured(t *testing.T) {
    	upgrades := []upgrade.Upgrade{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 03 03:03:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  4. pkg/kubelet/prober/prober.go

    	if eic.writer != nil {
    		// only record the write error, do not cover the command run error
    		if p, err := eic.writer.Write(data); err != nil {
    			klog.ErrorS(err, "Unable to write all bytes from execInContainer", "expectedBytes", len(data), "actualBytes", p)
    		}
    	}
    	return err
    }
    
    func (eic *execInContainer) Wait() error {
    	return nil
    }
    
    func (eic *execInContainer) StdoutPipe() (io.ReadCloser, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:50:13 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top