Commit dc35f2b
authored
Fix DCP monitor timestamp serialization (#18798)
* Fix DCP monitor timestamp serialization
Serialize parent-process monitor timestamps using Kubernetes MicroTime's fixed six-digit fractional second format so DCP can accept parent-scoped container and executable resources.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 62834f08-7833-42e2-af31-f71213611735
* Account for MicroTime precision in DCP test
Update the parent-process lifetime model test to compare monitor timestamps at Kubernetes MicroTime precision after the fake Kubernetes service JSON round-trip.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 62834f08-7833-42e2-af31-f71213611735
* Use timestamp tolerance in DCP test
Replace the custom MicroTime precision helper with xUnit's DateTime precision assertion using a one microsecond tolerance.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 62834f08-7833-42e2-af31-f712136117351 parent 7a1fb60 commit dc35f2b
4 files changed
Lines changed: 104 additions & 2 deletions
File tree
- src/Aspire.Hosting/Dcp/Model
- tests/Aspire.Hosting.Tests/Dcp
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3402 | 3402 | | |
3403 | 3403 | | |
3404 | 3404 | | |
3405 | | - | |
| 3405 | + | |
| 3406 | + | |
3406 | 3407 | | |
3407 | 3408 | | |
3408 | 3409 | | |
| |||
3412 | 3413 | | |
3413 | 3414 | | |
3414 | 3415 | | |
3415 | | - | |
| 3416 | + | |
| 3417 | + | |
3416 | 3418 | | |
3417 | 3419 | | |
3418 | 3420 | | |
| |||
6119 | 6121 | | |
6120 | 6122 | | |
6121 | 6123 | | |
| 6124 | + | |
| 6125 | + | |
| 6126 | + | |
| 6127 | + | |
| 6128 | + | |
| 6129 | + | |
| 6130 | + | |
| 6131 | + | |
| 6132 | + | |
| 6133 | + | |
| 6134 | + | |
| 6135 | + | |
| 6136 | + | |
| 6137 | + | |
| 6138 | + | |
| 6139 | + | |
| 6140 | + | |
| 6141 | + | |
| 6142 | + | |
| 6143 | + | |
| 6144 | + | |
| 6145 | + | |
| 6146 | + | |
| 6147 | + | |
| 6148 | + | |
| 6149 | + | |
| 6150 | + | |
| 6151 | + | |
| 6152 | + | |
| 6153 | + | |
| 6154 | + | |
| 6155 | + | |
| 6156 | + | |
| 6157 | + | |
| 6158 | + | |
| 6159 | + | |
| 6160 | + | |
| 6161 | + | |
6122 | 6162 | | |
6123 | 6163 | | |
6124 | 6164 | | |
| |||
0 commit comments