Implementation
Basics
Remember a connector could be a
sourceordestinationone. Each will need a set of configuration files (explained below) exported toastro
Steps
In your connector implement this interface: https://github.com/motiv-labs/go-test-runner-destination/blob/main/destination-connector-tester.go
Create a binary and place it under the proper folder under impulse, for example:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -mod=mod -a -installsuffix cgo -o ../impulse/docker-tools/compose-template/connector-test/dotcms/destination/testRunnerDestination ./cmd/test-runner-destinationProvide the configuration files under
astro. For example fordotCMS+source(Github Link) the path would look like this:impulse/docker-tools/compose-template/connector-test/dotcms/sourceastro-config-extension.conf: Property file for your testing binary.
config.json: Contains specific properties for each of the
ks-minandks-maxtypes of testing.content-mapping.json (optional): Content Mapper configuration, in order to work, the sync needs to have this file in both
sourceanddestination.docker-compose.yml: Docker config for the tested system including the
transformerandadapter.ks-max.sh: curl commands to config system endpoints, taxis aand adapters for type
ks-maxks-min.sh: curl commands to config system endpoints, taxis aand adapters for type
ks-min
Last updated
Was this helpful?