Fixes the JUnit tests for context loads and implements a single bare-bones test to make sure mocking is working. Couldn't figure out how to mock the security so just removed it for all endpoints (will fix later).
This is a stop-gap measure to let me bring in the CI and unblock @OZoneGuy so he can start writing tests without having to fix them himself.
This change is a
[x] Bug fix
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that will change exisiting functionality)
[ ] Documentation update
Description
Add new pom packages for spring security testing
Created a new SecurityTestConfig to run with basic auth on test profile. Disabled for all routes.
Added extra constructors for the Suite entity to facilitate tests
Fixed the context loading test so things don't break
Added the TestUtils class to make writing api component tests easier
Implemented a single basic component api test to make sure things were working. (Left the old code for testing the mock authentication for future reference)
Created a new testing profile for tests to use when running tests that require application context.
Motivation/Links
This unblocks @OZoneGuy to write tests without having to fix them. Also allows me to start to implement the CI for this repo.
How was this tested?
Running mvn test now passes without issue.
Todos
[x] Ensure unit tests pass
[x] Update documentation for changes (if necessary)
Overview
Fixes the JUnit tests for context loads and implements a single bare-bones test to make sure mocking is working. Couldn't figure out how to mock the security so just removed it for all endpoints (will fix later).
This is a stop-gap measure to let me bring in the CI and unblock @OZoneGuy so he can start writing tests without having to fix them himself.
This change is a
Description
SecurityTestConfig
to run with basic auth ontest
profile. Disabled for all routes.Suite
entity to facilitate testsTestUtils
class to make writing api component tests easierMotivation/Links
This unblocks @OZoneGuy to write tests without having to fix them. Also allows me to start to implement the CI for this repo.
How was this tested?
Running
mvn test
now passes without issue.Todos