-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If the test fails to run properly we need to record it as a failure for our purposes. Fixes #1025 Signed-off-by: John Schnake <jschnake@vmware.com>
- Loading branch information
1 parent
a7a8aa0
commit ee12b94
Showing
4 changed files
with
90 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
.../testdata/mockResults/plugins/job-junit-falsepositive/job-junit-falsepositive.golden.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "job-junit-falsepositive", | ||
"status": "failed", | ||
"items": [ | ||
{ | ||
"name": "output.xml", | ||
"status": "failed", | ||
"meta": { | ||
"file": "results/global/output.xml" | ||
}, | ||
"items": [ | ||
{ | ||
"name": "Alertmanager - Alertmanager statefuleset(executeK8sTests())", | ||
"status": "failed", | ||
"items": [ | ||
{ | ||
"name": "Alertmanager - Alertmanager statefuleset(executeK8sTests", | ||
"status": "failed", | ||
"details": { | ||
"error": "Alertmanager statefuleset - Connection refused (Connection refused) org.opentest4j.AssertionFailedError: Alertmanager statefuleset - Connection refused (Connection refused)\n\tat com.cg.k8s.tests.client.K8sPlatformTests.test(K8sPlatformTests.java:163)\n\tat com.cg.k8s.tests.client.K8sPlatformTests.lambda$0(K8sPlatformTests.java:94)\n\tat java.util.Optional.ifPresent(Optional.java:159)\n\tat java.util.ArrayList.forEach(ArrayList.java:1257)\n\tat java.util.ArrayList.forEach(ArrayList.java:1257)\n\tat com.cg.k8s.tests.client.RunTests.main(RunTests.java:41)" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
...nt/results/testdata/mockResults/plugins/job-junit-falsepositive/results/global/output.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<testsuite errors="0" failures="1" hostname="cgogineni" name="Alertmanager - Alertmanager statefuleset(executeK8sTests())" skipped="0" tests="1" time="0.005" timestamp="2019-12-03T17:53:38"> | ||
<properties /> | ||
<testcase classname="com.cg.k8s.tests.reports.JUnitResultFormatterAsRunListener$DescriptionAsTest" name="Alertmanager - Alertmanager statefuleset(executeK8sTests" time="0.005"> | ||
<error message="Alertmanager statefuleset - Connection refused (Connection refused)" type="org.opentest4j.AssertionFailedError">org.opentest4j.AssertionFailedError: Alertmanager statefuleset - Connection refused (Connection refused) | ||
at com.cg.k8s.tests.client.K8sPlatformTests.test(K8sPlatformTests.java:163) | ||
at com.cg.k8s.tests.client.K8sPlatformTests.lambda$0(K8sPlatformTests.java:94) | ||
at java.util.Optional.ifPresent(Optional.java:159) | ||
at java.util.ArrayList.forEach(ArrayList.java:1257) | ||
at java.util.ArrayList.forEach(ArrayList.java:1257) | ||
at com.cg.k8s.tests.client.RunTests.main(RunTests.java:41) | ||
</error> | ||
</testcase> | ||
<system-out><![CDATA[Request method: GET | ||
Request URI: http://localhost:8001/apis/apps/v1/namespaces/monitoring/statefulsets/alertmanager-main/status | ||
Proxy: <none> | ||
... | ||
]]></system-out> | ||
<system-err><![CDATA[java.net.ConnectException: Connection refused (Connection refused) | ||
at java.net.PlainSocketImpl.socketConnect(Native Method) | ||
... | ||
... | ||
]]></system-err> | ||
</testsuite> |