fix unit tests

Bug #1846802 reported by Kevin W Monroe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Etcd Charm
Fix Released
Wishlist
Kevin W Monroe

Bug Description

Unit tests are broken:

https://travis-ci.org/charmed-kubernetes/layer-etcd/builds/592705370

-----
unit_tests/test_etcdctl.py::TestEtcdCtl::test_register FAILED [ 16%]
unit_tests/test_etcdctl.py::TestEtcdCtl::test_unregister FAILED [ 33%]
unit_tests/test_etcdctl.py::TestEtcdCtl::test_member_list FAILED [ 50%]
unit_tests/test_etcdctl.py::TestEtcdCtl::test_member_list_with_unstarted_member FAILED [ 66%]
unit_tests/test_etcdctl.py::TestEtcdCtl::test_etcd_v2_version FAILED [ 83%]
unit_tests/test_etcdctl.py::TestEtcdCtl::test_etcd_v3_version FAILED [100%]
=================================== FAILURES ===================================
__________________________ TestEtcdCtl.test_register ___________________________
Fixture "etcdctl" called directly. Fixtures are not meant to be called directly,
but are created automatically when test functions request them as parameters.
See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
_________________________ TestEtcdCtl.test_unregister __________________________
Fixture "etcdctl" called directly. Fixtures are not meant to be called directly,
but are created automatically when test functions request them as parameters.
See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
_________________________ TestEtcdCtl.test_member_list _________________________
Fixture "etcdctl" called directly. Fixtures are not meant to be called directly,
but are created automatically when test functions request them as parameters.
See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
______________ TestEtcdCtl.test_member_list_with_unstarted_member ______________
Fixture "etcdctl" called directly. Fixtures are not meant to be called directly,
but are created automatically when test functions request them as parameters.
See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
_______________________ TestEtcdCtl.test_etcd_v2_version _______________________
Fixture "etcdctl" called directly. Fixtures are not meant to be called directly,
but are created automatically when test functions request them as parameters.
See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
_______________________ TestEtcdCtl.test_etcd_v3_version _______________________
Fixture "etcdctl" called directly. Fixtures are not meant to be called directly,
but are created automatically when test functions request them as parameters.
See https://docs.pytest.org/en/latest/fixture.html for more information about fixtures, and
https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly about how to update your code.
-----

Changed in charm-etcd:
assignee: nobody → Kevin W Monroe (kwmonroe)
importance: Undecided → Wishlist
status: New → In Progress
Revision history for this message
Kevin W Monroe (kwmonroe) wrote :
Changed in charm-etcd:
status: In Progress → Fix Committed
milestone: none → 1.17
Changed in charm-etcd:
status: Fix Committed → Fix Released
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.