- 22 4月, 2016 1 次提交
-
-
由 Amador Pahim 提交于
When Avocado runs tests on remote machines it always accepts the host SSH key fingerprint. This could allow credentials to be stolen if the remote host name or address is spoofed. This patch adds to Avocado the configuration option to enable/disable the reject_unknown_hosts option, so user can choose between safe or flexible. Notice there is an issue in Paramiko where it does not recognizes ecdsa keys in known_hosts file. So for reject_unknown_hosts to work, we currently have to accept the remote host key fingerprint in RSA format. To do so, the SSH command shouled be like below: $ ssh -oHostKeyAlgorithms='ssh-rsa' <host> Reference: https://trello.com/c/oqyAvZBqSigned-off-by: NAmador Pahim <apahim@redhat.com>
-
- 19 4月, 2016 2 次提交
-
-
由 Lukáš Doktor 提交于
avocado.core.remoter remote actions should fail on prompt [v3]
-
由 Amador Pahim 提交于
Avocado is not interactive. Remote can prompt for interaction for a number of reasons: unknown host key, password request and so on. This patch makes Avocado to fail when interaction for remote access is needed, forwarding the correspondent Fabric's message for the user. Reference: https://trello.com/c/GEa8BY2jSigned-off-by: NAmador Pahim <apahim@redhat.com>
-
- 14 4月, 2016 10 次提交
-
-
由 Cleber Rosa 提交于
-
由 Cleber Rosa 提交于
Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
We're substituting `os.path` with flexmock, let's not forget to clean-up properly. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
only the basename of the `self.filename` has to be shorter than maxsize-5, not the full path. Also the IOError in selftest is rather misleading as it relates to missing source file. Let's just check the path is correctly set and additionally verify `_record_reference_*` is not crashing when filename not associated. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Plugin Improvements
-
由 Cleber Rosa 提交于
With the expansion of the types of plugins, and some of them only used in specific circurstances, they are loaded at different times. When a plugin fails to load, wherever it happens, Avocado should log an error. Let's extract the function that does that from the Application and make it a utility function to be reused elsewhere. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Given the upcoming expansion of plugin type, there may be no active plugins for a given type of plugin. If that's the case, let's not just print a header about the plugin type, but also about the lack of active plugins for that given type. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
Switch the two blocks of code for a loop around the list of plugin dispatchers and descriptions. This will allow for easier printing of extra plugin types when they are introduced. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Cleber Rosa 提交于
We have a base Plugin class, so let's mark that one as an abstract class, instead of individual inherited classes. Also, remove useless __init__() methods. Signed-off-by: NCleber Rosa <crosa@redhat.com>
-
由 Lukáš Doktor 提交于
avocado.core.xunit fix XUnit results fail XSD validation [v2]
-
- 13 4月, 2016 6 次提交
-
-
由 Amador Pahim 提交于
The xunit plugin claims to be compatible with jenkins-ci junit-4.xsd, but it does not pass on the validation dur to the wrong key name 'skip'. This patch changes the key name to 'skipped' and adds a unittest to validate the xunit output against the junit-4.xsd schema. The junit-4.xsd file is coming from: https://svn.jenkins-ci.org/trunk/hudson/dtkit/dtkit-format/dtkit-junit-model/src/main/resources/com/thalesgroup/dtkit/junit/model/xsd/junit-4.xsd Reference: https://trello.com/c/ZdEb0TblSigned-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Lukáš Doktor 提交于
avocado.core.loader fix crash on loader exception [v4]
-
由 Lukáš Doktor 提交于
avocado.code.result fix results.json on job interruption
-
由 Amador Pahim 提交于
Currently UI shows coherent results, reporting tests that where not executed due to an interruption as SKIP. This information is not in line with results.json, which does not account un-executed tests. This patch changes the _reconcile() call from HumanTestResult() class to its parent class, TestResult(). That way all classes inheriting from TestResult() will have proper results to report. Reference: https://trello.com/c/8CXFl13MSigned-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
When an invalid python code is present in a test class, avocado crashes badly. This patch adds a TestLoaderError class to be used in those cases, so we use it to fake the invalid test class, fail the test with ERROR estatus and report the exception in job log. Reference: https://trello.com/c/3zDIjTuYSigned-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
Handle long filenames in avocado and fix unknown test status [v4]
-
- 11 4月, 2016 8 次提交
-
-
由 Lukáš Doktor 提交于
The leading "." makes files invisible on unix systems, which might be confusing to users. Let's replace with "_". Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
This adds selftests regarding the long filenames fixes. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
When avocado fails early in the process (for example in _setup_environment_variables) it crashes, because the test status is None. Other example could be user-defined status, which is not inside user-facing-statuses. This patch modifies the "status" to "ERROR" when test reports unsupported status and sets related values to provide details regarding this failure. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Maximal allowed file name is 255 on ext4/python2.7. Note that badly written code depending on this function can produce infinite hangs (when the code appends different char on position greater than 255 as it get's ignored) Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The logdir depends on the safe-tagged-name, which is initialized in `_get_tagged_name` function, which is checking if the safe-tagged-name exists and reports the unsafe tagged name only to construct safe-tagged- name few lines after and again check if the dir exists. Instead of this this patch looks for unused safe-tagged-name and immediately creates it and reports booth, unsafe name + the already created logdir. Additionally this adds adds limit on filename length and limits the number of tries to 9999, to avoid infinite hangs. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
Avoid crash when we try to record reference stdout when filename is not associated. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The maximal lentght of a file name on ext4/python2.7 is 255 chars. Let's avoid using datadir with longer name (to avoid crash when we record stdio) Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
由 Lukáš Doktor 提交于
The "self.name" can contain dangerous characters. Let's use "self.logdir" as base for "self.workdir". Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 08 4月, 2016 3 次提交
-
-
由 Amador Pahim 提交于
avocado.core.loader: Use make_broken in _make_avocado_tests
-
由 Amador Pahim 提交于
avocado.utils.astring: Be more lenient regarding utf-8 chars
-
由 Lukáš Doktor 提交于
Fix job status on timeout [v6]
-
- 07 4月, 2016 4 次提交
-
-
由 Amador Pahim 提交于
When a job is timed out during a test execution, we fail the test and put status ERROR in the test. The job then exits with the rc AVOCADO_TESTS_FAIL. This patch fixes this, making the test status INTERRUPTED and the job to exit with AVOCADO_JOB_INTERRUPTED. Also, when a job is timed out before a test, the test is skipped and the job exits with rc AVOCADO_ALL_OK. For that case, this patch makes the job to exit with AVOCADO_JOB_INTERRUPTED instead, keeping the test status as SKIP. Given this change, now we have the following combinations of test status and job return code: Case1: - Test1: PASS - Test2: SKIP (TestTimeoutSkip) Job RC: AVOCADO_JOB_INTERRUPTED Case2: - Test1: PASS - Test2: INTERRUPTED (TestTimeoutInterrupted) - Test3: SKIP (TestTimeoutSkip) Job RC: AVOCADO_JOB_INTERRUPTED Case3: - Test1: PASS - Test2: FAIL - Test3: INTERRUPTED (TestTimeoutInterrupted) - Test4: SKIP (TestTimeoutSkip) Job RC: AVOCADO_JOB_INTERRUPTED Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Amador Pahim 提交于
Interrupted tests will have improved relevance with the coming fix in job status report. This patch includes interrupted tests report in xml xunit output, adding the interrupted tests to the 'error' counter. Signed-off-by: NAmador Pahim <apahim@redhat.com>
-
由 Cleber Rosa 提交于
-
由 Ademar de Souza Reis Jr 提交于
*.svg, .min.js and .min.css are text files, but they're not intended to be edited by hand. Worst of all, they keep poluting the output of git grep.
-
- 04 4月, 2016 1 次提交
-
-
由 Lukáš Doktor 提交于
The _make_avocado_tests accepts "make_broken" function and not "list_non_tests" flag. We forgot to update one occurrence of this. Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
-
- 01 4月, 2016 4 次提交
-
-
由 Lukáš Doktor 提交于
add nargs='?' to toplevel options so we accept empty argument [v2]
-
由 Amador Pahim 提交于
avocado.core.xunit: Escape non-printable characters
-
由 Amador Pahim 提交于
avocado.core.job: Provide a better message when no tests found
-
由 Amador Pahim 提交于
avocado.core.output: Two bugfixes
-
- 31 3月, 2016 1 次提交
-
-
由 Amador Pahim 提交于
This is intended fo fix the odd message for '--show' and '--config' inside 'run' without argument, assuming the default on empty argument, making the user to face the right message on first wrong usage. Reference: https://trello.com/c/yfrhQOtqSigned-off-by: NAmador Pahim <apahim@redhat.com>
-