Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 2.28 KB

DEVELOPER_WALKTHROUGH.MD

File metadata and controls

63 lines (44 loc) · 2.28 KB

Developer Walkthrough and Project Setup

Prerequisites

  • Git
  • Bash shell (tested on Github Codespaces, Mac, Ubuntu, Windows with WSL2)
    • Will not work in Cloud Shell or WSL1
  • Docker (download)
  • Java 11+ (download)
  • Maven (download)
  • Powershell (optional) (download)

Setup Locally

  • Clone the Github repo microsoft/kafka-connect-cosmosdb GitHub repository.
git clone https://github.com/microsoft/kafka-connect-cosmosdb.git
  • Configure IDE to use a JDK by one of the following way.
  • Download maven dependencies.

Setup in Dev Container using codespaces

  • Open the Github repo in a web browser
  • Click on the Code button
  • Click on Open with Codespaces
  • Click on the New codespace button
  • Codespaces will display a Creation Log window
    • You may close this window once all the steps have completed
  • Open a terminal in Codespaces
    • Use the command palette or press ctl + `
    • You can also click on the Menu button in the upper left corner
      • choose view
      • choose terminal

Execute Unit Tests

Navigate to root project directory and execute unit tests

cd kafka-connect-cosmosdb
mvn clean test

Execute Integration Tests

Integration tests are being reworked. These will be added soon.

Configure Control Center, CosmosDB & validate Kafka Connectors