Commit graph

38 commits

Author SHA1 Message Date
lucasheld
84d4009d6a feat: replace raw return values with enum values
BREAKING CHANGE:
Types of return values changed to enum values:
  - monitor: `type` (str -> MonitorType), `authMethod` (str -> AuthMethod)
  - notification: `type` (str -> NotificationType)
  - docker host: `dockerType` (str -> DockerType)
  - status page: `style` (str -> IncidentStyle)
  - maintenance: `strategy` (str -> MaintenanceStrategy)
  - proxy: `protocol` (str -> ProxyProtocol)
2023-05-25 21:26:54 +02:00
lucasheld
712cd85aae test: fix notification test 2023-05-25 18:35:56 +02:00
lucasheld
8a0ad53753 fix: check only for required notification arguments 2023-05-20 22:06:05 +02:00
lucasheld
ce1cc12740 fix: adjust get_monitor_status method to previous changes 2023-05-20 20:35:04 +02:00
lucasheld
27d8e63f7b test: decrease timeout and wait_events 2023-05-20 14:23:01 +02:00
lucasheld
a34b45df8e chore: create dev-requirements.txt 2023-05-20 14:20:38 +02:00
Lucas Held
1359576413
feat: raise exception when deleting an element that does not exist (#37) 2023-05-20 14:09:09 +02:00
lucasheld
f0c5f2ba9d feat: drop support for Uptime Kuma versions < 1.21.3
BREAKING CHANGE: Uptime Kuma versions < 1.21.3 are not supported in uptime-kuma-api 1.x.x
2023-05-20 12:43:57 +02:00
lucasheld
8e841cd324 feat: add support for uptime kuma 1.21.3
BREAKING CHANGE: maintenance parameter `timezone` renamed to `timezoneOption`
2023-05-19 13:49:36 +02:00
lucasheld
d7f033030e feat: add support for uptime kuma 1.21.2 2023-04-07 21:03:36 +02:00
lucasheld
307b25249c test: delete maintenances and api keys in setUp 2023-04-07 20:03:30 +02:00
lucasheld
42c040f451 feat: add support for uptime kuma 1.21.0 2023-03-20 15:14:39 +01:00
lucasheld
14e9f47406 feat: add support for uptime kuma 1.20.0 2023-02-13 22:51:21 +01:00
lucasheld
c1d941a200 docs: complete values for uptime kuma 1.19.2 2022-12-30 21:37:13 +01:00
lucasheld
d01ff6d80e feat: add support for uptime kuma 1.19.2 2022-12-29 00:22:53 +01:00
lucasheld
d13621cd9e test: ignore ResourceWarning 2022-10-04 19:08:59 +02:00
lucasheld
06fa29cd41 fix: update event list data after changes 2022-10-04 18:38:17 +02:00
lucasheld
661c06b15f feat: support autoLogin for enabled disableAuth
Call the login method without parameters to log in when disableAuth is enabled.
2022-09-23 18:24:00 +02:00
lucasheld
ebadfb73e6 fix: set_settings password is only required if disableAuth is enabled 2022-09-23 17:19:00 +02:00
lucasheld
e041d66cdc test: delete objects instead of uploading a backup 2022-09-18 19:54:25 +02:00
lucasheld
a409c2dbaa refactor: use enums 2022-09-18 19:46:20 +02:00
lucasheld
928462c6b2 test: create objects with all available arguments 2022-09-17 12:24:08 +02:00
lucasheld
314f07c93d fix: convert monitor notificationIDList return value
https://github.com/lucasheld/ansible-uptime-kuma/issues/3
2022-09-12 22:45:43 +02:00
lucasheld
12cd8067e4 fix: generate pushToken on push monitor save
https://github.com/lucasheld/ansible-uptime-kuma/issues/5
2022-09-12 20:48:36 +02:00
lucasheld
a7f571f508 add support for uptime kuma 1.18.0 2022-09-07 13:03:13 +02:00
lucasheld
45b8b88166 convert monitor data on edit
closes #3
2022-09-06 13:41:51 +02:00
lucasheld
b2bacc9f8b rename 2FA token 2022-08-26 17:02:55 +02:00
lucasheld
c6b3d59221 fix monitors in status pages 2022-08-26 14:04:43 +02:00
lucasheld
464d0b9e71 add tests for all monitor types 2022-08-26 14:03:17 +02:00
lucasheld
804bd85909 reset uptime kuma config after each test 2022-08-26 14:01:29 +02:00
lucasheld
01664f5fbc add more tests 2022-08-05 14:35:17 +02:00
lucasheld
512057ab61 implement 2FA login 2022-08-05 14:33:28 +02:00
lucasheld
59181ddba2 remove logout from tests to bypass the rate limit completely 2022-08-05 13:03:58 +02:00
lucasheld
f433fe4416 fix delete tag test and fix compare object 2022-08-03 16:56:38 +02:00
lucasheld
655e71d487 login by token in tests to fix the rate limit issue 2022-08-03 12:37:37 +02:00
lucasheld
624c16c4a6 add more tests 2022-08-03 12:35:48 +02:00
lucasheld
8d2c0ec4f7 remove converter 2022-08-03 11:56:02 +02:00
lucasheld
a1a483efce add tests 2022-08-02 23:47:56 +02:00