Validation Best Practices

  1. Validate JSON Before Execution:
    # Use jq to validate
       jq . < create-destination.json > /prod/null && echo "Valid JSON"
  2. Test with Non-Production Values First:
    • Create in dev environment
    • Verify message format
    • Test connector connectivity
    • Then deploy to production
  3. Check Dependencies:
    # Before creating, verify:
       ./CliTool.sh get-all-kafka-cluster-names | grep "my-cluster"
       ./CliTool.sh get-all-datasource-names-for-logged-in-user | grep "my-datasource"
       ./CliTool.sh get-all-message-templates | grep "Template ID: 1"