Skip to content

Check the returned cert index in tests, and test deduplication behaviour #237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2025

Conversation

phbnf
Copy link
Collaborator

@phbnf phbnf commented Apr 7, 2025

Towards #103

# Conflicts:
#	internal/scti/handlers_test.go

# Conflicts:
#	internal/scti/handlers_test.go
@phbnf phbnf requested a review from roger2hk April 7, 2025 17:09
@phbnf phbnf marked this pull request as ready for review April 7, 2025 17:42
@@ -489,21 +505,27 @@ func TestAddChain(t *testing.T) {
if got, want := hex.EncodeToString(gotRsp.Signature), "040300067369676e6564"; got != want {
t.Errorf("resp.Signature=%s; want %s", got, want)
}
idx, err := staticct.ParseCTExtensions(gotRsp.Extensions)
if err != nil {
t.Errorf("failed to parse extensions %q: %v", gotRsp.Extensions, err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
t.Errorf("failed to parse extensions %q: %v", gotRsp.Extensions, err)
t.Errorf("Failed to parse extensions %q: %v", gotRsp.Extensions, err)

@@ -565,10 +596,15 @@ func TestAddPreChain(t *testing.T) {
if got, want := hex.EncodeToString(gotRsp.Signature), "040300067369676e6564"; got != want {
t.Errorf("resp.Signature=%s; want %s", got, want)
}
idx, err := staticct.ParseCTExtensions(gotRsp.Extensions)
if err != nil {
t.Errorf("failed to parse extensions %q: %v", gotRsp.Extensions, err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
t.Errorf("failed to parse extensions %q: %v", gotRsp.Extensions, err)
t.Errorf("Failed to parse extensions %q: %v", gotRsp.Extensions, err)

@phbnf phbnf merged commit f7a2ab6 into transparency-dev:main Apr 8, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants