Testcase 'test_create_continuous_audit_with_wrong_interval' was broken

Bug #1933708 reported by Eric Xie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Fix Released
Medium
Unassigned
watcher (Ubuntu)
New
Undecided
Unassigned

Bug Description

In the latest zuul results, got broken testcase:

==============================
Failed 1 tests - output below:
==============================

watcher.tests.api.v1.test_audits.TestPost.test_create_continuous_audit_with_wrong_interval
------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/usr/lib/python3.6/unittest/mock.py", line 1183, in patched
    return func(*args, **keywargs)

      File "/home/zuul/src/opendev.org/openstack/watcher/watcher/tests/api/v1/test_audits.py", line 705, in test_create_continuous_audit_with_wrong_interval
    self.assertIn(expected_error_msg, response.json['error_message'])

      File "/home/zuul/src/opendev.org/openstack/watcher/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 421, in assertIn
    self.assertThat(haystack, Contains(needle), message)

      File "/home/zuul/src/opendev.org/openstack/watcher/.tox/py36/lib/python3.6/site-packages/testtools/testcase.py", line 502, in assertThat
    raise mismatch_error

    testtools.matchers._impl.MismatchError: 'Exactly 5 or 6 columns has to be specified for iteratorexpression.' not in '{"faultcode": "Server", "faultstring": "Exactly 5 or 6 columns has to be specified for iterator expression.", "debuginfo": null}'

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

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/watcher/+/798178

Changed in watcher:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on watcher (master)

Change abandoned by "Eric Xie <eric_xiett@163.com>" on branch: master
Review: https://review.opendev.org/c/openstack/watcher/+/798178
Reason: Already fix this.

Revision history for this message
Dantali0n (dantalion) wrote :

The behavior between master and stable/wallaby is different, If I add the space to the test case on stable/wallaby jobs fail on zuul..

Revision history for this message
Dantali0n (dantalion) wrote :

We should keep an eye on this and see if it regresses on stable branches. The difference in behavior on master and stable/wallaby is peculiar.

Changed in watcher:
status: In Progress → Fix Released
importance: Undecided → Medium
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Was this actually fix released or did it just go away? I'm still hitting it on Ubuntu builds from the tip of upstream master.

no longer affects: ubuntu
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.