Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 1976_Add_user_guide_for_Corellium_MVP
Browse files Browse the repository at this point in the history
jan-goral authored May 31, 2021
2 parents 5b4e82b + 5a5e320 commit 4d7e63f
Showing 4 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@ package flank.corellium.client.agent
import flank.corellium.client.data.AgentOperation
import flank.corellium.client.data.CommandResult
import io.ktor.client.HttpClient
import io.ktor.client.engine.cio.CIO
import io.ktor.client.features.logging.LogLevel
import io.ktor.client.features.logging.Logging
import io.ktor.client.features.websocket.DefaultClientWebSocketSession
@@ -23,7 +24,7 @@ suspend fun connectAgent(
token: String,
logLevel: LogLevel = LogLevel.NONE
): Agent = run {
val client = HttpClient {
val client = HttpClient(CIO) {
install(WebSockets)
install(Logging) {
level = logLevel
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package flank.corellium.client.console

import io.ktor.client.HttpClient
import io.ktor.client.engine.cio.CIO
import io.ktor.client.features.websocket.WebSockets
import io.ktor.client.features.websocket.webSocketSession
import io.ktor.client.request.header
@@ -10,7 +11,7 @@ suspend fun connectConsole(
url: String,
token: String
): Console =
HttpClient {
HttpClient(CIO) {
install(WebSockets)
}.webSocketSession {
url(url)
1 change: 1 addition & 0 deletions test_configs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
corellium_auth.yml
6 changes: 6 additions & 0 deletions test_configs/flank-corellium.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
auth: "test_configs/corellium_auth.yml"
apks:
- path: "test_artifacts/master/apk/app-debug.apk"
tests:
- path: "test_artifacts/master/apk/app-multiple-flaky-debug-androidTest.apk"
max-test-shards: 3

0 comments on commit 4d7e63f

Please sign in to comment.