Skip to content

Commit

Permalink
add credentials json
Browse files Browse the repository at this point in the history
  • Loading branch information
tonisives committed Nov 8, 2023
1 parent 5af75ee commit 1fd4228
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: |
mkdir -p ~/.config/high-mobility/fleet-sdk/
# ' will not escape "" inside the yaml file
echo '${{ secrets.CREDENTIALS_YAML }}' > ~/.config/high-mobility/fleet-sdk/credentials.yaml
echo '${{ secrets.CREDENTIALS_JSON }}' > ~/.config/high-mobility/fleet-sdk/credentials.json
- name: Update submodules
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ open class BaseTest : KoinTest {
if (Files.exists(credentialsDirectory) == false) {
Files.createDirectories(credentialsDirectory)
Files.createFile(credentialsFilePath)
throw InstantiationException("Please oauth credentials to $credentialsFilePath")
throw InstantiationException("Please add oauth credentials to $credentialsFilePath")
}

val credentialsContent = String(Files.readAllBytes(credentialsFilePath))
Expand All @@ -83,7 +83,7 @@ open class BaseTest : KoinTest {
val configuration = spyk(
HMKitConfiguration.Builder()
.credentials(
HMKitPrivateKeyCredentials("client_id", credentialsContent)
HMKitOAuthCredentials("client_id", credentialsContent)
)
.build()
)
Expand Down

0 comments on commit 1fd4228

Please sign in to comment.