Commit Graph

706 Commits

Author SHA1 Message Date
Alex Holliday
7e0bc44ba6 Update networkService to handle hardware type monitors, add tests for full coverage 2024-10-21 11:55:44 +08:00
Alex Holliday
ce20edc2ff Add hardware check module to MongoDB 2024-10-21 11:55:18 +08:00
Alex Holliday
18fe7abaca Add db module for Hardware Checks 2024-10-21 11:54:58 +08:00
Alex Holliday
0190624a91 Add hardware type to monitor model 2024-10-21 11:48:25 +08:00
Alex Holliday
ddb058b58c Add model for hardware monitoring checks 2024-10-21 10:58:16 +08:00
Alex Holliday
0dad5c282c Added missing var declaration 2024-10-21 10:07:02 +08:00
Alexander Holliday
287117132b Merge pull request #946 from om-3004/enhancement/check-if-url-resolves
check if the url resolves before adding the monitor
2024-10-19 16:48:42 +08:00
Alex Holliday
cbd3aed290 Remove log statements from 2024-10-19 16:38:18 +08:00
Alex Holliday
849b8a1e9b Add tests for networkService 2024-10-18 14:23:21 +08:00
Alex Holliday
64d2d9b3ce Move opeartion back to 2024-10-18 14:21:22 +08:00
om-3004
34a13530b3 Merge branch 'develop' into enhancement/check-if-url-resolves 2024-10-18 11:39:07 +05:30
Alex Holliday
f5265b140c Minor refactor for correctness 2024-10-18 13:36:39 +08:00
Alex Holliday
1c30c309a7 Refactor network service to inject dependencies 2024-10-18 11:12:18 +08:00
Alex Holliday
f9495171b1 Fix merge conflict error 2024-10-18 11:00:46 +08:00
Alex Holliday
9a32362ab6 Merge branch 'develop' into feat/be/email-service-tests 2024-10-18 10:53:31 +08:00
Alexander Holliday
59392d0194 Merge pull request #975 from bluewave-labs/fix/be/ssl-checker
Add ssl-checker, refactor fetchMonitorCertificate
2024-10-18 10:05:10 +08:00
Alex Holliday
53fe22b517 Fix merge conflict 2024-10-18 10:02:33 +08:00
Alex Holliday
90dfa09b10 Merge branch 'develop' into fix/be/prettier-baseline 2024-10-18 10:01:54 +08:00
om-3004
9de2dfe514 Remove duplicate api endpoint for deleting monitor 2024-10-17 17:27:40 +05:30
om-3004
ff6051b6b0 Update test case for url resolution to make it more specific 2024-10-17 16:59:49 +05:30
om-3004
cb64d16d69 Remove the extra uri in validation which was added by mistake 2024-10-17 14:21:47 +05:30
om-3004
aee7e02587 Add validation for monitor URL and update test case and api documentation accordingly 2024-10-17 12:37:03 +05:30
Rushi Gandhi
fe503353c5 remove handleError from verifyJWT 2024-10-17 12:26:34 +05:30
Alex Holliday
97bc08fa63 Add tests for EmailService 2024-10-17 14:33:31 +08:00
Alex Holliday
ae223b4c62 Inject dependencies into EmailService 2024-10-17 14:33:18 +08:00
Alex Holliday
b69d495206 Remove redundant try/catch block 2024-10-17 14:32:18 +08:00
Rushi Gandhi
090f0df3e8 Merge branch 'develop' into 915-be-add-middeware-for-verification-of-refresh-token 2024-10-17 12:01:43 +05:30
Rushi Gandhi
3e9593fa23 Refactor verifyJWT middleware to handle refresh tokens alongside access token 2024-10-17 11:58:13 +05:30
Alex Holliday
17ed90f76b Refactor EmailService to inject dependencies 2024-10-17 14:00:22 +08:00
om-3004
7f0d5d4255 Update test case to check for the specific errors and remove test case for empty URL 2024-10-17 11:20:54 +05:30
Alex Holliday
8bdade2774 Merge branch 'develop' into fix/be/prettier-baseline 2024-10-17 13:39:23 +08:00
om-3004
5d3e1796e0 Update the test name to follow the naming convention 2024-10-17 11:09:23 +05:30
om-3004
0f763e7913 promisify the resolve method to pass the error to the middleware and updat test cases accordingly 2024-10-17 11:06:46 +05:30
om-3004
7ec5e64f6f Remove unused imports 2024-10-17 10:50:19 +05:30
om-3004
afe7c9047c Handle imports exports format check resolution tests code 2024-10-17 10:47:34 +05:30
Alex Holliday
c0ae2fac77 Add tests for util functions 2024-10-17 13:09:50 +08:00
om-3004
c598278c6f Merge branch 'develop' into enhancement/check-if-url-resolves 2024-10-17 10:35:41 +05:30
om-3004
d61a41fd95 Update the api endpoint from /check-endpoint/url to /resolution/url 2024-10-17 10:18:12 +05:30
om-3004
3de2106c70 Add api documentation for check resolution endpoint create 2024-10-17 10:09:50 +05:30
om-3004
6715a8b500 Refactor code for check endpoint and update test cases accordingly 2024-10-17 10:02:01 +05:30
Alex Holliday
fd2d16cf78 Format all files on BE with perttier config 2024-10-17 12:07:30 +08:00
Alex Holliday
79cf169ede Add ssl-checker, refactor fetchMonitorCertificate 2024-10-17 11:57:37 +08:00
Alex Holliday
63e39ed50d Resolve conflicts, update tests 2024-10-17 10:54:31 +08:00
Alex Holliday
81f1fe4694 Merge branch 'develop' into feat/be/esm 2024-10-17 10:42:57 +08:00
om-3004
d1e65f53ba Add test cases for checking monitor endpoint resolution 2024-10-16 21:12:51 +05:30
Rushi Gandhi
412ac3312b use jwt.verify instead of jwt.decoded to verify authenticity of token 2024-10-16 20:20:08 +05:30
Rushi Gandhi
e6068bfdc4 Add middleware that verifies refresh token 2024-10-16 18:27:29 +05:30
Alexander Holliday
7d8ffcd4a5 Merge pull request #960 from Rushi1109/915-be-generate-refresh-token
Generate refresh token & add it to response
2024-10-16 19:40:59 +08:00
Rushi Gandhi
111f7d5a67 remove if/else by using ternary operator 2024-10-16 14:13:48 +05:30
Rushi Gandhi
7a3d2619f6 add testcases for refresh token 2024-10-16 12:46:44 +05:30