Skip to content

Commit

Permalink
update clilent to remove stable
Browse files Browse the repository at this point in the history
Signed-off-by: linus-sun <linussun@google.com>
  • Loading branch information
linus-sun committed Oct 8, 2024
1 parent a0d4288 commit ebe4ea1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions cmd/verifier/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ import (

const (
rekorURL = "http://127.0.0.1:3000"
subject = "subject@example.com"
issuer = "oidc-issuer@domain.com"
)

// Test RunConsistencyCheck:
Expand All @@ -65,9 +67,6 @@ func TestRunConsistencyCheck(t *testing.T) {
t.Errorf("error getting log verifier: %v", err)
}

subject := "subject@example.com"
issuer := "oidc-issuer@domain.com"

rootCert, rootKey, _ := test.GenerateRootCA()
leafCert, leafKey, _ := test.GenerateLeafCert(subject, issuer, rootCert, rootKey)

Expand Down Expand Up @@ -212,6 +211,6 @@ func TestRunConsistencyCheck(t *testing.T) {
}
tempOutputIdentitiesString := string(tempOutputIdentities)
if !strings.Contains(tempOutputIdentitiesString, subject) {
t.Errorf("expected to find subject@example.com, did not")
t.Errorf("expected to find %s, did not", subject)
}
}
3 changes: 2 additions & 1 deletion cmd/verifier/e2e_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ for repo in rekor ; do
done
popd
done
cleanup_services() {

function cleanup_services() {
echo "cleaning up"
for repo in rekor; do
pushd $HOME/$repo
Expand Down
2 changes: 0 additions & 2 deletions pkg/rekor/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ func GetPublicKey(ctx context.Context, rekorClient *client.Rekor) ([]byte, error
// GetLogInfo fetches a stable checkpoint for each log shard
func GetLogInfo(ctx context.Context, rekorClient *client.Rekor) (*models.LogInfo, error) {
p := tlog.NewGetLogInfoParamsWithContext(ctx)
stable := true
p.Stable = &stable

logInfoResp, err := rekorClient.Tlog.GetLogInfo(p)
if err != nil {
Expand Down

0 comments on commit ebe4ea1

Please sign in to comment.