|
4 | 4 | import static com.linkedin.venice.vpj.VenicePushJobConstants.D2_ZK_HOSTS_PREFIX; |
5 | 5 | import static com.linkedin.venice.vpj.VenicePushJobConstants.KAFKA_INPUT_BROKER_URL; |
6 | 6 | import static com.linkedin.venice.vpj.VenicePushJobConstants.KAFKA_INPUT_TOPIC; |
7 | | -import static com.linkedin.venice.vpj.VenicePushJobConstants.REWIND_EPOCH_TIME_IN_SECONDS_OVERRIDE; |
8 | 7 | import static com.linkedin.venice.vpj.VenicePushJobConstants.SOURCE_GRID_FABRIC; |
9 | 8 | import static com.linkedin.venice.vpj.VenicePushJobConstants.SOURCE_KAFKA; |
10 | 9 | import static com.linkedin.venice.vpj.VenicePushJobConstants.SSL_KEY_PASSWORD_PROPERTY_NAME; |
@@ -65,28 +64,6 @@ public void testNoUserProvidedTopicNameAndSingleColoVersion() { |
65 | 64 | } |
66 | 65 | } |
67 | 66 |
|
68 | | - @Test |
69 | | - public void testUserProvidedEpochRewind() { |
70 | | - final int singleColoCurrentVersion = 1; |
71 | | - ControllerClient controllerClient = mock(ControllerClient.class); |
72 | | - Map<String, Integer> coloToVersionMap = Collections.emptyMap(); |
73 | | - StoreResponse storeResponse = |
74 | | - getMockHybridStoreResponse(coloToVersionMap, singleColoCurrentVersion, BufferReplayPolicy.REWIND_FROM_SOP); |
75 | | - when(controllerClient.getStore(STORE_NAME)).thenReturn(storeResponse); |
76 | | - RepushInfoResponse repushInfo = getMockRepushResponse(1); |
77 | | - when(controllerClient.getRepushInfo(STORE_NAME, Optional.empty())).thenReturn(repushInfo); |
78 | | - configureClusterDiscoveryControllerClient(controllerClient); |
79 | | - Map<String, String> overrideProperties = new HashMap<>(); |
80 | | - overrideProperties.put(VENICE_STORE_NAME_PROP, STORE_NAME); |
81 | | - overrideProperties.put(REWIND_EPOCH_TIME_IN_SECONDS_OVERRIDE, "1637016606"); |
82 | | - try (VenicePushJob venicePushJob = new VenicePushJob(JOB_ID, getJobProperties(overrideProperties))) { |
83 | | - venicePushJob.setControllerClient(controllerClient); |
84 | | - venicePushJob.initKIFRepushDetails(); |
85 | | - venicePushJob.setControllerClient(controllerClient); |
86 | | - venicePushJob.validateRemoteHybridSettings(); |
87 | | - } |
88 | | - } |
89 | | - |
90 | 67 | @Test |
91 | 68 | public void testNoUserProvidedTopicNameAndMultiColoVersion() { |
92 | 69 | final int multipleColoCurrentVersion = 1; |
|
0 commit comments