Skip to content

Commit

Permalink
pipeline name missing from integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Maxwell Brown <[email protected]>
  • Loading branch information
Galactus22625 committed Dec 19, 2024
1 parent 8450dfe commit fcbbaf6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public class OpenSearchSinkIT {
private PluginConfigObservable pluginConfigObservable;

public OpenSearchSink createObjectUnderTest(OpenSearchSinkConfig openSearchSinkConfig, boolean doInitialize) {
when(pipelineDescription.getPipelineName()).thenReturn(PIPELINE_NAME);
OpenSearchSink sink = new OpenSearchSink(
pluginSetting, null, expressionEvaluator, awsCredentialsSupplier, pipelineDescription, pluginConfigObservable, openSearchSinkConfig);
if (doInitialize) {
Expand All @@ -163,6 +164,7 @@ public OpenSearchSink createObjectUnderTestWithSinkContext(OpenSearchSinkConfig
sinkContext = mock(SinkContext.class);
testTagsTargetKey = RandomStringUtils.randomAlphabetic(5);
when(sinkContext.getTagsTargetKey()).thenReturn(testTagsTargetKey);
when(pipelineDescription.getPipelineName()).thenReturn(PIPELINE_NAME);
OpenSearchSink sink = new OpenSearchSink(
pluginSetting, null, expressionEvaluator, awsCredentialsSupplier, pipelineDescription, pluginConfigObservable, openSearchSinkConfig);
if (doInitialize) {
Expand Down

0 comments on commit fcbbaf6

Please sign in to comment.