Commit Graph

132 Commits

Author SHA1 Message Date
c78f2713c3 Fix LazyInitializationException and update hostname format 2026-02-16 00:38:23 +05:30
3b43039a29 Add Request import and simplify createTestRequest method 2026-02-15 22:37:19 +05:30
09e631c871 Restore removed tests for approve/reject endpoints 2026-02-15 22:34:21 +05:30
9a25495d9c Remove pagination and filtering from /requests endpoint 2026-02-15 22:06:07 +05:30
7e3882febf Add PaginationRequest DTO for /requests endpoint 2026-02-15 20:51:52 +05:30
6c496c8c27 Fix broken findByCfTunnelId method - property doesn't exist on Tunnel entity 2026-02-15 20:23:29 +05:30
927ce563c5 Set ddl-auto to create-drop for test and prod profiles 2026-02-15 20:07:41 +05:30
7f7b90df80 Add approve/reject mapping requests API with unit tests
- Add Protocol enum to Mapping entity for HTTP, HTTPS, TCP, SSH
- Add TunnelsResponse and TunnelResult models for typed API responses
- Add ExternalServiceException for Cloudflare API errors
- Add approve and reject endpoints for mapping requests
- Add GET /requests endpoint with pagination and status filtering
- Refactor API paths to use 'configured' and 'configure' terminology
- Add comprehensive unit tests for all new endpoints
- Add service layer tests for new methods
2026-02-15 20:00:34 +05:30
71161a4da1 Changing API design and making tests compatible 2026-01-28 00:21:13 +05:30
c1ea9c4197 Fix database URL configuration for docker-compose compatibility
- Hardcode PostgreSQL connection URL to match docker service name 'postgres'
- Remove DB_URL environment variable dependency that was causing startup failures
- Keep username/password as environment variables for flexibility
2026-01-23 23:23:39 +05:30
e9675db11a Remove fork sync job from test build workflow
- Remove sync_forks job that was causing issues
- Fork syncing doesn't work reliably in current setup
- Keep core build and deployment functionality
2026-01-23 21:37:22 +05:30
b8b0a4bf30 Remove environment variable defaults and align with docker-compose
- Remove default values from database environment variables
- Use POSTGRES_USERNAME/PASSWORD to match docker-compose.yaml
- Use DB_URL without default to ensure explicit configuration
2026-01-23 21:22:16 +05:30
c0ae476beb Configure PostgreSQL database settings for test and production profiles
- Add PostgreSQL datasource configuration for test and prod profiles
- Use environment-specific database URL, username, and password variables
- Set hibernate.ddl-auto=update for both profiles
- Enable SQL logging in test, disable in production
- Replace H2 in-memory database with PostgreSQL for consistency
2026-01-23 21:16:56 +05:30
acaef2e704 Merge branch 'test' into feature/swagger-oauth-env-config 2026-01-22 21:36:32 +00:00
d2d8e74ba9 Add OAuth2 security configuration to Swagger UI and clean up unused redirects
- Configure OpenAPI with OAuth2 authorization code flow and required scopes
- Add security scheme and requirements for API documentation
- Remove unused swagger redirect methods from HomeController
- Comment out swagger endpoint permissions in SecurityConfig
2026-01-23 02:16:45 +05:30
c8a25cf438 Configure springdoc swagger oauth client-id from environment variable
- Update application.properties to use SWAGGER_OAUTH_CLIENT_ID env var
- Add SWAGGER_OAUTH_CLIENT_ID to docker-compose.yaml environment
- Add SWAGGER_OAUTH_CLIENT_ID to IntelliJ run configuration
2026-01-23 02:11:32 +05:30
cfe40735e6 Hithomelabs/HomeLabDocker#33 making ci and integration tests initialize Embedded H2 database, fixing integration test 2026-01-14 18:19:39 +00:00
79ffd41add Hithomelabs/HomeLabDocker#33 making ci and integration tests initialize Embedded H2 database, fixing integration test 2026-01-14 23:24:39 +05:30
742bcef858 ISSUE-33 (#96) (#98)
## Description
- db integration

Co-authored-by: hitanshu310 <hitanshu98@gmail.com>
Co-authored-by: = <=>
Co-authored-by: Kruti Shah <kruti@logiqids.com>
Reviewed-on: Hithomelabs/CFTunnels#96
Co-authored-by: Kruti Shah <krutis0201@gmail.com>
Co-committed-by: Kruti Shah <krutis0201@gmail.com>

Reviewed-on: Hithomelabs/CFTunnels#98
Reviewed-by: hitanshu <hitanshu98@gmail.com>
Co-authored-by: Kruti Shah <krutis0201@gmail.com>
Co-committed-by: Kruti Shah <krutis0201@gmail.com>
2026-01-14 17:37:15 +00:00
ffe151b59c ISSUE-33 (#96)
## Description
- db integration

Co-authored-by: hitanshu310 <hitanshu98@gmail.com>
Co-authored-by: = <=>
Co-authored-by: Kruti Shah <kruti@logiqids.com>
Reviewed-on: Hithomelabs/CFTunnels#96
Co-authored-by: Kruti Shah <krutis0201@gmail.com>
Co-committed-by: Kruti Shah <krutis0201@gmail.com>
2026-01-14 17:26:26 +00:00
063d66b987 ISSUE-44: Hithomelabs/HomeLabDocker#44 Latest pull 2025-11-16 19:59:12 +05:30
f469ff33a7 ISSUE-44: Hithomelabs/HomeLabDocker#44 bug-fix 2025-11-16 19:49:58 +05:30
6db68ad36f ISSUE-44: Hithomelabs/HomeLabDocker#44 run integration tests on push to main and changing interval to 12 hours 2025-11-16 19:47:08 +05:30
43416d4bc7 ISSUE-44: Hithomelabs/HomeLabDocker#44 adding more tests 2025-11-16 13:38:33 +00:00
b30ae7cdbf ISSUE-44: Hithomelabs/HomeLabDocker#44 adding more tests 2025-11-16 18:59:06 +05:30
f36d807731 ISSUE-44: Hithomelabs/HomeLabDocker#44 making tests more verbose 2025-11-14 20:03:35 +00:00
8b22064040 ISSUE-44: Hithomelabs/HomeLabDocker#44 Executing integration test every 6 hours 2025-11-14 20:03:35 +00:00
95ec64630a ISSUE-44: Hithomelabs/HomeLabDocker#44 making tests more verbose 2025-11-15 01:27:32 +05:30
d194828c44 ISSUE-44: Hithomelabs/HomeLabDocker#44 Executing integration test every 6 hours 2025-11-15 01:22:29 +05:30
f7e4b3fd93 Merge pull request 'ISSUE-44: Adding integration tests and setting up workflow' (#88) from hitanshu/CFTunnels:ISSUE-44 into test
Reviewed-on: Hithomelabs/CFTunnels#88
2025-11-14 19:48:28 +00:00
e87fb6d153 ISSUE-44: Hithomelabs/HomeLabDocker#44 Excluding integration tests from gradle build and runs them separately in integration tests 2025-11-15 01:14:11 +05:30
b8bf2e8c67 ISSUE-44: Hithomelabs/HomeLabDocker#44 Fixes bug reaated to integration test running during gradle build 2025-11-14 23:38:32 +05:30
b2d58d6a61 ISSUE-44: Hithomelabs/HomeLabDocker#44 Reducing logging verbiage, excuding integration test from test profile 2025-11-14 23:24:42 +05:30
8039945f2a ISSUE-44: Hithomelabs/HomeLabDocker#44 Minor bug fix 2025-11-14 23:11:57 +05:30
ffb33a49e4 ISSUE-44: Hithomelabs/HomeLabDocker#44 Setting up workflow to run integration tests 2025-11-14 23:10:36 +05:30
4875392271 ISSUE-44: Hithomelabs/HomeLabDocker#44 Adding an integration test 2025-11-14 23:07:10 +05:30
46e8f614a0 [Added a script for auto syncing forks of parent repository] Beta #3 2025-10-28 01:12:58 +05:30
ef7b6545db [Added a script for auto syncing forks of parent repository] Beta #2 2025-10-28 00:46:32 +05:30
665361a4e3 [Added a script for auto syncing forks of parent repository] Beta #1 2025-10-28 00:05:47 +05:30
4075eb78c8 ISSUE-44: Hithomelabs/HomeLabDocker#44 Adding unit tests for service layer 2025-10-26 20:30:34 +05:30
68792e2cbf ISSUE-44: Hithomelabs/HomeLabDocker#44 Adding mockMvc tests for web tier 2025-10-26 18:49:18 +05:30
316dd6b01e ISSUE-44: Hithomelabs/HomeLabDocker#44 Decoupling the controller and the service layer 2025-10-26 18:37:41 +05:30
a1275ec06c ISSUE-43: Merging changes for ISSUE-43 to latest main pull 2025-10-18 18:19:53 +05:30
6794e56748 postgres docker compose file deleted 2025-10-18 17:33:06 +05:30
25ef5660fa Env name added in container name 2025-10-18 17:30:25 +05:30
0d576eb9a7 db port variable added 2025-10-18 16:47:24 +05:30
f99ed01a54 dialect readded 2025-10-18 16:47:24 +05:30
18e3535a57 sql init set to never 2025-10-18 16:47:24 +05:30
4d63eb2e2c bug fixes 2025-10-18 16:47:24 +05:30
e9e6bd69f9 Adding Postgres integration 2025-10-18 16:46:57 +05:30