Commit Graph

8 Commits

Author SHA1 Message Date
gabrielg5 c21ad14910 Fixed copyright notice in some tests scripts. 2024-09-02 11:05:17 -03:00
Gabriel Gonzalez 9b4a139405 Updated Copyright to 2023 2023-07-31 11:48:28 -03:00
Gabriel Gonzalez 8799a1a2c4 Update file banners to reflect Fortra ownership 2022-12-14 17:28:23 -03:00
Martin Gallo c39fc6e48c Tests: Simplify remote configuration (#1131)
* Merged TCP and SMB transport configuration into only one.
* Abstracted remote configuration parsing routines into functions.
* Remote config file can now be specified as pytest option.
* Added some notes on testing guide.
2021-07-29 12:37:30 -03:00
Martin Gallo 0b4a759fb8 Tests: Refactors to some tests
* Moved binary hashes to base class
* Using assertEqual instead of assertTrue when possible
* Fixed a couple of bad assertions
2021-07-21 16:02:07 -07:00
Martin Gallo 2d32383811 Tests: Refactored configuration of remote test cases (#1122)
Refactored configuration to avoid duplicated code.

Main changes are:
* Moved AES keys config to base class
* Moved hash split to base class
* Made machine hashes parameters optional
* Made AES keys parameters optional
* Updated testing guide
2021-07-16 10:44:12 -03:00
Martin Gallo 6bb5ea427b Tests: Continue refactor of test cases (#1112)
Continue refactor some of our test cases structure.

Main changes introduced are:
* Moved testing guide as a separate file and added some of the steps to configure the test environment.
* Leveraging unittest.main to catch command-line args and build the default suite.
* Only running GitHub actions workflow once for our own branches/PRs.
* Remote test config file can be specified via an env var now.
* Moved remote test config to a template and ignored config file.
2021-07-02 12:22:14 -03:00
Martin Gallo 658e0ab8e1 Tests: First batch of changes on refactoring test cases (#1102)
Tests: First batch of changes on refactoring test cases

This is the first part of a larger effort to refactor some of our test cases structure.

Main changes introduced are:
- Using pytest as the testing framework to organize and mark test cases.
- Replacing custom bash scripts with test cases discovery.
- Integrating pytest-cov plugin to easier coverage collection and reporting.
- Marking remote test cases to being able to pick those during run.
- Abstracted remote test cases configuration in a base class.
- Consolidating pytest, coverage and tox configuration in a single tox.ini file.
- Removed some Python 2.5 support and replaced custom compat checks with six.
- Replace unittest.TextTestRunner.run by unittest.main (cherry-picked from f5dab5ca76, thanks @franferrax !)
2021-06-25 11:19:52 -03:00