Skip to content

Commit

Permalink
ci: Add test envvars
Browse files Browse the repository at this point in the history
  • Loading branch information
SMadani committed Jun 27, 2024
1 parent 41ef916 commit 69ee08f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ jobs:
- name: Test with Maven
env:
JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
VONAGE_API_KEY: a1b2c3d4
VONAGE_API_SECRET: 1234567890abcdef
VONAGE_SIGNATURE_SECRET: abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQR
VONAGE_PRIVATE_KEY_PATH: src/test/resources/com/vonage/client/kt/application_key
run: mvn -e --batch-mode clean verify
- name: Run Codecov
uses: codecov/codecov-action@v4
Expand Down
7 changes: 5 additions & 2 deletions src/test/kotlin/com/vonage/client/kt/AbstractTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ abstract class AbstractTest {
protected val apiKey = "a1b2c3d4"
protected val applicationId = "00000000-0000-4000-8000-000000000000"
private val apiSecret = "1234567890abcdef"
private val signatureSecret = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQR"
private val apiKeySecretEncoded = "YTFiMmMzZDQ6MTIzNDU2Nzg5MGFiY2RlZg=="
private val privateKeyPath = "src/test/resources/com/vonage/client/kt/application_key"
protected val testUuid = UUID.fromString("aaaaaaaa-bbbb-4ccc-8ddd-0123456789ab")
protected val toNumber = "447712345689"
protected val altNumber = "447700900001"
Expand All @@ -35,8 +37,9 @@ abstract class AbstractTest {
)

val vonage = Vonage {
apiKey(apiKey); apiSecret(apiSecret); applicationId(applicationId)
privateKeyPath("src/test/resources/com/vonage/client/kt/application_key")
apiKey(apiKey); apiSecret(apiSecret);
signatureSecret(signatureSecret); applicationId(applicationId)
privateKeyPath(privateKeyPath)
httpConfig {
baseUri("http://localhost:$port")
}
Expand Down

0 comments on commit 69ee08f

Please sign in to comment.