This folder contains the mandatory tests for deploying HWID Service.
Creates an docker image which has AppEngine-like environments, and processes tests over it. The image contains several python packges, including:
integration_test.py
builds an AppEngine integrated docker image by calling deploy/cros_hwid_service.sh build
.py/hwid/service/appengine/*_test.py
.Place your test in the py/hwid/service/appengine/
and suffixed with _test.py
To run the test, you can type:
./integration_test.py
You can also enter the environment to do some test.
deploy/cros_hwid_service.sh build docker run -it $(docker ps -lq) /bin/bash
The factory root is at /usr/src/cros/factory
Running end-to-end tests.
Before running the e2e_test, you have to deploy HWID Service staging by cros_hwid_service.sh deploy staging
.
To add tests, you have to modify config file factory-private/config/hwid/service/appengine/test/e2e_test.json
.