blob: 68c38385e0d3e9595ce54cd35ac312e13fc76254 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// SPDX-License-Identifier: GPL-3.0-or-later
package geth
import (
"os"
"testing"
"github.com/netdata/netdata/go/go.d.plugin/agent/module"
"github.com/stretchr/testify/require"
)
var (
dataConfigJSON, _ = os.ReadFile("testdata/config.json")
dataConfigYAML, _ = os.ReadFile("testdata/config.yaml")
)
func Test_testDataIsValid(t *testing.T) {
for name, data := range map[string][]byte{
"dataConfigJSON": dataConfigJSON,
"dataConfigYAML": dataConfigYAML,
} {
require.NotNil(t, data, name)
}
}
func TestGeth_ConfigurationSerialize(t *testing.T) {
module.TestConfigurationSerialize(t, &Geth{}, dataConfigJSON, dataConfigYAML)
}
|