You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need an integrationtest against one or more versions of OpenNebula. @michael-os: You said you already created some tests? Would you push them to a branch?
I started to prepare a travis config which installs a version of ONe and let us run tests against the oned.
Unfortunately, I lost that work during a hard-disk accident, but it wasn't that much anyhow. Mainly, I had prepared a Dockerfile that could be used to launch an OpenNebula on a developer machine. I guess we should synchronize this effort and the travis config so that we can use the same tests either locally or on travis.org.
In the repo is also a config file for tox (tox-integrationtests.ini) which uses local virtual machines to test the lib against.
At the moment the virtual machines only exist on my notebook which doesn't scale that well :-).
I'll setup a machine to run the different vms and opennebula versions and connect a Jenkins to run the test on each pull request.
How i run the tests:
The integration tests only run when the environment variable OCA_INT_TESTS is set. I set them to the version number of the OpenNebula instance to test. The XMLRPC address and the ONE_AUTH also read from the environment. I export "OCA_INT_TESTS_ONE_AUTH=oneadmin:password" before starting the integration test with "tox -c tox-integrationtests.ini".
@mattthias oh, sorry. OK I'll have to think about that.
Is there any solution for spinning up VMs for free as soon as we are a open source project?
Because even if dockerize OpenNebula we can't test VM creation, removal, VM attribute editing and so on.
The tests we have now do not cover these cases, so there is no problem right now, but it would be cool to cover this as well.
It's not super cool to depend on your machines. We could probably provide them from our side, but that's also bad. This project should rely on someone's internal infrastructure.
Also did you configure VMs manually or maybe have a vagrantfile so I could easily spin up VMs? Just reworked the code to be py3 compatible, wanted to run integration tests to check if everything goes well.
Activity
michael-os commentedon Jul 2, 2015
Unfortunately, I lost that work during a hard-disk accident, but it wasn't that much anyhow. Mainly, I had prepared a Dockerfile that could be used to launch an OpenNebula on a developer machine. I guess we should synchronize this effort and the travis config so that we can use the same tests either locally or on travis.org.
michael-os commentedon Jul 2, 2015
Have you published your work on the travis config already or if not, could you publish it (possibly to some branch)?
sysradium commentedon Aug 1, 2016
@mattthias did you make any progress about that Dockerfile?
mattthias commentedon Aug 1, 2016
Hi @sysradium,
@michael-os had a Dockerfile prepared, not me :). For the (very minimal) integration tests i created look at oca/tests/integration_test_client.py and oca/tests/integration_test_template.py.
In the repo is also a config file for tox (tox-integrationtests.ini) which uses local virtual machines to test the lib against.
At the moment the virtual machines only exist on my notebook which doesn't scale that well :-).
I'll setup a machine to run the different vms and opennebula versions and connect a Jenkins to run the test on each pull request.
How i run the tests:
The integration tests only run when the environment variable OCA_INT_TESTS is set. I set them to the version number of the OpenNebula instance to test. The XMLRPC address and the ONE_AUTH also read from the environment. I export "OCA_INT_TESTS_ONE_AUTH=oneadmin:password" before starting the integration test with "tox -c tox-integrationtests.ini".
sysradium commentedon Aug 1, 2016
@mattthias oh, sorry. OK I'll have to think about that.
Is there any solution for spinning up VMs for free as soon as we are a open source project?
Because even if dockerize OpenNebula we can't test VM creation, removal, VM attribute editing and so on.
The tests we have now do not cover these cases, so there is no problem right now, but it would be cool to cover this as well.
It's not super cool to depend on your machines. We could probably provide them from our side, but that's also bad. This project should rely on someone's internal infrastructure.
Also did you configure VMs manually or maybe have a vagrantfile so I could easily spin up VMs? Just reworked the code to be py3 compatible, wanted to run integration tests to check if everything goes well.