Return-Path: X-Original-To: apmail-geode-issues-archive@minotaur.apache.org Delivered-To: apmail-geode-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 47998182FE for ; Wed, 7 Oct 2015 00:46:30 +0000 (UTC) Received: (qmail 895 invoked by uid 500); 7 Oct 2015 00:46:30 -0000 Delivered-To: apmail-geode-issues-archive@geode.apache.org Received: (qmail 863 invoked by uid 500); 7 Oct 2015 00:46:30 -0000 Mailing-List: contact issues-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list issues@geode.incubator.apache.org Received: (qmail 854 invoked by uid 99); 7 Oct 2015 00:46:30 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2015 00:46:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A4416C3CCD for ; Wed, 7 Oct 2015 00:46:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.77 X-Spam-Level: * X-Spam-Status: No, score=1.77 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id SqUxrggp-IA3 for ; Wed, 7 Oct 2015 00:46:28 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id ACB0E25426 for ; Wed, 7 Oct 2015 00:46:27 +0000 (UTC) Received: (qmail 807 invoked by uid 99); 7 Oct 2015 00:46:26 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2015 00:46:26 +0000 Date: Wed, 7 Oct 2015 00:46:26 +0000 (UTC) From: "Nitin Lamba (JIRA)" To: issues@geode.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (GEODE-304) Fix all Pulse unit and integration tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GEODE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14946081#comment-14946081 ] Nitin Lamba edited comment on GEODE-304 at 10/7/15 12:45 AM: ------------------------------------------------------------- Thanks [~dcavender]! I'm sure the URL isn't related to properties file, rather it is hard-coded in the BaseServiceTest class (lines 65-68). Following is the set of tests I ran using latest Firefox browser (gradle script and test report is attached): 1. *junit tests* under src/test/java/com/vmware/gemfire/tools/pulse/tests/junit: These are based on BaseServiceTest and try to connect to the remote server (pnq-pratik.vmware.com:8081) looking for pulse-7.5 context. I think multiple pulse war files may have been installed on that server 2. *PulseUITests* under src/test/java/com/vmware/gemfire/tools/pulse/testbed/driver: These tests try to start Pulse standalone within Tomcat server, and connect to a simulated test bed (a mock Geode cluster). Certain properties file are passed around but not used and it is not clear how the Pulse application connects to this testbed. The primary failure is due to a missing UI element (Data View) that points to an HTML file (dataView.html) which doesn't exist in the codebase. My guess is that this one is an old test suite and should be ignored 3. *PulseAutomatedTests* under src/test/java/com/vmware/gemfire/tools/pulse/tests: This inherits tests from PulseBaseTests and PulseTests. By far, the most comprehensive test suite I found. These tests try to start Pulse standalone within Tomcat server, and connect to a simulated JMX Server on port 9999. I had to change the pulse.properties file as: {code} pulse.useLocator=false pulse.host=localhost pulse.port=9999 {code} About 70% of tests pass so I think my setup is still incorrect. I also see a lot of ignored tests because the classes have those hardcoded, such as: {code} Ignore("Not part of Pulse-Cedar 7.5 release") Ignore("WIP") Ignore("For Gemfire XD") {code} It'll really help if someone from the Pivotal team can describe the exact testbed setup so that all the tests pass. Once that is cleared, the next step is to have FireFox browser installed on CI/ nightly build servers. was (Author: nlamba): Thanks [~dcavender]! I'm sure the URL isn't related to properties file, rather it is hard-coded in the BaseServiceTest class (lines 65-68). Following is the set of tests I ran with my current findings using latest Firefox browser (gradle script and test report is attached): 1. *junit tests* under src/test/java/com/vmware/gemfire/tools/pulse/tests/junit: These are based on BaseServiceTest and try to connect to the remote server (pnq-pratik.vmware.com:8081) looking for pulse-7.5 context. I think multiple pulse war files may have been installed on that server 2. *PulseUITests* under src/test/java/com/vmware/gemfire/tools/pulse/testbed/driver: These tests try to start Pulse standalone within Tomcat server, and connect to a simulated test bed (a mock Geode cluster). Certain properties file are passed around but not used and it is not clear how the Pulse application connects to this testbed. The primary failure is due to a missing UI element (Data View) that points to an HTML file (dataView.html) which doesn't exist in the codebase. My guess is that this one is an old test suite and should be ignored 3. *PulseAutomatedTests* under src/test/java/com/vmware/gemfire/tools/pulse/tests: This inherits tests from PulseBaseTests and PulseTests. By far, the most comprehensive test suite I found. These tests try to start Pulse standalone within Tomcat server, and connect to a simulated JMX Server on port 9999. I had to change the pulse.properties file as: {code} pulse.useLocator=false pulse.host=localhost pulse.port=9999 {code} About 70% of tests pass so I think my setup is still incorrect. I also see a lot of ignored tests because the classes have those hardcoded, such as: {code} Ignore("Not part of Pulse-Cedar 7.5 release") Ignore("WIP") Ignore("For Gemfire XD") {code} It'll really help if someone from the Pivotal team can describe the exact testbed setup so that all the tests pass. Once that is cleared, the next step is to have FireFox browser installed on CI/ nightly build servers. > Fix all Pulse unit and integration tests > ---------------------------------------- > > Key: GEODE-304 > URL: https://issues.apache.org/jira/browse/GEODE-304 > Project: Geode > Issue Type: Sub-task > Components: management & tools > Reporter: Nitin Lamba > Assignee: Nitin Lamba > Attachments: build.gradle, test-progress.txt, test.zip > > > Automated/ UI (Selenium) tests are failing; it seems that the library needs to be updated. Just swapping with the new jar file doesn't work, so tests need to be essentially re-implemented. > junit tests inherited from BaseServiceTest also fail (not able to connect to host). Lines 65-68 look suspiciously old code, probably not even testable. -- This message was sent by Atlassian JIRA (v6.3.4#6332)