Build & Test
Prerequisites
This section assumes that CDK is installed and my-connector
project has been generated.
Navigate to my-connector
project directory and run build
$ cdk build
...
Compiling my-connector v0.1.0 (~/cdk/my-connector)
Finished release [optimized] target(s) in 1m 12s
The build process generated a binary for your custom connector. We are now ready to test it.
If the connector builds successfully, it’s time to start an instance with cdk test
:
The --config <PATH>
argument is required. It is a path to the configuration file in YAML format.
Generating the project with cdk generate
should have created a sample config for you named sample-config.yaml
$ cdk test --config sample-config.yaml
Finished release [optimized] target(s) in 0.16s
Connector runs with process id: 80380
Starting my-connector source connector with CustomConfig { foo: "bar" }
SmartConnector output will be redirected to the current terminal output.
To stop running SmartConnector in test mode, press Ctrl+C.