github.com/newrelic/newrelic-client-go@v1.1.0/pkg/synthetics/monitor_locations_integration_test.go (about)

     1  //go:build integration
     2  // +build integration
     3  
     4  package synthetics
     5  
     6  import (
     7  	"testing"
     8  
     9  	"github.com/stretchr/testify/require"
    10  
    11  	mock "github.com/newrelic/newrelic-client-go/pkg/testhelpers"
    12  )
    13  
    14  func TestIntegrationGetMonitorLocations(t *testing.T) {
    15  	t.Parallel()
    16  
    17  	tc := mock.NewIntegrationTestConfig(t)
    18  
    19  	synthetics := New(tc)
    20  
    21  	locations, err := synthetics.GetMonitorLocations()
    22  	require.NoError(t, err)
    23  	require.Greater(t, len(locations), 0)
    24  }