https://kotlinlang.org logo
Title
h

helpermethod

03/03/2023, 2:12 PM
Hi! Is there some way in Ktor to use the the normal application.conf in testing but overwrite only some of the properties? I want my application to fail if credentials are not provided, but want to provide some dummy values during testing.
twitter {
    apiKey = ${TWITTER_API_KEY}
    apiSecretKey = ${TWITTER_API_SECRET_KEY}
    accessToken = ${TWITTER_ACCESS_TOKEN}
    accessTokenSecret = ${TWITTER_ACCESS_TOKEN_SECRET}
}
P.S.: Found some hints here
a

Aleksei Tirman [JB]

03/03/2023, 4:14 PM
This answer may help you.
h

helpermethod

03/08/2023, 7:45 AM
Thank you!