← 输入框|github.com|刷新
Skip to content

integration tests with travis #6

Open

Description

@mattthias

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.

Activity

  1. self-assigned this
    on Jun 26, 2015
  2. michael-os commented on Jul 2, 2015

    @michael-os
    Contributor

    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.

  3. michael-os commented on Jul 2, 2015

    @michael-os
    Contributor

    Have you published your work on the travis config already or if not, could you publish it (possibly to some branch)?

  4. sysradium commented on Aug 1, 2016

    @sysradium
    Collaborator

    @mattthias did you make any progress about that Dockerfile?

  5. mattthias commented on Aug 1, 2016

    @mattthias
    MemberAuthor

    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".

  6. sysradium commented on Aug 1, 2016

    @sysradium
    Collaborator

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions