Skip to content
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

Return an error if we fail get get the Root cert. #416

Merged
merged 2 commits into from Feb 17, 2022

Conversation

vaikas
Copy link
Contributor

@vaikas vaikas commented Feb 17, 2022

Closes #415

Signed-off-by: Ville Aikas vaikas@chainguard.dev

Summary

Return an error if we fail to get the Root Certificate.

Ticket Link

Fixes #415

Release Note

Fix a bug where the client would not get an error on failed RootCert method.

@vaikas
Copy link
Contributor Author

vaikas commented Feb 17, 2022

well, that's interesting. UT passes just fine on local machine :)

// TestMissingRootFails creates a bad Google CA and tests that the client
// gets an error returned to it.
func TestMissingRootFails(t *testing.T) {
caClient, err := v1.NewCertAuthorityService(context.Background(), "non-existent")
Copy link
Member

Choose a reason for hiding this comment

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

This isn't going to work in CI 😞

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I will sort out a different test for it.

Fixes: sigstore#415

Signed-off-by: Ville Aikas <vaikas@chainguard.dev>
Signed-off-by: Ville Aikas <vaikas@chainguard.dev>
@dlorenc dlorenc merged commit 167dcb1 into sigstore:main Feb 17, 2022
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.

Fulcio returns 200 if there's no RootCert
3 participants