Modified test classes

added gitignore for testng generated test-output folder
This commit is contained in:
Amit Kumar Nandi 2024-02-22 03:40:45 +05:30
parent fb8e97c81d
commit 11a0b0277a
4 changed files with 3 additions and 36 deletions

View file

@ -26,7 +26,7 @@ WORKDIR /URLShortener
# Example real world db access url : mysql://127.0.0.1:3306
# Example Docker db access url : mysql://database:3306 (container name is datbase)
# Change the database ip in app config to the database docker container name/service
RUN sed -i "s|database.ip=127.0.0.1|database.ip=db |g" src/main/resources/application.properties
RUN sed -i "s|database.ip=127.0.0.1|database.ip=database |g" src/main/resources/application.properties
# Build the application
RUN mvn clean install

View file

@ -4,7 +4,7 @@ volumes:
data:
services:
db:
database:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: 1234qwer
@ -39,5 +39,5 @@ services:
ports:
- "8080:8080"
depends_on:
- db
- database

View file

@ -1,21 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: shortener-deployment
labels:
app: shortener
spec:
replicas: 3 # Adjust as needed
selector:
matchLabels:
app: shortener
template:
metadata:
labels:
app: shortener
spec:
containers:
- name: shortener
image: nmpl/shortener:latest
ports:
- containerPort: 8080

View file

@ -1,12 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: shortener-service
spec:
selector:
app: shortener
ports:
- protocol: TCP
port: 8080
targetPort: 8080
type: LoadBalancer