summaryrefslogtreecommitdiffstats
path: root/tests/duplicates
Commit message (Collapse)AuthorAgeFilesLines
* Auto-generated output from python-blackThanh Ha2019-09-091-2/+2
| | | | | | | | | Please review the following patch containing the code changes in the repo. This patch is a transition patch and is the auto-generated output of the python-black tool. Change-Id: I2d2de71da8a105fb62b561899ae78441ddab4032 Signed-off-by: Thanh Ha <zxiiro@gmail.com>
* Normalize newlines at end of fileSorin Sbarnea2018-06-292-2/+0
| | | | | | | | Preparatory move for adopting pre-commit hooks. Shoudl only remove newlines and spaces at end of files. Change-Id: Ia33679467c533722b9308f7e7b74be395c926428 Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
* Refactor base test classes inheritance for reuseDarragh Bailey2016-09-141-7/+3
| | | | | | | | | | | Refactor base test class inheritance to allow for BaseTest class to be reused without needing to also import the TestCase class everywhere in order to avoid having the common test function executed on base classes. This makes it easier to build base testing classes and then simplifies the subclassing of these for actual tests. Change-Id: I89809e8082469f814f245db4a9ab7658aac8a405
* Update Git SCM so that extensions are configured correctly.Jeff Grafton2016-06-066-80/+0
| | | | | | | Many configuration options have been extensions for at least 2 years, so update the generated XML to actually configure these options. Change-Id: Ic22ca4a6b8d61c977979a5eb63a2e884dc4391bd
* Reorder imports to match hacking guidelinesDarragh Bailey2015-12-231-2/+3
| | | | | | | Ensure that the imports follow the standard OpenStack hacking guidelines. Change-Id: Iaa4326aef118ddfd807dd006934f1d9ca80a1cfa
* Capture logs with FakeLogging FixtureDarragh Bailey2015-09-301-2/+2
| | | | | | | Capture logs to attach them on exceptions to simplify the debugging of errors in tests when they occur. Change-Id: I5c1b5c306aba37789a8d41eabf65e0ac628af838
* Allow whitespace to be significantDarragh Bailey2015-08-114-4/+6
| | | | | | | | | | | | Remove the test options suppressing ignoring differences in whitespace outputted in the XML to allow capturing of issues where the code incorrectly adds or removes significant whitespace. Add a helper function to deal with the edge case of parsing XML directly that contains non significant whitespace to avoid accidentally adding excess whitespace when minidom outputs the resulting document. Change-Id: I9936042cd82c204ba2b3c19f575703e33564f7fd
* Treat non-existant output files as empty filesDarragh Bailey2015-03-238-0/+0
| | | | | | | | | | Replace requiring empty files for tests that produce no output and treat any non-existant output file candidate as though the output is blank. This simplifies tests that are intended to trigger exceptions and will not generate an output. Change-Id: I978fdabb488bc3e4bc6f22db294d21ca5d68913b
* Implement recursive search for test fixtures.Wayne2015-02-051-1/+1
| | | | | | | This allows hierarchical organization of test scenarios which I consider an improvement over the current setup. Change-Id: I079bfa984832e991712099e0ed353d7c2470dc5b
* Merge "Update SCM Git Clean configuration to use new extensions style"Jenkins2015-02-046-8/+0
|\
| * Update SCM Git Clean configuration to use new extensions styleThanh Ha2015-02-036-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the extensions style configuration for setting the SCM Git clean configuration. With this format we deprecate the older (clean: bool) configuration format and replace it with this format: clean: after: bool before: bool The older configuration is still supported so users who did not update their YAML files can upgrade without updating all their YAML files first. Change-Id: I1cfc0e2951c2b4de5e67bcb8abdf0b8c070e7fc6 Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
* | Merge "Update SCM Wipe workspace to use extensions style"Jenkins2015-02-046-8/+24
|\|
| * Update SCM Wipe workspace to use extensions styleThanh Ha2015-02-036-8/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the newer extensions style configuration for the SCM Wipe workspace option. This change simply changes the output style of this configuration leaving the original YAML configuration values in tact so it is backwards compatible with the old style configuration for wipe-workspace setting. While this patch still sets the old <wipeOutWorkspace> value long with the new extensions value. Jenkins appears to be happy with both values present and prefers the extensions format if it exists. This should allow the older Jenkins that only supports the older config format to continue to work. Change-Id: Ib5b1809d19a35f83f524ee84b18f0c58b851c70b Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
* | Use mock in a Python 3.4 compatible wayJeremy Stanley2015-01-291-2/+5
|/ | | | | | Related to https://code.google.com/p/mock/issues/detail?id=234 Change-Id: I85549fdba7b9cb575850a12d52e1ffb0d2dba8c0
* add support to git for changelog against branchKyle Rockman2014-11-216-0/+8
| | | | | | | added support for another extension type, and fix how extensions are populated to xml Change-Id: Ic9cf21a268d4ee3fb9b9efdee65c3d49e0cdb31e Signed-off-by: Kyle Rockman <kyle.rockman@mac.com>
* Error on duplicate job names being foundDarragh Bailey2014-09-3037-0/+715
When parsing yaml files, any duplicate macros, job-templates, job-groups or jobs should be considered an error by default, but provide a config option for this to be ignored. Need to check for seen jobs twice, when processing job groups listed under projects and again the jobs have been generated from templates. Use a set and store each job name generated and check on the next iteration. Finally walk the list of generated jobs and check if any duplicates are encountered. Also ensure that if the user wishes for duplicates to be ignored that the last defined job replaces the earlier one. Change-Id: Id31ef33ae1b2469f7c3eeabe77420377978fa35e