Techiio-author
Started by Bell GrantNov 5, 2021

Open
Options or alternatives to Testcontainers for Spring Boot integration testing in Kubernetes?

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

I want to set up integration exams in a spring boot project with the use of Postgres, Redis, and elastic search (sooner or later also Kafka may be brought). To date I've observed options:

1. H2 database and embedded Redis. This will work however we're using some Postgres unique features in a number of our queries so this would now not permit us to cover all the instances.

2. Test containers. This appeared ideal but apparently, it's not viable to run the ones in the pipeline because we are the use of Kubernetes

The third choice requires a few manual paintings. It is simply possible to make a docker-compose file with all the services wished for trying out for nearby utilization and allow infrastructure crew to build packing containers the way they need for walking checks in a pipeline. But in this manner, a developer could ought to manually begin/forestall those containers while running checks regionally.

Is there a way to automate this manner? Or any options just like test containers that might work in Kubernetes? Or perhaps there is a way to run test containers in Kubernetes?

0 Replies

You must be Logged in to reply
Trending Technologies
15
Software91
DevOps48
Frontend Development24
Backend Development20
Server Administration17
Linux Administration28
Data Center24
Sentry24
Terraform23
Ansible83
Docker70
Penetration Testing16
Kubernetes21
NGINX20
JenkinsX17
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance