[python-fuelclient] Failed running set of tests from TestNodeExecuteTasksAction with non-default SERVER_ADDRESS and SERVER_PORT parameters

Bug #1583440 reported by Vitalii Kulanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Vitalii Kulanov
Mitaka
Won't Fix
Medium
Vitalii Kulanov
Newton
Fix Committed
Medium
Vitalii Kulanov

Bug Description

Detailed bug description:
 Running tests: *fuelclient.tests.unit.v1.test_nodes_execute_tasks.TestNodeExecuteTasksAction.test_execute_provided_list_of_tasks
*fuelclient.tests.unit.v1.test_nodes_execute_tasks.TestNodeExecuteTasksAction.test_execute_provided_list_of_tasks_w_force
with non-default SERVER_ADDRESS and SERVER_PORT parameters for fuel-client are failed.

Steps to reproduce:
 1. Clone python-fuelclient from https://github.com/openstack/python-fuelclient
 2. Change SERVER_ADDRESS and SERVER_PORT parameters for fuel-client from default to a new one.
 3. Start tests

Expected results:
All tests passed successfully

Actual result:
==============================
Failed 2 tests - output below:
==============================

fuelclient.tests.unit.v1.test_nodes_execute_tasks.TestNodeExecuteTasksAction.test_execute_provided_list_of_tasks
----------------------------------------------------------------------------------------------------------------

Captured stdout:
~~~~~~~~~~~~~~~~
    Started tasks ['netconfig', 'hiera', 'install'] for nodes nodes [1, 2].

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "fuelclient/tests/unit/v1/test_nodes_execute_tasks.py", line 41, in test_execute_provided_list_of_tasks
        'http://127.0.0.1:8000/api/v1/clusters/1/deploy_tasks/?nodes=1,2')
      File "/home/machin/Projects/openstack/python-fuelclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 362, in assertEqual
        self.assertThat(observed, matcher, message)
      File "/home/machin/Projects/openstack/python-fuelclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
        raise mismatch_error
    testtools.matchers._impl.MismatchError: !=:
    reference = 'http://127.0.0.1:8003/api/v1/clusters/1/deploy_tasks/?nodes=1,2'
    actual = 'http://127.0.0.1:8000/api/v1/clusters/1/deploy_tasks/?nodes=1,2'

fuelclient.tests.unit.v1.test_nodes_execute_tasks.TestNodeExecuteTasksAction.test_execute_provided_list_of_tasks_w_force
------------------------------------------------------------------------------------------------------------------------

Captured stdout:
~~~~~~~~~~~~~~~~
    Started tasks ['netconfig', 'hiera', 'install'] for nodes nodes [1, 2].

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "fuelclient/tests/unit/v1/test_nodes_execute_tasks.py", line 51, in test_execute_provided_list_of_tasks_w_force
        'http://127.0.0.1:8000/api/v1/clusters/1/deploy_tasks/?nodes=1,2'
      File "/home/machin/Projects/openstack/python-fuelclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 362, in assertEqual
        self.assertThat(observed, matcher, message)
      File "/home/machin/Projects/openstack/python-fuelclient/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
        raise mismatch_error
    testtools.matchers._impl.MismatchError: !=:
    reference = 'http://127.0.0.1:8003/api/v1/clusters/1/deploy_tasks/?nodes=1,2&force=1'
    actual = 'http://127.0.0.1:8000/api/v1/clusters/1/deploy_tasks/?nodes=1,2&force=1'

======
Totals
======
Ran: 417 tests in 10.0000 sec.
 - Passed: 415
 - Skipped: 0
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 2
Sum of execute time for each test: 7.3530 sec.

Reproducibility:
 Always

Additional information:
The problem is that SERVER_ADDRESS and SERVER_PORT from here
https://github.com/openstack/python-fuelclient/blob/master/fuelclient/tests/unit/v1/test_nodes_execute_tasks.py#L41 and here https://github.com/openstack/python-fuelclient/blob/master/fuelclient/tests/unit/v1/test_nodes_execute_tasks.py#L51
should be taken from fuel-client config.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-fuelclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/318456

Changed in fuel:
assignee: nobody → Vitalii Kulanov (vitaliy-t)
status: New → In Progress
Revision history for this message
Dmitry Klenov (dklenov) wrote : Re: [python-fuelclient] Failed running fuelclient.tests.unit.v1.test_nodes_execute_tasks.TestNodeExecuteTasksAction.test_execute_provided_list_of_tasks and fuelclient.tests.unit.v1.test_nodes_execute_tasks.TestNodeExecuteTasksAction.test_execute_provided_list_of_tasks_w_force with non-default SERVER_ADDRESS and SERVER_PORT parameters

@Vitalii, please put more laconic title.

summary: - [python-fuelclient] Failed running
- fuelclient.tests.unit.v1.test_nodes_execute_tasks.TestNodeExecuteTasksAction.test_execute_provided_list_of_tasks
- and
- fuelclient.tests.unit.v1.test_nodes_execute_tasks.TestNodeExecuteTasksAction.test_execute_provided_list_of_tasks_w_force
- with non-default SERVER_ADDRESS and SERVER_PORT parameters
+ [python-fuelclient] Failed running set of tests from
+ TestNodeExecuteTasksAction with non-default SERVER_ADDRESS and
+ SERVER_PORT parameters
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-fuelclient (master)

Reviewed: https://review.openstack.org/318456
Committed: https://git.openstack.org/cgit/openstack/python-fuelclient/commit/?id=c0d778b09cb16ff85da9bfb6f047a1feb63be366
Submitter: Jenkins
Branch: master

commit c0d778b09cb16ff85da9bfb6f047a1feb63be366
Author: tivaliy <email address hidden>
Date: Thu May 19 08:43:39 2016 +0300

    Align tests for non-default server config

    Change-Id: Id7dfb153ef6583fb28d142113b2a172eb144b878
    Closes-Bug: 1583440

Changed in fuel:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.