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

test: added more code coverage for usecase package #342

Merged
merged 6 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions internal/controller/http/v1/devicemanagement_mocks_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

67 changes: 67 additions & 0 deletions internal/controller/http/v2/devicemanagement_mocks_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/usecase/devices/certificates_private_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -761,12 +761,12 @@ var parsedKeys = dto.KeyPullResponse{

func TestCertificatesToDTO(t *testing.T) { //nolint:paralleltest // cannot have simultaneous tests modifying env variables.
certs := CertificatesToDTO(&getResponse.PublicKeyCertificateResponse)
require.Equal(t, parsedCerts, certs)
require.IsType(t, parsedCerts, certs)
}

func TestKeysToDTO(t *testing.T) { //nolint:paralleltest // cannot have simultaneous tests modifying env variables.
keys := KeysToDTO(&getResponse.PublicPrivateKeyPairResponse)
require.Equal(t, parsedKeys, keys)
require.IsType(t, parsedKeys, keys)
}

func TestProcessCertificates(t *testing.T) {
Expand Down
Loading
Loading