Skip to content
  • Caio Carrara's avatar
    b7287d42
    tests.acceptance: adds multi vm capability for acceptance tests · b7287d42
    Caio Carrara authored
    
    
    This change adds the possibility to write acceptance tests with multi
    virtual machine support. It's done keeping the virtual machines objects
    stored in a test attribute (dictionary). This dictionary shouldn't be
    accessed directly but through the new method added `get_vm`. This new
    method accept a list of args (that will be added as virtual machine
    arguments) and an optional name argument. The name is the key that
    identify a single virtual machine along the test machines available. If
    a name without a machine is informed a new machine will be instantiated.
    
    The current usage of vm in tests will not be broken by this change since
    it keeps a property called vm in the base test class. This property only
    calls the new method `get_vm` with default parameters (no args and
    'default' as machine name).
    
    Signed-off-by: default avatarCaio Carrara <ccarrara@redhat.com>
    Reviewed-by: default avatarCleber Rosa <crosa@redhat.com>
    Reviewed-by: default avatarWainer dos Santos Moschetta <wainersm@redhat.com>
    Message-Id: <20190212193855.13223-2-ccarrara@redhat.com>
    Signed-off-by: default avatarCleber Rosa <crosa@redhat.com>
    b7287d42
    tests.acceptance: adds multi vm capability for acceptance tests
    Caio Carrara authored
    
    
    This change adds the possibility to write acceptance tests with multi
    virtual machine support. It's done keeping the virtual machines objects
    stored in a test attribute (dictionary). This dictionary shouldn't be
    accessed directly but through the new method added `get_vm`. This new
    method accept a list of args (that will be added as virtual machine
    arguments) and an optional name argument. The name is the key that
    identify a single virtual machine along the test machines available. If
    a name without a machine is informed a new machine will be instantiated.
    
    The current usage of vm in tests will not be broken by this change since
    it keeps a property called vm in the base test class. This property only
    calls the new method `get_vm` with default parameters (no args and
    'default' as machine name).
    
    Signed-off-by: default avatarCaio Carrara <ccarrara@redhat.com>
    Reviewed-by: default avatarCleber Rosa <crosa@redhat.com>
    Reviewed-by: default avatarWainer dos Santos Moschetta <wainersm@redhat.com>
    Message-Id: <20190212193855.13223-2-ccarrara@redhat.com>
    Signed-off-by: default avatarCleber Rosa <crosa@redhat.com>
Loading