We're updating the issue view to help you get more done. 

test should ignore 'last_state_change_time' item when comparing pbsnodes status in pbs_cray_vode_per_numa.py

Description

Acceptance Criteria

test_cray_login_node in pbs_basil_support.py and test_settings in pbs_cray_vode_per_numa.py test fail on Kachina because of comparing 'last_state_change_time' item in the pbsnodes status.

Suggested fix is to ignore this field when doing comparisons as the timestamp is dynamic.

===
1) test_cray_login_node in pbs_basil_support.py
2018-04-20 14:12:42,562 INFO Traceback (most recent call last):
File "/tmp/ptl/tests/functional/pbs_basil_support.py", line 308, in test_cray_login_node
(mom_id, rsc, val, rsc, rval))
AssertionError: vnode1 : pbs node has last_state_change_time=Fri Apr 20 14:12:02 2018 but login node has last_state_change_time=Fri Apr 20 14:11:45 2018

2) test_settings in pbs_cray_vode_per_numa.py (I added debug logs for this test to figure out that the differing item was the 'last_state_change_time'.)

2018-04-20 13:34:29,148 INFO pbsnodes outputs are equal in length.
2018-04-20 13:34:29,148 ERROR ERROR vnode vnode1 has differing element.
2018-04-20 13:34:29,148 INFO FAILED
2018-04-20 13:34:29,149 INFO ======================================
2018-04-20 13:34:29,149 INFO Entered TestVnodePerNumaNode tearDown
2018-04-20 13:34:29,149 INFO ======================================
2018-04-20 13:34:29,149 INFO =======================================
2018-04-20 13:34:29,149 INFO Completed TestVnodePerNumaNode tearDown
2018-04-20 13:34:29,149 INFO =======================================
2018-04-20 13:34:29,150 INFO
2018-04-20 13:34:29,150 INFO ======================================================================
2018-04-20 13:34:29,150 INFO FAILED: test_settings (tests.functional.pbs_cray_vnode_per_numa.TestVnodePerNumaNode)
2018-04-20 13:34:29,150 INFO __m_oo_m__
2018-04-20 13:34:29,150 INFO Traceback (most recent call last):
File "/tmp/ptl/tests/functional/pbs_cray_vnode_per_numa.py", line 181, in test_settings
self.assertTrue(False)
AssertionError: False is not true

Status

Assignee

Unassigned

Reporter

Shilpa Kodli

Severity

None

OS

None

Start Date

None

Pull Request URL

None

Story Points

1

Components

Priority

Low