diff --git a/monkeys/README.md b/monkeys/README.md index 4e2fd749ebb..1cda691da3f 100644 --- a/monkeys/README.md +++ b/monkeys/README.md @@ -64,9 +64,7 @@ and `authPassword` with the credentials for the internal API of the respective b * The application should run until it receives a `SIGINT` (Ctrl+C) signal. There should be a configuration to finish the test run * Tests need to be implemented -* Collecting metrics about the test execution * Tracing and replaying a test run. For this the order is the important factor, so when replayed it won't be executed in parallel. -* Multi-clients. Right now each user can have just one client within the application * Clean-up the data created during the tests * Randomising times for action execution diff --git a/monkeys/src/main/kotlin/com/wire/kalium/monkeys/MonkeyApplication.kt b/monkeys/src/main/kotlin/com/wire/kalium/monkeys/MonkeyApplication.kt index 63790cc2a4e..5c46102d01b 100644 --- a/monkeys/src/main/kotlin/com/wire/kalium/monkeys/MonkeyApplication.kt +++ b/monkeys/src/main/kotlin/com/wire/kalium/monkeys/MonkeyApplication.kt @@ -61,12 +61,10 @@ class MonkeyApplication : CliktCommand(allowMultipleSubcommands = true) { if (logOutputFile != null) { CoreLogger.init(KaliumLogger.Config(logLevel, listOf(fileLogger))) - MonkeyLogger.init(KaliumLogger.Config(logLevel, listOf(fileLogger))) } else { CoreLogger.init(KaliumLogger.Config(logLevel, emptyList())) - MonkeyLogger.init(KaliumLogger.Config(logLevel, emptyList())) } - MonkeyLogger.setLoggingLevel(logLevel, monkeyFileLogger) + MonkeyLogger.init(KaliumLogger.Config(logLevel, listOf(monkeyFileLogger))) logger.i("Initializing Metrics Endpoint") io.ktor.server.engine.embeddedServer(Netty, port = 9090) { routing { diff --git a/monkeys/src/main/kotlin/com/wire/kalium/monkeys/conversation/Monkey.kt b/monkeys/src/main/kotlin/com/wire/kalium/monkeys/conversation/Monkey.kt index 1ed14db8057..cca0705c531 100644 --- a/monkeys/src/main/kotlin/com/wire/kalium/monkeys/conversation/Monkey.kt +++ b/monkeys/src/main/kotlin/com/wire/kalium/monkeys/conversation/Monkey.kt @@ -82,7 +82,7 @@ class Monkey(val user: UserData) { val storeResult = addAuthenticatedAccount( serverConfigId = loginResult.serverConfigId, ssoId = loginResult.ssoID, - accountTokens = loginResult.authData, + authTokens = loginResult.authData, proxyCredentials = loginResult.proxyCredentials, replace = true )