Commit 9d808d7
committed
kms: fix SNP tests for image-invariant os_image_hash
Two tests asserted the old behavior where os_image_hash changed with any
MeasurementInput field. Now that os_image_hash is the image-invariant
projection, per-deployment fields (app_id, vcpus) must NOT change it:
- app_id_changes_host_data_and_authorization_binding: app_id changes the
authorization binding but leaves os_image_hash unchanged.
- measured_input_changes_reject_until_measurement_is_recomputed: assert
os_image_hash changes only for image fields (kernel_hash), not vcpus.
(These run under the full test suite; my earlier 'snp'-filtered local run
missed them.)1 parent 4b412d3 commit 9d808d7
1 file changed
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1535 | 1535 | | |
1536 | 1536 | | |
1537 | 1537 | | |
1538 | | - | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
1539 | 1543 | | |
1540 | 1544 | | |
1541 | 1545 | | |
| |||
1548 | 1552 | | |
1549 | 1553 | | |
1550 | 1554 | | |
1551 | | - | |
1552 | | - | |
1553 | | - | |
1554 | | - | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
1555 | 1562 | | |
1556 | 1563 | | |
1557 | 1564 | | |
| |||
1564 | 1571 | | |
1565 | 1572 | | |
1566 | 1573 | | |
1567 | | - | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
1568 | 1585 | | |
1569 | 1586 | | |
1570 | 1587 | | |
| |||
0 commit comments