• 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
Godeps Loading commit data...
api/swagger-spec Loading commit data...
build Loading commit data...
cluster Loading commit data...
cmd Loading commit data...
contrib Loading commit data...
docs Loading commit data...
examples Loading commit data...
federation/cmd/federated-apiserver Loading commit data...
hack Loading commit data...
hooks Loading commit data...
logo Loading commit data...
pkg Loading commit data...
plugin Loading commit data...
release Loading commit data...
test Loading commit data...
third_party Loading commit data...
www Loading commit data...
.generated_docs Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIB.md Loading commit data...
CONTRIBUTING.md Loading commit data...
DESIGN.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
Vagrantfile Loading commit data...
code-of-conduct.md Loading commit data...