Polish Kinesis binder following previous commit
This commit is contained in:
@@ -215,6 +215,11 @@ public class KinesisMessageChannelBinder extends
|
||||
this.evaluationContext = ExpressionUtils.createStandardEvaluationContext(getBeanFactory());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getBinderIdentity() {
|
||||
return "kinesis-" + super.getBinderIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected MessageHandler createProducerMessageHandler(ProducerDestination destination,
|
||||
ExtendedProducerProperties<KinesisProducerProperties> producerProperties,
|
||||
|
||||
@@ -264,6 +264,7 @@ public class KinesisBinderTests extends
|
||||
|
||||
ExtendedProducerProperties<KinesisProducerProperties> producerProps = createProducerProperties();
|
||||
producerProps.setErrorChannelEnabled(true);
|
||||
producerProps.populateBindingName("foobar");
|
||||
DirectChannel moduleOutputChannel = createBindableChannel("output",
|
||||
createProducerBindingProperties(producerProps));
|
||||
Binding<MessageChannel> producerBinding = binder.bindProducer("ec.0",
|
||||
@@ -271,7 +272,8 @@ public class KinesisBinderTests extends
|
||||
|
||||
ApplicationContext applicationContext = TestUtils.getPropertyValue(
|
||||
binder.getBinder(), "applicationContext", ApplicationContext.class);
|
||||
SubscribableChannel ec = applicationContext.getBean("ec.0.errors",
|
||||
String s = testBinder.getBinder().getBinderIdentity() + "." + producerProps.getBindingName() + ".errors";
|
||||
SubscribableChannel ec = applicationContext.getBean(s,
|
||||
SubscribableChannel.class);
|
||||
final AtomicReference<Message<?>> errorMessage = new AtomicReference<>();
|
||||
final CountDownLatch latch = new CountDownLatch(1);
|
||||
|
||||
@@ -24,8 +24,6 @@ import com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsyncClientBuilder;
|
||||
import com.amazonaws.services.kinesis.AmazonKinesisAsync;
|
||||
import com.amazonaws.services.kinesis.AmazonKinesisAsyncClientBuilder;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.condition.DisabledOnOs;
|
||||
import org.junit.jupiter.api.condition.OS;
|
||||
import org.testcontainers.containers.localstack.LocalStackContainer;
|
||||
import org.testcontainers.junit.jupiter.Testcontainers;
|
||||
import org.testcontainers.utility.DockerImageName;
|
||||
@@ -37,7 +35,6 @@ import org.testcontainers.utility.DockerImageName;
|
||||
* @since 4.0
|
||||
*/
|
||||
@Testcontainers(disabledWithoutDocker = true)
|
||||
@DisabledOnOs(OS.MAC)
|
||||
public interface LocalstackContainerTest {
|
||||
|
||||
LocalStackContainer LOCAL_STACK_CONTAINER =
|
||||
|
||||
@@ -266,7 +266,6 @@ public class RabbitBinderTests extends
|
||||
final Message<?> message = MessageBuilder.withPayload("bad".getBytes())
|
||||
.setHeader(MessageHeaders.CONTENT_TYPE, "foo/bar").build();
|
||||
String s = testBinder.getBinder().getBinderIdentity() + ".output.errors";
|
||||
//return this.getBinderIdentity() + "-" + this.hashCode() + "." + bindingName + ".errors";
|
||||
SubscribableChannel ec = binder.getApplicationContext().getBean(s,
|
||||
SubscribableChannel.class);
|
||||
final AtomicReference<Message<?>> errorMessage = new AtomicReference<>();
|
||||
|
||||
11
buildKinesisBinder.sh
Executable file
11
buildKinesisBinder.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$#" -eq 1 ]; then
|
||||
ARGVALUE=$1
|
||||
if [[ $ARGVALUE == *"skipTest"* ]]; then
|
||||
echo "Skippping Tests"
|
||||
./mvnw clean install -f binders/kinesis-binder/pom.xml -DskipTests
|
||||
fi
|
||||
else
|
||||
./mvnw clean install -f binders/kinesis-binder/pom.xml
|
||||
fi
|
||||
Reference in New Issue
Block a user