Review Request 1757: Add indication testing framework
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/1757/
-----------------------------------------------------------
Review request for OpenLMI Developers.
Repository: openlmi-providers
Description
-------
A small test framework for testing LMI Indications. Oriented on
data-driven testing approach and capable of "provoking" events
and tracking relevant indications.
Classes should be extended on provider-level to include provider-
-specific actions and knowledge.
~~
This is followup to request #1740.
Since then:
* Split to 3 commits: driver, ind.py framework (this request), account part
* Rewrote old and added missing docstrings
* `IndicationStreamTestCase`: `self.options` renamed to
`self.driver_options`
* `IndicationStreamTestCase` now inherits from `LmiTestCase`
(not `unittest.TestCase`)
* `IndicationStreamTestCase` now loads `self.driver_options` from
os.environ; *or* sets defaults
* Made error from `assertExpectedStream` little bit more useful
* `IndicationTestProbe`: renamed `self.short_cns` to less cryptic
`self.classname_aliases`
Diffs
-----
src/python/lmi/test/ind.py PRE-CREATION
Diff: http://reviewboard-openlmi.rhcloud.com/r/1757/diff/
Testing
-------
Thanks,
Alois Mahdal
9 years, 11 months
Review Request 1756: Add BaseTestDriver base class
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/1756/
-----------------------------------------------------------
Review request for OpenLMI Developers.
Repository: openlmi-providers
Description
-------
This will be used for indication test cases
~~
This is followup to request #1740.
Since then:
* Rewrote docstring, explaining options and default_argset
* `TestDriver` renamed to `BaseTestDriver`
* `_run` renamed to `_do_run`
* `args` renamed to `argset`
* `_cleanup` truly hidden; i.e. renamed to `__cleanup`
Diffs
-----
src/python/lmi/test/util.py a28369ef8c303bab85b846d76fde0d77fbed0447
Diff: http://reviewboard-openlmi.rhcloud.com/r/1756/diff/
Testing
-------
Thanks,
Alois Mahdal
9 years, 11 months
Review Request 1741: Add event-based tests for indications (basic set)
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/1741/
-----------------------------------------------------------
Review request for OpenLMI Developers.
Repository: openlmi-providers
Description
-------
Basic set of tests with focus on this flow:
1. add set of subscriptions
2. add set of handlers
3. trigger sequence of "interesting" events
4. collect indications
5. and make assertions as needed
Currently the assertions are mostly that correct classes have been
delivered, reporting the events in correct order.
Diffs
-----
src/account/test/TestIndicationEventStream.py PRE-CREATION
Diff: http://reviewboard-openlmi.rhcloud.com/r/1741/diff/
Testing
-------
Thanks,
Alois Mahdal
9 years, 11 months
Review Request 1740: Add indication testing framework
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/1740/
-----------------------------------------------------------
Review request for OpenLMI Developers.
Repository: openlmi-providers
Description
-------
Add indication testing framework
Set of classes and methods to help with event stream oritnted
tests.
Diffs
-----
src/account/test/common.py 95abd381089506c3f9b4d6632f2303da322fa585
src/python/lmi/test/ind.py PRE-CREATION
src/python/lmi/test/util.py 699507c2340e9a50ff22ce08b67fe3e0a3f9eef8
Diff: http://reviewboard-openlmi.rhcloud.com/r/1740/diff/
Testing
-------
Thanks,
Alois Mahdal
9 years, 11 months
Review Request 1753: Use only one connection for tests
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/1753/
-----------------------------------------------------------
Review request for OpenLMI Developers.
Repository: openlmi-providers
Description
-------
Use the same pattern in LmiTestCase.conn as CIMTestCase.wbemconnection. This saves the time and network bandwidth and also prepares test suite for lmiwbem module, where we could potentially run out of file descriptors range.
Diffs
-----
src/python/lmi/test/lmibase.py 53b61c85a5a16b742e158cf12aa39bc426fa0592
Diff: http://reviewboard-openlmi.rhcloud.com/r/1753/diff/
Testing
-------
Testing was done using Account provider, where the TestAccountInvalidEtc test-case was run.
Thanks,
Peter Hatina
9 years, 11 months
Review Request 1749: providers [1/1] Test: get rid of 'import unittest'
by Stephen Gallagher
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard-openlmi.rhcloud.com/r/1749/
-----------------------------------------------------------
Review request for OpenLMI Developers.
Repository: openlmi-providers
Description
-------
Test: get rid of 'import unittest'
Always use 'from lmi.test import unittest' instead of plain 'import
unittest', because it automagically imports unittest2 on python 2.6.
Diffs
-----
src/service-dbus/test/testService.py 1c0efeca0149c81a265cf4cebde589e25ed3a742
src/python/lmi/base/singletonmixin.py c252676581ca282f9e8c477611d54e8dc7e93a76
src/journald/test/TestWriting.py 7f53a3ceced8ba5cc653be594108e71f0026ea95
src/journald/test/TestIterators.py 4a79b57d8176622a88598f348ae78eff8cdc2808
src/journald/test/TestIndications.py 0a1acf7ef0fa82da4b13f3b398058f3ad9929f80
src/hardware/test/TestHardwareBase.py bea2224c9ba3aa83557fb8c006b083329a6a8050
src/hardware/test/TestHardware.py 949b6a38c9a66ea34568603a047f3e4a255c4146
Diff: http://reviewboard-openlmi.rhcloud.com/r/1749/diff/
Testing
-------
Thanks,
Radek Novacek
9 years, 11 months