Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQdA2-0002g7-TF for pgadmin-hackers@arkaria.postgresql.org; Fri, 22 Jul 2016 16:18:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bQdA2-00012h-GI for pgadmin-hackers@arkaria.postgresql.org; Fri, 22 Jul 2016 16:18:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bQd9p-0000or-BG for pgadmin-hackers@postgresql.org; Fri, 22 Jul 2016 16:18:37 +0000 Received: from mail-io0-x231.google.com ([2607:f8b0:4001:c06::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bQd9k-0006Q0-DS for pgadmin-hackers@postgresql.org; Fri, 22 Jul 2016 16:18:36 +0000 Received: by mail-io0-x231.google.com with SMTP id 38so109545963iol.0 for ; Fri, 22 Jul 2016 09:18:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=IWfLVdUsV6R6NR7yL4ZK6TbZVZxcidV/dh81WIc6hLY=; b=UccsJyc+vjgWivTDLK1wbKpHPhM+AMAgCyvdEynbUJ7+1WpR2n7jEHXARoOqMI12ye Sb/FU3/fEmjROsBWwDc7SmXBg/N8uouMr7W7By3+xyBfUdbduBRl1w4eYYB0JaJ5ljTc Yz/QA/vjujoxjOAdH0ltF69rjuRPfHjzPabJmIVD72Su6G28VWtwNN+4PSmNM7ljr8m/ i87IpoeZIOBV12yLxV/XCBQcRUtw3ySx+EqMF2EpLZ0bY7bZCp6tvP25wP0bUJIiyGsK ZE/3kENB+0QEI66xonxzeVq192IZRdeytHAV2RpRAaNGmn/JOyGq3ipdZw8xPiRqjNIn NW5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=IWfLVdUsV6R6NR7yL4ZK6TbZVZxcidV/dh81WIc6hLY=; b=b30RHyY1o/sJGFoALJdFQUrlGmPnAllFGyZyGMU0S1T47/1+OMz7vOwqPKJkHUPkrX NDqR4GBJyJCsqgFpxI9Msonf0LgwuUXxPOVRQY9bvb1hgxpE0DTCSPz/chXsllURXjhx krGxqENsX4O66+fLpP/MZ+b2hoKJu+JHP4jZ2XtJZKZ4KQPD46cFBMUxp14Tfyh8CT8o D3C0Ps1jNHi90b9JIuLsDIYoKTHAfdOWRAgcgY7CoJJJI8vnr0a60oZ+cDs4kYXDxCXh TVx7L9bZxrlCFUk1DU3tudNU9Q4A2Uhyb5OCd90UFV6DGT9thm4EAv3C5SxTjlV4T2eD cWDQ== X-Gm-Message-State: AEkoousA7QrxXjHSUP1hRD7cNrIWvnuvpAUY1F2cWXChrknMXj3NHLTp5btYh88cNTycEh8ctrQxxeUJSRmwLf+xQqxKzbnnxvYvUJr6UvMFv+aJidd2Q3yK8thE79Nuxxv2cI4QeWbaItKj1TUUSKciy/eVWI8k7MXVzgUfAzHE13IwbdpDJSRK+aULj7VxYjPfNJF9IQ== X-Received: by 10.107.57.215 with SMTP id g206mr5943173ioa.194.1469204293007; Fri, 22 Jul 2016 09:18:13 -0700 (PDT) Received: from mail-it0-f48.google.com (mail-it0-f48.google.com. [209.85.214.48]) by smtp.gmail.com with ESMTPSA id z25sm3595884ita.7.2016.07.22.09.18.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jul 2016 09:18:11 -0700 (PDT) Received: by mail-it0-f48.google.com with SMTP id u186so40861201ita.0 for ; Fri, 22 Jul 2016 09:18:11 -0700 (PDT) X-Received: by 10.36.16.197 with SMTP id 188mr5308492ity.88.1469204290685; Fri, 22 Jul 2016 09:18:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.208.97 with HTTP; Fri, 22 Jul 2016 09:18:09 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Fri, 22 Jul 2016 17:18:09 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: pgAdmin IV : Unittest modular patch To: Navnath Gadakh Cc: pgadmin-hackers , Kanchan Mohitey Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Hi On Fri, Jul 22, 2016 at 2:22 PM, Navnath Gadakh wrote: > Hi Dave, > > Please find the attached patch for pgAdmin4 unittest(Support of API > testing with different servers i.e. PG and PPAS). > > This patch includes- > > Test framework support API testing with multiple server for this we need = to > modify test_config.json(for user it=E2=80=99s test_config.json.in) and > test_advanced_config.json(for user it=E2=80=99s test_advanced_config.json= .in). > Server details of PG and PPAS are included in both .in files. > > Removed the logic of logging in the test client on each test scenario(As > per Khushboo's comment in previous email). We need this logic in test ca= ses > under =E2=80=98browser/tests/=E2=80=99 as for test scenarios like change = password and > invalid login test cases as test client should be logged out first. So, as > per this the code is slightly modified in =E2=80=98browser/tests/=E2=80= =99. OK in principle, but it doesn't seem to work: This function will add the server under default server group. (Default Server Node url) ... ok =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D FAIL: runTest (pgadmin.browser.tests.test_reset_password.ResetPasswordTestC= ase) This function checks reset password functionality. (TestCase for Validating Empty Email) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/dpage/git/pgadmin4/web/pgadmin/browser/tests/test_reset_pass= word.py", line 44, in runTest 'utf-8')) AssertionError: 'Recover pgAdmin 4 Password' not found in u'\nRedirecting...\n

Redirecting...

\n

You should be redirected automatically to target URL: /. If not click the link.' =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D FAIL: runTest (pgadmin.browser.tests.test_reset_password.ResetPasswordTestC= ase) This function checks reset password functionality. (TestCase for Validating Invalid_Email) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/dpage/git/pgadmin4/web/pgadmin/browser/tests/test_reset_pass= word.py", line 44, in runTest 'utf-8')) AssertionError: 'Recover pgAdmin 4 Password' not found in u'\nRedirecting...\n

Redirecting...

\n

You should be redirected automatically to target URL: /. If not click the link.' =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D FAIL: runTest (pgadmin.browser.tests.test_reset_password.ResetPasswordTestC= ase) This function checks reset password functionality. (TestCase for Validating Valid_Email) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/dpage/git/pgadmin4/web/pgadmin/browser/tests/test_reset_pass= word.py", line 44, in runTest 'utf-8')) AssertionError: 'Recover pgAdmin 4 Password' not found in u'\nRedirecting...\n

Redirecting...

\n

You should be redirected automatically to target URL: /. If not click the link.' ---------------------------------------------------------------------- Ran 26 tests in 30.109s FAILED (failures=3D3) It's very far from obvious what's wrong here (/reset looks just fine to me). How can we get more useful info out of the framework? --=20 Dave Page VP, Chief Architect, Tools & Installers EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company Blog: http://pgsnake.blogspot.com Twitter: @pgsnake --=20 Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers