simplesteph / kafka-connect-github-source

Get a stream of issues and pull requests for your chosen GitHub repository
https://links.datacumulus.com/kafka-connect-coupon
MIT License
447 stars 190 forks source link

test case failing in GitHubSourceTaskTest.java #16

Open BrainsOfSteel opened 3 years ago

alonsoir commented 2 years ago

It should work if you use this properties in file GitHubAPIHttpClient

public static final String X_RATELIMIT_LIMIT_HEADER="X-RateLimit-Limit"; public static final String X_RATELIMIT_REMAINING_HEADER="X-RateLimit-Remaining"; public static final String X_RATELIMIT_RESET_HEADER="X-RateLimit-Reset";

` Before

public static final String X_RATELIMIT_LIMIT_HEADER="X-Ratelimit-Limit"; public static final String X_RATELIMIT_REMAINING_HEADER="X-Ratelimit-Remaining"; public static final String X_RATELIMIT_RESET_HEADER="X-Ratelimit-Reset";

`

Results :

Tests run: 13, Failures: 0, Errors: 0, Skipped: 0

[INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ kafka-connect-github-source --- [INFO] Building jar: /Users/aironman/git/alonsoir.github.io/kafka course Stephane/kafka-connect-github-source/target/kafka-connect-github-source-1.1.jar [INFO] [INFO] --- maven-assembly-plugin:2.5.3:single (make-assembly) @ kafka-connect-github-source --- [INFO] Reading assembly descriptor: src/main/assembly/package.xml [WARNING] The following patterns were never triggered in this artifact exclusion filter: o 'org.apache.kafka:connect-api'

[INFO] Copying files to /Users/aironman/git/alonsoir.github.io/kafka course Stephane/kafka-connect-github-source/target/kafka-connect-github-source-1.1-package [WARNING] Assembly file: /Users/aironman/git/alonsoir.github.io/kafka course Stephane/kafka-connect-github-source/target/kafka-connect-github-source-1.1-package is not a regular file (it may be a directory). It cannot be attached to the project build for installation or deployment. [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ kafka-connect-github-source --- [INFO] Installing /Users/aironman/git/alonsoir.github.io/kafka course Stephane/kafka-connect-github-source/target/kafka-connect-github-source-1.1.jar to /Users/aironman/.m2/repository/com/simplesteph/kafka/kafka-connect-github-source/1.1/kafka-connect-github-source-1.1.jar [INFO] Installing /Users/aironman/git/alonsoir.github.io/kafka course Stephane/kafka-connect-github-source/pom.xml to /Users/aironman/.m2/repository/com/simplesteph/kafka/kafka-connect-github-source/1.1/kafka-connect-github-source-1.1.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.606 s [INFO] Finished at: 2022-02-17T11:28:33+01:00 [INFO] ------------------------------------------------------------------------ `