• k8s-merge-robot's avatar
    Merge pull request #23627 from ingvagabund/unit-test-for-negative-value-of-allocatable-resources · df9f71fc
    k8s-merge-robot authored
    Automatic merge from submit-queue
    
    Unit test for negative value of allocatable resources
    
    Introduce unit test for checking resource quantities for kubelet's allocatable resources.
    
    Covered values:
    
    * negative quantity value: error expected
    * invalid quantity unit: error expected
    * valid quantity: error not expected
    
    Running go test with -v, returned error are logged as well for more information:
    
    ```shell
    === RUN   TestValueOfAllocatableResources
    --- PASS: TestValueOfAllocatableResources (0.00s)
        server_test.go:47: Returned err: "resource quantity for \"memory\" cannot be negative: -150G"
        server_test.go:47: Returned err: "unable to parse quantity's suffix"
    PASS
    ok          k8s.io/kubernetes/cmd/kubelet/app       0.020s
    ```
    df9f71fc
Name
Last commit
Last update
..
genbashcomp Loading commit data...
genconversion Loading commit data...
gendocs Loading commit data...
genkubedocs Loading commit data...
genman Loading commit data...
genswaggertypedocs Loading commit data...
genutils Loading commit data...
genyaml Loading commit data...
hyperkube Loading commit data...
integration Loading commit data...
kube-apiserver Loading commit data...
kube-controller-manager Loading commit data...
kube-proxy Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
libs/go2idl Loading commit data...
linkcheck Loading commit data...
mungedocs Loading commit data...
OWNERS Loading commit data...