Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
c155e29
added basic models,controllers,services,repositories
teetangh Dec 12, 2023
d29e544
Update project settings and controller methods
teetangh Dec 13, 2023
407214c
Add direct connections query to AirportRepository and AirportService
teetangh Dec 13, 2023
96440d2
Update .gitignore and remove unused settings.json file. Refactor repo…
teetangh Dec 13, 2023
a460ae4
Added devtools,integration tests,model validation,
teetangh Dec 20, 2023
b557d2c
Refactor integration tests to use RestResponsePage
teetangh Dec 20, 2023
63bd9fa
updated controllers with error handling + used lombok data and builde…
teetangh Jan 4, 2024
496204d
Add Dockerfile and make repository classes final
teetangh Jan 7, 2024
722adb2
Add direct connections API endpoint and update repository
teetangh Jan 7, 2024
91a64f6
Remove unused variable in CouchbaseConfiguration.java
teetangh Jan 7, 2024
108a39d
Refactor Application class with Spring Data and Swagger documentation
teetangh Jan 7, 2024
557638a
Delete unused classes and update application.properties
teetangh Jan 7, 2024
d203c1b
Overridden Cluster connect method
teetangh Jan 8, 2024
b9a4e54
Add .iml and target/ to .gitignore, handle exceptions in test setup a…
teetangh Jan 9, 2024
a4f9116
Add summary annotations to list routes and list airports APIs
teetangh Jan 9, 2024
8df40d0
Remove unused healthcheck,index and profile
teetangh Jan 9, 2024
ec1c651
Docker finally working
teetangh Jan 9, 2024
bb27e97
Update GitHub Actions workflow and Couchbase configuration
teetangh Jan 10, 2024
ea4a31e
Update GitHub Actions workflow to include JDK setup and cache configu…
teetangh Jan 10, 2024
7709c4e
Update package installation commands
teetangh Jan 10, 2024
d1c8190
Replace secrets in application.properties
teetangh Jan 10, 2024
1a3ceaa
Refactor integration tests to use dynamic base URI
teetangh Jan 10, 2024
30a7790
Update Gradle source and target compatibility to 1.8
teetangh Jan 10, 2024
2456822
updated gradle commands
teetangh Jan 10, 2024
ce972bf
Update secrets in application.properties
teetangh Jan 10, 2024
7bf04d4
Update secrets in application.properties
teetangh Jan 10, 2024
9deb19f
Update secrets in application.properties file
teetangh Jan 10, 2024
2753a13
update gradle secrets
teetangh Jan 10, 2024
f8ec5a6
Update secrets in application.properties file
teetangh Jan 10, 2024
8e90d87
Refactor test setup and teardown methods
teetangh Jan 10, 2024
ffc20fa
update github workflow yaml configuration and secrets
teetangh Jan 10, 2024
7a5b4a6
Update secrets in application.properties
teetangh Jan 10, 2024
40a1999
Refactor test classes and add logging statements
teetangh Jan 10, 2024
f6cff34
Refactor model classes and update route integration test
teetangh Jan 10, 2024
3745a33
Add ResourceAccessException to catch block in integration tests
teetangh Jan 11, 2024
e2b6a7c
updated Readme
teetangh Jan 17, 2024
0b0a041
upgraded spring boot and swagger from 2 to 3, fixed readme and added …
teetangh Feb 9, 2024
aa6d0b5
upgraded gradle version and fixed repos
teetangh Feb 9, 2024
c84ef25
Remove unnecessary files + Add Swagger Redirect Controller + Update A…
teetangh Feb 19, 2024
b42ecd5
added oprtional parameters and examples, description + readme changes…
teetangh Feb 23, 2024
ee12529
Update Couchbase connection details
teetangh Feb 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 33 additions & 12 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,50 @@
name: Tests

on:
push:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "0 */6 * * *"

jobs:
run_tests:
name: Run Tests
runs-on: ubuntu-latest
env:
DB_CONN_STR: ${{ vars.DB_CONN_STR }}
DB_USERNAME: ${{ vars.DB_USERNAME }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
strategy:
matrix:
java-version: ["17", "21"]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
- name: Update repositories
run: |
sudo apt update || echo "apt-update failed" # && apt -y upgrade

- name: Checkout ${{ github.event.repository.name }}
uses: actions/checkout@v4

- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
cache: gradle
- id: run
java-version: ${{ matrix.java-version }}
distribution: "adopt"
cache: "gradle"

- name: Run Gradle Tests
id: run
run: |
./gradlew --no-daemon test
chmod +x gradlew
./gradlew clean test --info --stacktrace

- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@v1
with:
status: ${{ job.status }}
notify_when: 'failure'
notify_when: "failure"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
*.iml

.gradle
/build/
build/
target/
out/
.vscode/

# Default ignored files
shelf/
.idea/
/workspace.xml
.idea_modules/
sonarlint/

# Ignore Gradle GUI config
gradle-app.setting
Expand Down
19 changes: 0 additions & 19 deletions .gitpod.Dockerfile

This file was deleted.

33 changes: 0 additions & 33 deletions .gitpod.yml

This file was deleted.

29 changes: 29 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Get latest java
FROM eclipse-temurin:17-jdk-jammy AS build

# Set the working directory
WORKDIR /app

# Copy the build.gradle and settings.gradle files
COPY build.gradle .
COPY settings.gradle .
COPY gradlew .
COPY gradle ./gradle

# Copy the src directory
COPY src ./src

# Build the application without running the tests and with stacktrace
RUN ./gradlew clean build -x test --stacktrace

# Expose port 8080
EXPOSE 8080

# Run the application
ENTRYPOINT ["java","-jar","/app/build/libs/java-springdata-quickstart-0.0.1-SNAPSHOT.jar"]

# Build the image
# docker build -t java-springdata-quickstart .

# Run the container
# docker run -d --name springdata-container -p 9440:8080 java-springdata-quickstart -e DB_CONN_STR=<connection_string> -e DB_USERNAME=<username> -e DB_PASSWORD=<password>
Loading