Download this file
| 1 | package carlosop |
| 2 | |
| 3 | import "testing" |
| 4 | |
| 5 | // The golden value is carlos/platform internal/appconfig TestDigestPinned's |
| 6 | // vector, Digest(Var{Kind: "env", Value: "info"}), at config-receipts-1 head |
| 7 | // c5d5a930048e14657ca51205eb4cf46e50978726 (522 Plan 1, not yet merged). |
| 8 | // Re-pin to the merge commit once 522 Plan 1 lands on platform main. |
| 9 | func TestEnvDigestMatchesPlatformVector(t *testing.T) { |
| 10 | const want = "vd1:3c7b54021558dfc18bc509a47f6103bb9f4942be75c7ca3d23483c89664375e2" |
| 11 | if got := EnvDigest("info"); got != want { |
| 12 | t.Fatalf("EnvDigest(info) does not match the platform's pinned vector") |
| 13 | } |
| 14 | } |
| 15 | |