Remove unused SUBMITTED audit state

Bug #1634150 reported by Vincent Françoise
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Fix Released
Low
Jaewoo Park

Bug Description

The SUBMITTED is not reference nor used within the Watcher codebase. Therefore, we should remove all its references from the code.

Here are the files containing the references to remove:

watcher/objects/audit.py
watcher/tests/api/v1/test_actions.py
watcher/tests/api/v1/test_audit_templates.py
watcher/tests/api/v1/test_audits.py
watcher_tempest_plugin/tests/api/admin/test_audit.py

Changed in watcher:
importance: Undecided → Low
Jaewoo Park (aselius)
Changed in watcher:
assignee: nobody → Jaewoo Park (aselius)
Revision history for this message
Jaewoo Park (aselius) wrote :

for the tests(actions, audit_templates, audits) that makes use of the submitted state, is it fine to remove the test altogether? it looks like most of the tests are disallowing update when the state is submitted.

Revision history for this message
Vincent Françoise (vincent-francoise) wrote :

Seems to me the tests referencing the SUBMITTED state do not need that specific value to work, so I reckon you should probably just replace the SUBMITTED with another state, say, SUCCEEDED.

In the case of watcher_tempest_plugin/tests/api/admin/test_audit.py, simply removing the value from the list should suffice.

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

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

Changed in watcher:
status: Triaged → In Progress
Changed in watcher:
milestone: none → ocata-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to watcher (master)

Reviewed: https://review.openstack.org/394635
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=4973dd6bf642507541426cf6db934c41b61ee54b
Submitter: Jenkins
Branch: master

commit 4973dd6bf642507541426cf6db934c41b61ee54b
Author: Jaewoo Park <email address hidden>
Date: Mon Nov 7 13:16:31 2016 -0800

    Remove unused SUBMITTED audit state

    Submitted state is not referenced nor used in the Watcher codebase,
    and hence removed the references to the state from the codebase.

    Change-Id: Ibb0cf5125e2d93683739abf35030b7cf5cb1b056
    Closes-Bug: 1634150

Changed in watcher:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/watcher 0.32.0

This issue was fixed in the openstack/watcher 0.32.0 release.

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.