Alberto Bustamante Reyes created GEODE-6979:
-----------------------------------------------
Summary: ExportLogsStatsDistributedTestBase not removing generated
files
Key: GEODE-6979
URL: https://issues.apache.org/jira/browse/GEODE-6979
Project: Geode
Issue Type: Bug
Components: tests
Reporter: Alberto Bustamante Reyes
When running distributed tests of geode-web I found out that
ExportLogsOverHttpDistributedTest is failing due to unexpected zip files found.
The test works fine when run alone (`./gradlew geode-web:distributedTest
--tests=ExportLogsOverHttpDistributedTest`) but
it fails when it runs with the rest of distributed tests.
{noformat}
> Task :geode-web:distributedTest
org.apache.geode.management.internal.cli.commands.ExportLogsOverHttpDistributedTest
> withFiles_savedToLocatorSpecifiedRelativeDir FAILED
java.lang.AssertionError:
Expecting empty but
was:<[/home/alb3rtobr/git/geode/geode-web/build/distributedTest/exportedLogs_1563455029358.zip,
/home/alb3rtobr/git/geode/geode-web/build/distributedTest/exportedLogs_1563455029320.zip,
/home/alb3rtobr/git/geode/geode-web/build/distributedTest/exportedLogs_1563455029410.zip]>
136 tests completed, 1 failed
{noformat}
I found out that ExportLogsStatsOverHttpDistributedTest is creating these three
zip files which are not deleted.
This is a fragment of the standard output of
ExportLogsStatsOverHttpDistributedTest:
{noformat}
Command result for <export logs>:
Logs exported to:
/home/alb3rtobr/git/geode/geode-web/build/distributedTest/exportedLogs_1563455029320.zip
Command result for <export logs --stats-only>:
Logs exported to:
/home/alb3rtobr/git/geode/geode-web/build/distributedTest/exportedLogs_1563455029358.zip
Command result for <export logs --logs-only>:
Logs exported to:
/home/alb3rtobr/git/geode/geode-web/build/distributedTest/exportedLogs_1563455029410.zip
{noformat}
ExportLogsStatsOverHttpDistributedTest should delete these files.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)