Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable flaky rds tests #5366

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import io.micrometer.core.instrument.Counter;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mock;
Expand Down Expand Up @@ -186,6 +187,7 @@ void test_data_file_loader_throws_exception_then_give_up_partition() {
verify(sourceCoordinator).giveUpPartition(dataFilePartition);
}

@Disabled("Flaky test, needs to be fixed")
@Test
void test_shutdown() throws InterruptedException {
DataFileScheduler objectUnderTest = createObjectUnderTest();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import io.micrometer.core.instrument.Counter;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Answers;
Expand Down Expand Up @@ -261,6 +262,7 @@ void test_given_export_partition_and_null_export_task_id_then_close_partition_wi
verify(exportS3ObjectsTotalCounter, never()).increment(1);
}

@Disabled("Flaky test, needs to be fixed")
@Test
void test_shutDown() throws InterruptedException {
lenient().when(sourceCoordinator.acquireAvailablePartition(ExportPartition.PARTITION_TYPE)).thenReturn(Optional.empty());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package org.opensearch.dataprepper.plugins.source.rds.leader;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Answers;
Expand Down Expand Up @@ -128,6 +129,7 @@ void leader_node_should_skip_init_if_initialized() throws InterruptedException {
verify(sourceCoordinator).saveProgressStateForPartition(eq(leaderPartition), any(Duration.class));
}

@Disabled("Flaky test, needs to be fixed")
@Test
void test_shutDown() {
lenient().when(sourceCoordinator.acquireAvailablePartition(LeaderPartition.PARTITION_TYPE)).thenReturn(Optional.empty());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package org.opensearch.dataprepper.plugins.source.rds.stream;

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Answers;
Expand Down Expand Up @@ -115,6 +116,7 @@ void test_given_stream_partition_then_start_stream() throws InterruptedException
verify(pluginConfigObservable).addPluginConfigObserver(any(PluginConfigObserver.class));
}

@Disabled("Flaky test, needs to be fixed")
@Test
void test_shutdown() throws InterruptedException {
lenient().when(sourceCoordinator.acquireAvailablePartition(StreamPartition.PARTITION_TYPE)).thenReturn(Optional.empty());
Expand Down
Loading