rcourtman
b310bd8fa5
test: Add tests for instance lookup and setup token validation
- Add TestFindInstanceNameByHost (12 test cases):
- PVE instance lookup by host
- PBS instance lookup by host
- Unknown node types return empty
- Empty config handling
- Add TestValidateSetupToken (8 test cases):
- Empty token returns false
- Valid/expired/used setup codes
- Valid/expired recent setup tokens
- Non-existent token handling
- Precedence of setup codes over recent tokens
Both functions now have 100% coverage of their logic paths.
2025-12-01 22:19:30 +00:00
..
2025-10-14 16:48:22 +00:00
2025-11-21 22:07:00 +00:00
2025-11-30 23:04:44 +00:00
2025-10-23 11:40:31 +00:00
2025-11-27 10:26:26 +00:00
2025-12-01 22:07:40 +00:00
2025-11-15 21:49:51 +00:00
2025-12-01 21:33:45 +00:00
2025-10-25 16:00:37 +00:00
2025-12-01 14:46:00 +00:00
2025-12-01 11:20:57 +00:00
2025-12-01 22:19:30 +00:00
2025-12-01 14:09:35 +00:00
2025-11-19 20:12:19 +00:00
2025-11-17 14:25:46 +00:00
2025-11-17 14:25:46 +00:00
2025-12-01 10:21:50 +00:00
2025-11-30 14:55:47 +00:00
2025-11-27 09:12:17 +00:00
2025-11-30 13:34:08 +00:00
2025-11-06 13:48:28 +00:00
2025-12-01 14:09:35 +00:00
2025-11-27 10:12:48 +00:00
2025-10-11 23:29:47 +00:00
2025-11-29 17:06:18 +00:00
2025-11-29 17:06:18 +00:00
2025-11-27 08:59:01 +00:00
2025-11-06 13:54:26 +00:00
2025-10-11 23:29:47 +00:00
2025-11-29 20:20:15 +00:00
2025-11-24 14:28:09 +00:00
2025-11-30 02:48:05 +00:00
2025-10-21 12:37:39 +00:00
2025-11-30 14:33:38 +00:00
2025-11-27 08:34:31 +00:00
2025-11-06 16:46:30 +00:00
2025-11-29 22:03:15 +00:00
2025-11-29 22:03:15 +00:00
2025-12-01 13:56:38 +00:00
2025-11-22 09:44:03 +00:00
2025-11-22 09:44:03 +00:00
2025-11-22 09:44:03 +00:00
2025-12-01 14:38:26 +00:00
2025-11-15 21:49:51 +00:00
2025-11-30 04:33:59 +00:00
2025-11-07 10:18:44 +00:00
2025-10-11 23:29:47 +00:00
2025-12-01 00:06:32 +00:00
2025-11-27 08:31:50 +00:00
2025-12-01 21:33:45 +00:00
2025-11-24 15:16:14 +00:00
2025-11-20 15:45:21 +00:00
2025-11-30 15:34:32 +00:00
2025-11-27 10:12:48 +00:00
2025-11-27 10:12:48 +00:00
2025-11-29 18:06:19 +00:00
2025-11-24 07:45:21 +00:00
2025-12-01 14:33:31 +00:00
2025-10-23 11:40:31 +00:00
2025-11-24 07:45:21 +00:00
2025-11-27 09:12:17 +00:00
2025-11-30 23:18:34 +00:00
2025-11-27 09:12:17 +00:00
2025-11-18 21:30:04 +00:00
2025-12-01 01:05:07 +00:00
2025-11-29 21:47:22 +00:00
2025-11-29 21:47:22 +00:00
2025-11-17 14:25:46 +00:00
2025-11-30 14:07:04 +00:00
2025-11-30 20:37:58 +00:00
2025-11-27 08:37:22 +00:00
2025-11-30 15:05:37 +00:00
2025-11-26 10:05:43 +00:00
2025-11-30 15:05:37 +00:00
2025-11-15 16:43:42 +00:00