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

Add Test Case for Repository Errors in Certs Service #2190

Open
JeffMboya opened this issue Apr 19, 2024 · 0 comments
Open

Add Test Case for Repository Errors in Certs Service #2190

JeffMboya opened this issue Apr 19, 2024 · 0 comments

Comments

@JeffMboya
Copy link
Contributor

Is your feature request related to a problem? Please describe.

There are no test cases that cover repository errors in the Certs Service. This is a potential gap in our test coverage.

Describe the feature you are requesting, as well as the possible use case(s) for it.

Add a test case that simulates repository errors in the Certs Service.

Indicate the importance of this feature to you.

Must-have

Anything else?

Something like this

			desc:    "failed to save in repo",
			token:   token,
			thingID: "2",
			ttl:     ttl,
			pki: pki.Cert{
				ClientCert:     "",
				IssuingCA:      "",
				CAChain:        []string{},
				ClientKey:      "",
				PrivateKeyType: "",
				Serial:         "",
				Expire:         0,
			},
			identifyRes: &magistrala.IdentityRes{Id: validID},
			repoErr:     certs.ErrMissingCerts,
			err:         certs.ErrMissingCerts,
		},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant