81e7223560
Text Extraction * bases * go * splitting * structure * movetoasync * movetoasync * settinguptrigger * reorder * storevent * standardisepollingvalidation * unittests * fixlint * fixlint * awscfg * generatesample * followthrough * tests * clena * store * externalidcleanup * clientid * local * baseunittests * putobjecttests * tests
33 lines
681 B
Go
33 lines
681 B
Go
package endtoend_test
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"queryorchestration/internal/test"
|
|
queryapi "queryorchestration/pkg/queryAPI"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestExportService(t *testing.T) {
|
|
ctx := context.Background()
|
|
|
|
cfg := &Config{}
|
|
test.SetCfgProvider(t, cfg)
|
|
|
|
c, cleanup := test.CreateAPINetwork(t, ctx, cfg, &test.ServiceNetworkConfig{
|
|
API: test.QueryAPI,
|
|
})
|
|
defer cleanup()
|
|
|
|
client, err := queryapi.NewClientWithResponses(c.URI)
|
|
require.NoError(t, err)
|
|
|
|
idRes, err := client.TriggerExportWithResponse(ctx, "CLIENT_ID", queryapi.ExportTrigger{})
|
|
require.NoError(t, err)
|
|
assert.NotNil(t, idRes)
|
|
}
|