GoTest result
```
[0m? github.com/xiaods/k8e [no test files]
[0m[0m? github.com/xiaods/k8e/cmd/agent [no test files]
[0m[0m? github.com/xiaods/k8e/cmd/cert [no test files]
[0m[0m? github.com/xiaods/k8e/cmd/containerd [no test files]
[0m[0m? github.com/xiaods/k8e/cmd/ctr [no test files]
[0m[0m? github.com/xiaods/k8e/cmd/encrypt [no test files]
[0m[0m? github.com/xiaods/k8e/cmd/etcdsnapshot [no test files]
[0m[0m? github.com/xiaods/k8e/cmd/k8e [no test files]
[0m[0m? github.com/xiaods/k8e/cmd/kubectl [no test files]
[0m[0m? github.com/xiaods/k8e/cmd/server [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/agent [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/agent/config [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/agent/containerd [no test files]
[0m[0m=== RUN TestFailOver
[0m[0mtime="2022-07-02T13:25:58Z" level=info msg="Running load balancer k8e-agent-load-balancer 127.0.0.1:39855 -> [127.0.0.1:39361]"
[0m[0mtime="2022-07-02T13:25:58Z" level=info msg="Updating load balancer k8e-agent-load-balancer server addresses -> [127.0.0.1:41663 127.0.0.1:39361]"
[0m[32m--- PASS: TestFailOver (0.00s)
[0m[0m=== RUN TestFailFast
[0m[0mtime="2022-07-02T13:25:58Z" level=info msg="Running load balancer k8e-agent-load-balancer 127.0.0.1:43193 -> [127.0.0.1:0]"
[0m[32m--- PASS: TestFailFast (0.00s)
[0m[32mPASS
[0m[32mok github.com/xiaods/k8e/pkg/agent/loadbalancer 0.015s
[0m[0m? github.com/xiaods/k8e/pkg/agent/proxy [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/agent/syssetup [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/agent/templates [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/agent/tunnel [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/agent/util [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/apis/k8e.cattle.io [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/apis/k8e.cattle.io/v1 [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/authenticator [no test files]
[0m[0m=== RUN TestBasicAuth
[0m[32m--- PASS: TestBasicAuth (0.00s)
[0m[32mPASS
[0m[32mok github.com/xiaods/k8e/pkg/authenticator/basicauth 0.009s
[0m[0m=== RUN TestBasicHash
[0m[32m--- PASS: TestBasicHash (0.35s)
[0m[0m=== RUN TestLongKey
[0m[32m--- PASS: TestLongKey (0.32s)
[0m[32mPASS
[0m[32mok github.com/xiaods/k8e/pkg/authenticator/hash 0.672s
[0m[0m=== RUN TestPasswordFile
[0m[32m--- PASS: TestPasswordFile (0.00s)
[0m[0m=== RUN TestBadPasswordFile
[0m[32m--- PASS: TestBadPasswordFile (0.00s)
[0m[0m=== RUN TestInsufficientColumnsPasswordFile
[0m[32m--- PASS: TestInsufficientColumnsPasswordFile (0.00s)
[0m[32mPASS
[0m[32mok github.com/xiaods/k8e/pkg/authenticator/passwordfile 0.007s
[0m[0m=== RUN TestObjToMap
[0m[0m=== RUN TestObjToMap/Minimal_Valid
[0m[0m=== RUN TestObjToMap/Minimal_Invalid
[0m[32m--- PASS: TestObjToMap (0.00s)
[0m[32m --- PASS: TestObjToMap/Minimal_Valid (0.00s)
[0m[32m --- PASS: TestObjToMap/Minimal_Invalid (0.00s)
[0m[32mPASS
[0m[32mok github.com/xiaods/k8e/pkg/bootstrap 0.018s
[0m[0m? github.com/xiaods/k8e/pkg/cgroups [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/cli/agent [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/cli/cert [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/cli/cmds [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/cli/crictl [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/cli/ctr [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/cli/etcdsnapshot [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/cli/kubectl [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/cli/secretsencrypt [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/cli/server [no test files]
[0m[0m=== RUN TestTrustedCA
[0m[0mtime="2022-07-02T13:26:01Z" level=info msg="certificate CN=localhost,O=testing signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-07-02 13:26:01 +0000 UTC notAfter=2023-07-02 13:26:01 +0000 UTC"
[0m[0mtime="2022-07-02T13:26:01Z" level=warning msg="Cluster CA certificate is trusted by the host CA bundle. Token CA hash will not be validated."
[0m[0mtime="2022-07-02T13:26:01Z" level=warning msg="Cluster CA certificate is trusted by the host CA bundle. Token CA hash will not be validated."
[0m[32m--- PASS: TestTrustedCA (0.04s)
[0m[0m=== RUN TestUntrustedCA
[0m[0mtime="2022-07-02T13:26:01Z" level=info msg="certificate CN=localhost,O=testing signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-07-02 13:26:01 +0000 UTC notAfter=2023-07-02 13:26:01 +0000 UTC"
[0m[0m2022-07-02 13:26:01.310641 I | http: TLS handshake error from 127.0.0.1:38596: remote error: tls: bad certificate
[0m[0mtime="2022-07-02T13:26:01Z" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full token from the server's node-token file to enable Cluster CA validation."
[0m[0m2022-07-02 13:26:01.314619 I | http: TLS handshake error from 127.0.0.1:38602: remote error: tls: bad certificate
[0m[0mtime="2022-07-02T13:26:01Z" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full token from the server's node-token file to enable Cluster CA validation."
[0m[0m2022-07-02 13:26:01.318873 I | http: TLS handshake error from 127.0.0.1:38614: remote error: tls: bad certificate
[0m[0m2022-07-02 13:26:01.320192 I | http: TLS handshake error from 127.0.0.1:38608: read tcp 127.0.0.1:44749->127.0.0.1:38608: use of closed network connection
[0m[32m--- PASS: TestUntrustedCA (0.01s)
[0m[0m=== RUN TestInvalidServers
[0m[32m--- PASS: TestInvalidServers (0.00s)
[0m[0m=== RUN TestInvalidTokens
[0m[0mtime="2022-07-02T13:26:01Z" level=info msg="certificate CN=localhost,O=testing signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-07-02 13:26:01 +0000 UTC notAfter=2023-07-02 13:26:01 +0000 UTC"
[0m[0m2022-07-02 13:26:01.322354 I | http: TLS handshake error from 127.0.0.1:48134: remote error: tls: bad certificate
[0m[0m2022-07-02 13:26:01.324845 I | http: TLS handshake error from 127.0.0.1:48140: remote error: tls: bad certificate
[0m[32m--- PASS: TestInvalidTokens (0.01s)
[0m[0m=== RUN TestInvalidCredentials
[0m[0mtime="2022-07-02T13:26:01Z" level=info msg="certificate CN=localhost,O=testing signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-07-02 13:26:01 +0000 UTC notAfter=2023-07-02 13:26:01 +0000 UTC"
[0m[0m2022-07-02 13:26:01.327912 I | http: TLS handshake error from 127.0.0.1:57304: remote error: tls: bad certificate
[0m[0mtime="2022-07-02T13:26:01Z" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full token from the server's node-token file to enable Cluster CA validation."
[0m[0m2022-07-02 13:26:01.332127 I | http: TLS handshake error from 127.0.0.1:57312: remote error: tls: bad certificate
[0m[0mtime="2022-07-02T13:26:01Z" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full token from the server's node-token file to enable Cluster CA validation."
[0m[0m2022-07-02 13:26:01.340832 I | http: TLS handshake error from 127.0.0.1:57318: remote error: tls: bad certificate
[0m[0m2022-07-02 13:26:01.344176 I | http: TLS handshake error from 127.0.0.1:57324: remote error: tls: bad certificate
[0m[32m--- PASS: TestInvalidCredentials (0.02s)
[0m[0m=== RUN TestWrongCert
[0m[0mtime="2022-07-02T13:26:01Z" level=info msg="certificate CN=localhost,O=testing signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-07-02 13:26:01 +0000 UTC notAfter=2023-07-02 13:26:01 +0000 UTC"
[0m[0m2022-07-02 13:26:01.348639 I | http: TLS handshake error from 127.0.0.1:55738: remote error: tls: bad certificate
[0m[0m2022-07-02 13:26:01.350628 I | http: TLS handshake error from 127.0.0.1:55744: remote error: tls: bad certificate
[0m[0m2022-07-02 13:26:01.351628 I | http: TLS handshake error from 127.0.0.1:55746: remote error: tls: bad certificate
[0m[0m2022-07-02 13:26:01.352773 I | http: TLS handshake error from 127.0.0.1:55748: remote error: tls: bad certificate
[0m[32m--- PASS: TestWrongCert (0.01s)
[0m[0m=== RUN TestConnectionFailures
[0m[32m--- PASS: TestConnectionFailures (40.00s)
[0m[0m=== RUN TestUserPass
[0m[32m--- PASS: TestUserPass (0.00s)
[0m[0m=== RUN TestParseAndGet
[0m[0mtime="2022-07-02T13:26:41Z" level=info msg="certificate CN=localhost,O=testing signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-07-02 13:26:41 +0000 UTC notAfter=2023-07-02 13:26:41 +0000 UTC"
[0m[0m2022-07-02 13:26:41.359093 I | http: TLS handshake error from 127.0.0.1:44932: remote error: tls: bad certificate
[0m[0mtime="2022-07-02T13:26:41Z" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full token from the server's node-token file to enable Cluster CA validation."
[0m[0m2022-07-02 13:26:41.364404 I | http: TLS handshake error from 127.0.0.1:44940: remote error: tls: bad certificate
[0m[0mtime="2022-07-02T13:26:41Z" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full token from the server's node-token file to enable Cluster CA validation."
[0m[0m2022-07-02 13:26:41.367936 I | http: TLS handshake error from 127.0.0.1:44948: remote error: tls: bad certificate
[0m[0mtime="2022-07-02T13:26:41Z" level=warning msg="Cluster CA certificate is not trusted by the host CA bundle, but the token does not include a CA hash. Use the full token from the server's node-token file to enable Cluster CA validation."
[0m[32m--- PASS: TestParseAndGet (0.01s)
[0m[32mPASS
[0m[32mok github.com/xiaods/k8e/pkg/clientaccess 40.126s
[0m[0m? github.com/xiaods/k8e/pkg/cloudprovider [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/cluster [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/cluster/managed [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/codegen [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/codegen/cleanup [no test files]
[0m[0m=== RUN Test_UnitMustParse
[0m[0m=== RUN Test_UnitMustParse/Basic_server
[0m[0m=== RUN Test_UnitMustParse/Server_with_known_flags
[0m[0m=== RUN Test_UnitMustParse/Server_with_known_flags_and_config_with_known_and_unknown_flags
[0m[0mtime="2022-07-02T13:26:02Z" level=warning msg="Unknown flag --notaflag found in config.yaml, skipping\n"
[0m[0m=== RUN Test_UnitMustParse/Basic_etcd-snapshot
[0m[0m=== RUN Test_UnitMustParse/Etcd-snapshot_with_known_flags
[0m[0m=== RUN Test_UnitMustParse/Etcd-snapshot_with_config_with_known_and_unknown_flags
[0m[0mtime="2022-07-02T13:26:02Z" level=warning msg="Unknown flag --token found in config.yaml, skipping\n"
[0m[0mtime="2022-07-02T13:26:02Z" level=warning msg="Unknown flag --node-label found in config.yaml, skipping\n"
[0m[0mtime="2022-07-02T13:26:02Z" level=warning msg="Unknown flag --notaflag found in config.yaml, skipping\n"
[0m[0mtime="2022-07-02T13:26:02Z" level=warning msg="Unknown flag --kubelet-arg found in config.yaml, skipping\n"
[0m[0m=== RUN Test_UnitMustParse/Agent_with_known_flags
[0m[0m=== RUN Test_UnitMustParse/Agent_with_config_with_known_and_unknown_flags,_flags_are_not_skipped
[0m[32m--- PASS: Test_UnitMustParse (0.00s)
[0m[32m --- PASS: Test_UnitMustParse/Basic_server (0.00s)
[0m[32m --- PASS: Test_UnitMustParse/Server_with_known_flags (0.00s)
[0m[32m --- PASS: Test_UnitMustParse/Server_with_known_flags_and_config_with_known_and_unknown_flags (0.00s)
[0m[32m --- PASS: Test_UnitMustParse/Basic_etcd-snapshot (0.00s)
[0m[32m --- PASS: Test_UnitMustParse/Etcd-snapshot_with_known_flags (0.00s)
[0m[32m --- PASS: Test_UnitMustParse/Etcd-snapshot_with_config_with_known_and_unknown_flags (0.00s)
[0m[32m --- PASS: Test_UnitMustParse/Agent_with_known_flags (0.00s)
[0m[32m --- PASS: Test_UnitMustParse/Agent_with_config_with_known_and_unknown_flags,_flags_are_not_skipped (0.00s)
[0m[0m=== RUN TestFindStart
[0m[32m--- PASS: TestFindStart (0.00s)
[0m[0m=== RUN TestConfigFile
[0m[32m--- PASS: TestConfigFile (0.00s)
[0m[0m=== RUN TestParse
[0m[32m--- PASS: TestParse (0.00s)
[0m[32mPASS
[0m[32mok github.com/xiaods/k8e/pkg/configfilearg 0.006s
[0m[0m? github.com/xiaods/k8e/pkg/containerd [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/ctr [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/daemons/agent [no test files]
[0m[0m=== RUN TestGetArgsList
[0m[32m--- PASS: TestGetArgsList (0.00s)
[0m[32mPASS
[0m[32mok github.com/xiaods/k8e/pkg/daemons/config 0.015s
[0m[0m? github.com/xiaods/k8e/pkg/daemons/control [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/daemons/control/deps [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/daemons/executor [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/data [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/datadir [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/dataverify [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/deploy [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/etcd [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/flock [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/generated/clientset/versioned [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/generated/clientset/versioned/fake [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/generated/clientset/versioned/scheme [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/generated/clientset/versioned/typed/k8e.cattle.io/v1 [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/generated/clientset/versioned/typed/k8e.cattle.io/v1/fake [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/generated/controllers/k8e.cattle.io [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/generated/controllers/k8e.cattle.io/v1 [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/generated/informers/externalversions [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/generated/informers/externalversions/internalinterfaces [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/generated/informers/externalversions/k8e.cattle.io [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/generated/informers/externalversions/k8e.cattle.io/v1 [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/generated/listers/k8e.cattle.io/v1 [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/kubectl [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/netutil [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/node [no test files]
[0m[0m=== RUN TestSetEmptyNodeConfigAnnotations
[0m[32m--- PASS: TestSetEmptyNodeConfigAnnotations (0.00s)
[0m[0m=== RUN TestSetExistingNodeConfigAnnotations
[0m[32m--- PASS: TestSetExistingNodeConfigAnnotations (0.00s)
[0m[0m=== RUN TestSetArgsWithEqual
[0m[32m--- PASS: TestSetArgsWithEqual (0.00s)
[0m[32mPASS
[0m[32mok github.com/xiaods/k8e/pkg/nodeconfig 0.005s
[0m[0m=== RUN TestAsserts
[0m[32m--- PASS: TestAsserts (0.00s)
[0m[0m=== RUN TestEnsureDelete
[0m[0m nodepassword_test.go:245: Memory Usage: Alloc=2 MB, Sys=68 MB, NumGC=0
[0m[0m nodepassword_test.go:245: Memory Usage: Alloc=33 MB, Sys=136 MB, NumGC=6
[0m[32m--- PASS: TestEnsureDelete (0.62s)
[0m[0m=== RUN TestMigrateFile
[0m[0m nodepassword_test.go:245: Memory Usage: Alloc=33 MB, Sys=136 MB, NumGC=6
[0m[0mtime="2022-07-02T13:26:07Z" level=info msg="Migrating node password entries from '/tmp/node-password-test.444946322'"
[0m[0mtime="2022-07-02T13:26:08Z" level=info msg="Migrated 10 node password entries in 1.016088574s"
[0m[0m nodepassword_test.go:245: Memory Usage: Alloc=33 MB, Sys=136 MB, NumGC=16
[0m[32m--- PASS: TestMigrateFile (1.22s)
[0m[0m=== RUN TestMigrateFileNodes
[0m[0m nodepassword_test.go:245: Memory Usage: Alloc=33 MB, Sys=136 MB, NumGC=18
[0m[0mtime="2022-07-02T13:26:08Z" level=info msg="Migrating node password entries from '/tmp/node-password-test.338543561'"
[0m[0mtime="2022-07-02T13:26:08Z" level=info msg="Migrated 3 node password entries in 303.690868ms"
[0m[0m nodepassword_test.go:245: Memory Usage: Alloc=33 MB, Sys=136 MB, NumGC=21
[0m[32m--- PASS: TestMigrateFileNodes (1.12s)
[0m[32mPASS
[0m[32mok github.com/xiaods/k8e/pkg/nodepassword 2.974s
[0m[0m? github.com/xiaods/k8e/pkg/passwd [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/rootless [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/rootlessports [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/secretsencrypt [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/server [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/servicelb [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/signals [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/static [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/token [no test files]
[0m[0m? github.com/xiaods/k8e/pkg/untar [no test files]
[0m[0m=== RUN Test_UnitParseStringSliceToIPs
[0m[0m=== RUN Test_UnitParseStringSliceToIPs/nil_string_slice_must_return_no_errors
[0m[0m=== RUN Test_UnitParseStringSliceToIPs/empty_string_slice_must_return_no_errors
[0m[0m=== RUN Test_UnitParseStringSliceToIPs/single_element_slice_with_correct_IP_must_succeed
[0m[0m=== RUN Test_UnitParseStringSliceToIPs/single_element_slice_with_correct_IP_list_must_succeed
[0m[0m=== RUN Test_UnitParseStringSliceToIPs/multi_element_slice_with_correct_IP_list_must_succeed
[0m[0m=== RUN Test_UnitParseStringSliceToIPs/single_element_slice_with_correct_IP_list_with_trailing_comma_must_fail
[0m[0m=== RUN Test_UnitParseStringSliceToIPs/single_element_slice_with_incorrect_IP_(overflow)_must_fail
[0m[0m=== RUN Test_UnitParseStringSliceToIPs/single_element_slice_with_incorrect_IP_(foreign_symbols)_must_fail
[0m[32m--- PASS: Test_UnitParseStringSliceToIPs (0.00s)
[0m[32m --- PASS: Test_UnitParseStringSliceToIPs/nil_string_slice_must_return_no_errors (0.00s)
[0m[32m --- PASS: Test_UnitParseStringSliceToIPs/empty_string_slice_must_return_no_errors (0.00s)
[0m[32m --- PASS: Test_UnitParseStringSliceToIPs/single_element_slice_with_correct_IP_must_succeed (0.00s)
[0m[32m --- PASS: Test_UnitParseStringSliceToIPs/single_element_slice_with_correct_IP_list_must_succeed (0.00s)
[0m[32m --- PASS: Test_UnitParseStringSliceToIPs/multi_element_slice_with_correct_IP_list_must_succeed (0.00s)
[0m[32m --- PASS: Test_UnitParseStringSliceToIPs/single_element_slice_with_correct_IP_list_with_trailing_comma_must_fail (0.00s)
[0m[32m --- PASS: Test_UnitParseStringSliceToIPs/single_element_slice_with_incorrect_IP_(overflow)_must_fail (0.00s)
[0m[32m --- PASS: Test_UnitParseStringSliceToIPs/single_element_slice_with_incorrect_IP_(foreign_symbols)_must_fail (0.00s)
[0m[32mPASS
[0m[32mok github.com/xiaods/k8e/pkg/util 0.012s
[0m[0m? github.com/xiaods/k8e/pkg/version [no test files]
[0m
```
Signed-off-by: Deshi Xiao xiaods@gmail.com