2016-08-09 10:12:52 +00:00
|
|
|
package spark
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/influxdata/telegraf/testutil"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestSparkMeasurements(t *testing.T) {
|
|
|
|
if testing.Short() {
|
|
|
|
t.Skip("Skipping integration test in short mode")
|
|
|
|
}
|
|
|
|
|
|
|
|
a := &Spark{
|
2016-08-09 14:32:37 +00:00
|
|
|
yarn_server: testutil.GetLocalHost() + ":8088",
|
2016-08-09 10:12:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var acc testutil.Accumulator
|
|
|
|
|
|
|
|
err := a.Gather(&acc)
|
|
|
|
require.NoError(t, err)
|
|
|
|
}
|