aws-devicefarm
aws-devicefarm copied to clipboard
On schedule run - allow for extra configuration to be passed in
In my case I need to be able to specify device configuration:
deviceSelectionConfiguration
DEVICE_CONFIG="billingMethod=UNMETERED,radios={wifi=true,bluetooth=true,nfc=true,gps=true}"
# Device configuration
if [[ -f "data_arn.txt" ]]; then
DEVICE_CONFIG="${DEVICE_CONFIG},extraDataPackageArn=$(cat data_arn.txt)"
fi
# Execution configuration
EXEC_CONFIG="jobTimeoutMinutes=${TIMEOUT},videoCapture=true"
and using it like:
# aws devicefarm schedule-run \
# --project-arn "${PROJECT}" \
# --device-pool-arn "${DEVICE_POOL}" \
# --name "${NAME}" \
# --test "${TEST}" \
# --configuration "${DEVICE_CONFIG}" \
# --execution-configuration "${EXEC_CONFIG}" \
# --app-arn "$(cat app_arn.txt)")
I can see these parts were left off the action inputs.
If I can i'll make a PR.