Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NovaComputeActionTest test class for virsh_audit action #472

Merged
merged 1 commit into from
Dec 16, 2020
Merged

Add NovaComputeActionTest test class for virsh_audit action #472

merged 1 commit into from
Dec 16, 2020

Conversation

mullumaus
Copy link

Bug #1907409 requested to add a new action 'virsh-audit' to list instances as virsh sees them on the compute node (virsh list --all) (sometimes this disagrees with what nova thinks). This PR added testcase 'test_virsh_audit_action' into new test class 'NovaComputeActionTest'

gerrit review link: https://review.opendev.org/c/openstack/charm-nova-compute/+/766412

@codecov-io
Copy link

codecov-io commented Dec 11, 2020

Codecov Report

Merging #472 (10756f7) into master (7ced54b) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #472      +/-   ##
==========================================
- Coverage   18.23%   18.21%   -0.02%     
==========================================
  Files         158      158              
  Lines        9181     9188       +7     
==========================================
  Hits         1674     1674              
- Misses       7507     7514       +7     
Impacted Files Coverage Δ
zaza/openstack/charm_tests/nova/tests.py 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7ced54b...10756f7. Read the comment docs.

Copy link
Contributor

@thedac thedac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@thedac thedac merged commit cc26746 into openstack-charmers:master Dec 16, 2020
@mullumaus mullumaus deleted the bug/1907409 branch December 18, 2020 02:12
openstack-mirroring pushed a commit to openstack/charm-nova-compute that referenced this pull request Jun 11, 2021
  This new action to list instances as
  virsh sees them on the node (virsh
  list --all), sometimes this disagrees
  with what nova thinks

  Add a new zaza functional test class to
  avoid breaking the older versions

  To run the action, issue command:
  $ juju run-action nova-compute/0 virsh-audit --wait
  unit-nova-compute-0:
  UnitId: nova-compute/0
  id: "134"
  results:
    virsh-domains: |2+
       Id   Name                State
      -----------------------------------
       1    instance-00000001   running
       2    instance-00000002   running
  status: completed
  timing:
    completed: 2020-12-08 11:05:02 +0000 UTC
    enqueued: 2020-12-08 11:04:58 +0000 UTC
    started: 2020-12-08 11:05:01 +0000 UTC

  Closes-Bug: #1907409
  func-test-pr: openstack-charmers/zaza-openstack-tests#472

Change-Id: I222a119199ada82186e2058402a31a40baf7fd7b
openstack-mirroring pushed a commit to openstack/openstack that referenced this pull request Jun 11, 2021
* Update charm-nova-compute from branch 'master'
  to 203140252c5f1cc417e9ddd45c8927edf02711b9
  - Merge "  Add 'virsh-audit' action in nova-compute"
  -   Add 'virsh-audit' action in nova-compute
    
      This new action to list instances as
      virsh sees them on the node (virsh
      list --all), sometimes this disagrees
      with what nova thinks
    
      Add a new zaza functional test class to
      avoid breaking the older versions
    
      To run the action, issue command:
      $ juju run-action nova-compute/0 virsh-audit --wait
      unit-nova-compute-0:
      UnitId: nova-compute/0
      id: "134"
      results:
        virsh-domains: |2+
           Id   Name                State
          -----------------------------------
           1    instance-00000001   running
           2    instance-00000002   running
      status: completed
      timing:
        completed: 2020-12-08 11:05:02 +0000 UTC
        enqueued: 2020-12-08 11:04:58 +0000 UTC
        started: 2020-12-08 11:05:01 +0000 UTC
    
      Closes-Bug: #1907409
      func-test-pr: openstack-charmers/zaza-openstack-tests#472
    
    Change-Id: I222a119199ada82186e2058402a31a40baf7fd7b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants