UI tests use the open source out of the box Django Test Framework. These are standard Python unit tests with a few additional Django helpers. Tests use command line credentials. Tests can be executed per Django instructons or via the helper bash script:
bash install/deploy.sh
- Option 1) Developer Menu
- Option 3) Test UI
- You may be asked for a Cloud Project ID ( use the ID, not the Name, not the Number )
- You may be asked for Service Credentials.
- You may be asked for Installed Client Credentials.
- starthinker_ui/recipe/tests.py
- starthinker_ui/website/tests.py
- starthinker_ui/account/tests.py
- starthinker_ui/project/tests.py
When the UI is active it saves recipes to the local database. Those recipes can be executed by the worker using the following commands:
source starthinker_assets/development.sh
python starthinker_ui/manage.py job_worker --test --verbose --jobs 1
This will execute one loop of the worker, pulling one recipe at a time from the local databse and executing it as the worker.
- Google Cloud Credentials - where you manage your credentials.
- Google Cloud Billing - examine costs in real time.
© 2019 Google Inc. - Apache License, Version 2.0