carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

1package main
2
3import (
4 "testing"
5
6 "github.com/carlosframework/platform/internal/publicrelease"
7)
8
9// carlos system claims run publish-identity verifies a release's
10// SHA256SUMS.txt with publicrelease.Default's key. It must be the key
11// carlos update trusts for the same file.
12func TestClaimsSumsKeyIsTheCLIUpdateKey(t *testing.T) {
13 if publicrelease.Default().PubKey != cliUpdatePubKey {
14 t.Fatalf("publicrelease key %q, cliUpdatePubKey %q", publicrelease.Default().PubKey, cliUpdatePubKey)
15 }
16}
17