How to Create Integration Test for Spring Kafka Listener

I have one MicroService who sends to another microservice message that should consume. So, the kafka configs works, and everything works, but I need to create one intregration test for this code, and I have no idea how. My KafkaConsumer.Class anothed with component anottation: private static final Logger logger = LoggerFactory.getLogger(KafkaReactionConsumerMessageComponent.class); private final ReactionsService reactionsService;…

Details

Why geth switch to full node when starting

I start my geth with –syncmode “fast” but I get this warning: WARN [01-21|14:47:59.148] Switch sync mode from fast sync to full sync And my geth will start with full sync mode with this warning. Any solution for this? OS version: CentOS Linux 7 Full command: $ go-ethereum/build/bin/geth –syncmode “fast” –rpc –rpcapi db,eth,net,web3 –cache=16384 –rpcport…

Details

Can not change Mysql Server 8 root password Kubuntu 19.10

I have a fresh installation of Kubuntu 19.10 and Mysql Server 8.0.18-0ubuntu0.19.10.1 I tried to start mysql with command below: sudo mysqld –init-file=/home/da/dainit & I’ve an init file under /home/da/dainit contains and tried varied of choices like ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘abc’; or UPDATE mysql.user SET authentication_string = PASSWORD(‘[email protected]’) WHERE User = ‘root’ AND…

Details