-
Notifications
You must be signed in to change notification settings - Fork 1
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
FHB-969 acceptance tests KV #254
FHB-969 acceptance tests KV #254
Conversation
StuwiiDev
commented
Nov 21, 2024
•
edited by AaronJY
Loading
edited by AaronJY
- Add keyvault configurations to API acceptance tests
- Add Readmes to acceptance projects to explain using keyvault
Added user secrets and appsettings for KV
Update the method to accept IConfigurationBuilder so that any form of builder can use it.
Add keyVault configuration to acceptance tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth sticking a readme in each of the acceptance test projects to help people as they might not know if they need to configure:
"AppConfiguration": {
"KeyVaultIdentifier": "",
"KeyVaultPrefix": ""
}
Could add something like...
Test Setup
Use secrets to configure the variables but you can ignore:
"AppConfiguration": {
"KeyVaultIdentifier": "",
"KeyVaultPrefix": ""
}
'''
if you are running these locally as they are used by the pipeline to configure the tests.
...api/acceptance-tests/FamilyHubs.Referral.Api.AcceptanceTests/Configuration/ConfigAccessor.cs
Show resolved
Hide resolved
src/shared/shared-kernel/src/fh-shared-kernel.shared-kernel/Extensions/StartupExtensions.cs
Outdated
Show resolved
Hide resolved
Also removed the unnecessary extra method.