metadata-service/schema-registry-servlet/scripts/README.md
This script extracts the first message from multiple Kafka topics to create binary test fixtures for integration testing.
cd metadata-service/schema-registry-servlet/scripts
chmod +x extract_kafka_messages.sh
./extract_kafka_messages.sh
Extracts messages from these topics:
DataHubUpgradeHistory_v1FailedMetadataChangeProposal_v1MetadataChangeLog_Timeseries_v1MetadataChangeLog_Versioned_v1MetadataChangeProposal_v1Creates binary fixtures in ../src/test/resources/v1/:
{TopicName}_test_fixture.bin for each topic with messagesShows message details:
brew install kcat on macOS)localhost:9092http://localhost:8080/schema-registry/apiThe script will create binary fixture files that can be used in your integration tests to verify raw message handling capabilities.