Github user tony810430 commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2916#discussion_r90420204
  
    --- Diff: 
flink-streaming-connectors/flink-connector-kinesis/src/test/java/org/apache/flink/streaming/connectors/kinesis/FlinkKinesisConsumerTest.java
 ---
    @@ -145,6 +145,39 @@ public void 
testUnrecognizableStreamInitPositionTypeInConfig() {
        }
     
        @Test
    +   public void 
testStreamInitPositionTypeSetToAtTimestampButNoInitTimestampSetInConfig() {
    +           exception.expect(IllegalArgumentException.class);
    +           exception.expectMessage("Please set value for initial timestamp 
('"
    +                   + ConsumerConfigConstants.STREAM_INITIAL_TIMESTAMP + 
"') when using AT_TIMESTAMP initial position.");
    +
    +           Properties testConfig = new Properties();
    +           testConfig.setProperty(ConsumerConfigConstants.AWS_REGION, 
"us-east-1");
    +           
testConfig.setProperty(ConsumerConfigConstants.AWS_CREDENTIALS_PROVIDER, 
"BASIC");
    +           
testConfig.setProperty(ConsumerConfigConstants.AWS_ACCESS_KEY_ID, 
"accessKeyId");
    +           
testConfig.setProperty(ConsumerConfigConstants.AWS_SECRET_ACCESS_KEY, 
"secretKey");
    +           
testConfig.setProperty(ConsumerConfigConstants.STREAM_INITIAL_POSITION, 
"AT_TIMESTAMP");
    +
    +           KinesisConfigUtil.validateConsumerConfiguration(testConfig);
    +   }
    +
    +   @Test
    +   public void testUnparsableDateForInitialTimestampInConfig() {
    +           exception.expect(IllegalArgumentException.class);
    +           exception.expectMessage("Invalid value given for initial 
timestamp for AT_TIMESTAMP initial position in stream. "
    --- End diff --
    
    ok


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to