Commit a84d16e
Extract test port and data constants in agent service tests
- Add constants for test server ports (testInventoryPort, testAttestPort)
- Add constant for test PID file content (testPIDContent)
- Replace hardcoded localhost URLs with constructed constants
- Replace hardcoded PID file data with named constant
- Improve test maintainability and consistency
- Address goconst linting issues in agent test suite
Test constants added:
- testInventoryPort (:8081) for inventory service testing
- testAttestPort (:8443) for attestation service testing
- testPIDContent (12345\n) for PID file testing
Co-authored-by: Amp <[email protected]>
Amp-Thread-ID: https://ampcode.com/threads/T-5be4213f-26eb-400c-bb7b-d4c79b7ee6fe1 parent 3e1fbb2 commit a84d16e
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
51 | | - | |
52 | | - | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
445 | 448 | | |
446 | 449 | | |
447 | 450 | | |
448 | | - | |
| 451 | + | |
449 | 452 | | |
450 | 453 | | |
451 | 454 | | |
| |||
0 commit comments