Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.47 KB

DEVELOPMENT.md

File metadata and controls

53 lines (36 loc) · 1.47 KB

Run Configs

Install the Kotest Plugin if you want to be able to run tests from IDEA.

Sample and Tests

To run the :sample module or end 2 end tests you will need to add your credentials to the local.properties or gradle.properties.

goplay.username=
goplay.password=

Or you can set the as system variables as well.

Afterwards you can run tests like normal. Use the Kotest plugin from within IDEA or from CLI

./gradlew test

Alternatively, you can pass the parameters as Gradle parameters too.

./gradlew test -Pgoplay.username=... -Pgoplay.password=...

Charles Root Certificates

Charles

In order to use Charles as a proxy to investigate API calls a few steps are required. In Charles navigate to Help > SSL Proxying > Save Charles Root Certificate

Mac OS X

Make sure to add the Charles Root certificate to the Mac OS X Keychain.

Right click in the settings to also trust the certificate.

JVM

Add the Charles Root certificate to the trusted Java certificates.

Convert the .pem to a .der

openssl x509 -in charles-ssl-proxying-certificate.pem -out charles-ssl-proxying-certificate.der -outform DER

Import the .der as a trusted JDK certifact.

keytool -import -alias charles -keystore cacerts -file ~/Desktop/charles-ssl-proxying-certificate.der

See full explanation here