Skip to content

Improve code coverage for config.go#477

Merged
lukeatdell merged 6 commits into
usr/spark/mount-credentialsfrom
usr/lukeatdell/config-tests
Mar 3, 2025
Merged

Improve code coverage for config.go#477
lukeatdell merged 6 commits into
usr/spark/mount-credentialsfrom
usr/lukeatdell/config-tests

Conversation

@lukeatdell

@lukeatdell lukeatdell commented Mar 3, 2025

Copy link
Copy Markdown
Contributor

Description

Adding some tests to improve coverage for csireverseproxy's config.go.
Created a config manager interface that is satisfied by viper.Viper and allows us to mock responses from viper without the need to create temporary configmaps and secrets on the file system.

GitHub Issues

GitHub Issue #

Checklist:

  • Have you run format,vet & lint checks against your submission?
  • Have you made sure that the code compiles?
  • Did you run the unit & integration tests successfully?
  • Have you maintained at least 90% code coverage?
  • Have you commented your code, particularly in hard-to-understand areas
  • Have you done corresponding changes to the documentation
  • Did you run tests in a real Kubernetes cluster?
  • Backward compatibility is not broken

How Has This Been Tested?

GH Actions unit tests

Note: failing tests in the main package for csireverseproxy are currently being addressed in another branch. This branch is being merged to the mount credentials feature branch, where all PR checks will be addressed before merging to main.

@lukeatdell lukeatdell merged commit 9563b4d into usr/spark/mount-credentials Mar 3, 2025
@lukeatdell lukeatdell deleted the usr/lukeatdell/config-tests branch March 3, 2025 21:35
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.

3 participants