In the example below, we will be downloading a certificate from an Amazon MQ Broker. In most cases, the latest Java version has the Amazon certificates so you don’t need to do this. Updating to the latest Java RunTime is sufficient and you will have Amazon certificates in the default Java keystore. However, the followingContinueContinue reading “Retrieve Certificates and Generate a JKS (Java KeyStore)”
Category Archives: Uncategorized
Integration Testing with Springboot, Embedded Mongo, MockMVC
If you have a REST API with MongoDB as the persistence layer, you will want to write Integration Tests to validate the overall logic, and for such you can use either Embedded MongoDB or a MongoDB Test Container. For the example below, we will be using flapdoodle-oss embedded mongo which has support in Springboot Requirements:ContinueContinue reading “Integration Testing with Springboot, Embedded Mongo, MockMVC”
Adding a new store to Gopass in Windows
In our development environment, we have to work with Windows, and we are using Gopass. gopass is a password manager for the command line written in Go. It supports all major operating systems (Linux, MacOS, BSD) as well as Windows.We have to work with multiple password stores, so we can have dev, qa, and prodContinueContinue reading “Adding a new store to Gopass in Windows”
Deleting Elastic Search Records older than X number of Days
Requirements: We need to be able to delete all the records for a specific index, that match a given timestamp. How? We will use the Java ElasticSearch Client Lets do it: Add the proper mvn dependencies to your pom.xml <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>7.1.1</version> </dependency> <dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>elasticsearch-rest-high-level-client</artifactId> <version>7.10.1</version> </dependency> We will write code in aContinueContinue reading “Deleting Elastic Search Records older than X number of Days”
Working with Multiple Development Environments
Requirements: Switch between different JDKs, MVN Versions, and Docker hubs on call How? We will use Aliases Prerequisites: Cygwin installed on windows (You can also do this on Linux – though you wont need Cygwin then) Lets do it: Install multiple JDK versions, Install your different MVN versions Create 2 different settings.xml file. Each ofContinueContinue reading “Working with Multiple Development Environments”