
What works: - All the add/delete/update APIs integrated with UI and tested end to end - Basic unit tests that test the above metioned APIs. What (may) not be working or in other words is not fully tested - Actual deletes of the VM, it used to work, but code has gone through major changes so need to test again. - Cases: -- Making sure Override of the lease works. -- Cases where VM changes tenants or is deleted before the lease expiry -- Removal of the tenant (not tested at all) Next steps: - Better unit test cases - better verification - Deployment scripts (Ansible playbooks) Adding a manage script for managing database upgrade script Adding manage.py
20 lines
570 B
Bash
Executable File
20 lines
570 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (c) Platform9 systems. All rights reserved
|
|
output_dir=./build
|
|
log_filter=-paramiko.transport
|
|
setup_venv() {
|
|
virtualenv ${output_dir}/venv
|
|
source ${output_dir}/venv/bin/activate
|
|
pip install -e .
|
|
}
|
|
|
|
run_tests() {
|
|
python ./test/run_tests.py --verbose --with-xunit --xunit-file=${output_dir}/test_output.xml \
|
|
--logging-clear-handlers ${exclude} ${nocapture} --logging-filter=${log_filter} ${module} \
|
|
--logging-format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s'
|
|
}
|
|
|
|
setup_venv
|
|
run_tests
|
|
|