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

Migrate 499 cinder-ceph test to zaza #246

Conversation

ajkavanagh
Copy link
Contributor

This takes the 499 test from basic_deployment.py (Amulet) test and
ports it over to zaza.

@codecov-io
Copy link

codecov-io commented Apr 21, 2020

Codecov Report

Merging #246 into master will decrease coverage by 0.08%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #246      +/-   ##
==========================================
- Coverage   20.48%   20.39%   -0.09%     
==========================================
  Files         129      133       +4     
  Lines        7206     7236      +30     
==========================================
  Hits         1476     1476              
- Misses       5730     5760      +30     
Impacted Files Coverage Δ
zaza/openstack/charm_tests/ceph/mon/__init__.py 0.00% <0.00%> (ø)
zaza/openstack/charm_tests/ceph/mon/tests.py 0.00% <0.00%> (ø)
zaza/openstack/charm_tests/aodh/tests.py 0.00% <0.00%> (ø)
zaza/openstack/charm_tests/nova/tests.py 0.00% <0.00%> (ø)
zaza/openstack/charm_tests/cinder/tests.py 0.00% <0.00%> (ø)
zaza/openstack/charm_tests/glance/tests.py 0.00% <0.00%> (ø)
zaza/openstack/charm_tests/designate/tests.py 0.00% <0.00%> (ø)
zaza/openstack/charm_tests/barbican/__init__.py 0.00% <0.00%> (ø)
... and 1 more

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 d8daabe...ce2b067. Read the comment docs.

This takes the 499 test from basic_deployment.py (Amulet) test and
ports it over to zaza.
The cinder tests were written with the assumption that cinder was the
charm that was under test.  This modifies the test so that the cinder
tests work in a model with cinder where cinder isn't the application
that is being explicitly tested.
This is the missing 500 test from the previous amulet tests that were
missed on the first pass.
@ajkavanagh ajkavanagh force-pushed the cinder-ceph-additional-tests branch from b7d2d52 to 4c2f723 Compare May 13, 2020 13:34
There was a race before a block_until_all_units_idle() where it
could blast through the check before it started removing the relation.
This ensures that it waits until something happens and then waits for it
to finish.
@codecov-commenter
Copy link

Codecov Report

Merging #246 into master will decrease coverage by 0.49%.
The diff coverage is 1.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #246      +/-   ##
==========================================
- Coverage   20.35%   19.85%   -0.50%     
==========================================
  Files         136      138       +2     
  Lines        7429     7635     +206     
==========================================
+ Hits         1512     1516       +4     
- Misses       5917     6119     +202     
Impacted Files Coverage Δ
zaza/openstack/charm_tests/ceph/mon/__init__.py 0.00% <0.00%> (ø)
zaza/openstack/charm_tests/ceph/mon/tests.py 0.00% <0.00%> (ø)
zaza/openstack/charm_tests/cinder/tests.py 0.00% <0.00%> (ø)
zaza/openstack/utilities/exceptions.py 100.00% <100.00%> (ø)
zaza/openstack/configure/guest.py 0.00% <0.00%> (ø)
zaza/openstack/utilities/openstack.py 53.58% <0.00%> (ø)
zaza/openstack/charm_tests/mysql/tests.py 0.00% <0.00%> (ø)
zaza/openstack/charm_tests/octavia/setup.py 0.00% <0.00%> (ø)
...aza/openstack/charm_tests/ceph/rbd_mirror/tests.py 0.00% <0.00%> (ø)
... and 4 more

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 bc2377c...ec40306. Read the comment docs.

@ajkavanagh
Copy link
Contributor Author

Bug #289 raised for refactoring bits to zaza library.

@ChrisMacNaughton ChrisMacNaughton merged commit bdd0bca into openstack-charmers:master May 20, 2020
openstack-mirroring pushed a commit to openstack/charm-cinder-ceph that referenced this pull request May 20, 2020
Use the same assertions as the cinder charm. Also port the 499 original
test, which is in the associated depends in zaza-openstack-tests.

Change-Id: I86f2ab205d0f082dd6b185ccbfa314bccf4e5bfb
func-test-pr: openstack-charmers/zaza-openstack-tests#246
Closes-Bug: #1828424
openstack-mirroring pushed a commit to openstack/openstack that referenced this pull request May 20, 2020
* Update charm-cinder-ceph from branch 'master'
  - Move charm tests to zaza
    
    Use the same assertions as the cinder charm. Also port the 499 original
    test, which is in the associated depends in zaza-openstack-tests.
    
    Change-Id: I86f2ab205d0f082dd6b185ccbfa314bccf4e5bfb
    func-test-pr: openstack-charmers/zaza-openstack-tests#246
    Closes-Bug: #1828424
@ajkavanagh ajkavanagh deleted the cinder-ceph-additional-tests branch May 20, 2020 14:17
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

4 participants