mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-16 15:34:11 +00:00
PMM-11406 Test refactor.
This commit is contained in:
@@ -58,9 +58,7 @@ func TestGetHostInfoResult(t *testing.T) {
|
|||||||
|
|
||||||
host, err := getHostInfo(ctx, client)
|
host, err := getHostInfo(ctx, client)
|
||||||
require.NoError(t, err, "getHostInfo error")
|
require.NoError(t, err, "getHostInfo error")
|
||||||
|
require.NotEmpty(t, host)
|
||||||
notEmpty := host.ProcessName != "" || host.Version != "" || host.ProcPath != "" || host.ProcUserName != "" || !host.ProcCreateTime.IsZero()
|
|
||||||
require.True(t, notEmpty, "At least one field in host should not be empty to ensure we got some data")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestClusterWideInfo(t *testing.T) {
|
func TestClusterWideInfo(t *testing.T) {
|
||||||
|
Reference in New Issue
Block a user