Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkC63-0000Ey-2P for pgadmin-hackers@arkaria.postgresql.org; Wed, 14 Sep 2016 15:27:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bkC62-00079Q-L2 for pgadmin-hackers@arkaria.postgresql.org; Wed, 14 Sep 2016 15:27:34 +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 1bkC62-00079I-5b for pgadmin-hackers@postgresql.org; Wed, 14 Sep 2016 15:27:34 +0000 Received: from mail-qt0-x22a.google.com ([2607:f8b0:400d:c0d::22a]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bkC5x-00015a-BR for pgadmin-hackers@postgresql.org; Wed, 14 Sep 2016 15:27:33 +0000 Received: by mail-qt0-x22a.google.com with SMTP id 11so8666105qtc.0 for ; Wed, 14 Sep 2016 08:27:29 -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; bh=Zz/7ti4RNlaTC8/vJE29zPbUvOcgwAU30b5MCRxFP/w=; b=cuC4jmJvqaO2yvg7zP9CKz/PZb0jMBDVRn5lNFrKQ7BvkSagxyqWwwc4buVyt4DP26 /SYoDmyWFC4hpAqyEoA8DYex1sHl7bKnhiDXzibRGrvuvvUvCHwMAsZ6ywxeybAy2coG oT5lXcIka92EwM07oG1L0GPKE2R5+WnvBIN9AULFDeHWl55USuW9BT8zxyIwn99qRkvH +80NpjmIbaLNPN8WkipQaYGDHjz5rFJaJh74v3Ae1knY0QyILaSzhtK30+JjeXo2Nt2J Lte5B44Ldo4ZU8CJtG/M5Nj58SYpQjba97BWmBArt/cFoJs9YOUxAzzMxpq0TrkBzgTc r50A== 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; bh=Zz/7ti4RNlaTC8/vJE29zPbUvOcgwAU30b5MCRxFP/w=; b=dwZn7CWizkY/oXYYFoG5Ens2geP9MWfRGh+mI4mRWgECt1SigMUAwYjwQn12c/XlJD TbKkhAQ89+TSKfHov6N78uoDPaBvCrJF1dfGNhiayHrZJlmMZ7VYwWmFxCJ8YzwOfISV 5P1+4jmgwRDHkPsEZuw/nFxMEA9DIwWwArkW+MQOu3SMdu3JEN9iUOQiCCwVGjPq8Rb/ g+M84SBo8vwmxKNLuOiMZfjfjG4Rmthgp4LZNGWCPkRnDbRjsa/rqHEA0PufoWJtWEGT sqFVueKph2l9tB3ibT+ApxIz69db1CannjCkYbVmLMnnfQXiaAGAL4MFiBkHWDE1pIwN G7/w== X-Gm-Message-State: AE9vXwMCrRqDfShT14T5lR5J7FiftNnO5nOFLiU4/LPjz0km0UeLiRt7Udz92Zg/A8/uKlu/84yEwJi5Tot5TbKpCLfNDjNirzybvMsIv4PDurwqgY5enHJ1y+hJ9Yla6GaSOGtygxFKss8CS2nda8KucYCutSxBCIpqN+EU4fkWaUUjH8W2i96RqlbUabFHNTrVsT5NAg== X-Received: by 10.237.53.201 with SMTP id d9mr3840745qte.90.1473866847505; Wed, 14 Sep 2016 08:27:27 -0700 (PDT) Received: from mail-it0-f45.google.com (mail-it0-f45.google.com. [209.85.214.45]) by smtp.gmail.com with ESMTPSA id b10sm2504732qka.6.2016.09.14.08.27.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Sep 2016 08:27:27 -0700 (PDT) Received: by mail-it0-f45.google.com with SMTP id o3so49590502ita.1 for ; Wed, 14 Sep 2016 08:27:27 -0700 (PDT) X-Received: by 10.107.170.87 with SMTP id t84mr7092037ioe.87.1473866786467; Wed, 14 Sep 2016 08:26:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.1.203 with HTTP; Wed, 14 Sep 2016 08:26:25 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Wed, 14 Sep 2016 16:26:25 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: pgAdmin IV: Unittests-drop objects functionality To: Navnath Gadakh Cc: pgadmin-hackers , Kanchan Mohitey Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.1 (--) 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 Cool - thanks, committed! On Wed, Sep 14, 2016 at 2:57 PM, Navnath Gadakh wrote: > Hi Dave, > > Please find the revised patch with suggested modifications. > > On Wed, Sep 14, 2016 at 5:25 PM, Dave Page > wrote: >> >> Hi >> >> On Tue, Sep 13, 2016 at 3:39 PM, Navnath Gadakh >> wrote: >> > Hi Dave, >> > Please find the patch for drop objects functionality for test >> > framework. >> > Now, test framework is able to drop all objects(like server, database, >> > schema, etc.) which are created during test suite execution. Code >> > included >> > in the patch is only for server and database node. If everything goes >> > fine >> > will send next patch with the remaining nodes in a single patch. >> > >> > The following files are also affected by the new changes: >> > web/setup.py, >> > web/config.py, >> > regression/test_advanced_config.json.in >> > >> > >> > To run the test suite follow the commands >> > 1. python runtionregress/ests.py --pkg browser.server_groups.servers >> > 2. python regression/runtests.yp --pkg >> > browser.server_groups.servers.databases >> > >> > >> > Note: Please do not run test suite for all nodes (python >> > regression/runtests.py) as code modifications have not been done yet. >> >> I'm happy with this in general, except the changes in setup.py >> >> - Let's use the names PGADMIN_SETUP_EMAIL and PGADMIN_SETUP_PASSWORD >> for the envvars. > > Sure. >> >> >> - Why are you setting the username and password in the environment >> after prompting the user for them? I can't see why you're doing that, >> and it's almost certainly a security issue. > > I was trying some different logic, by mistake that code remains, removed > that code in the attached patch. >> >> >> -- >> Dave Page >> VP, Chief Architect, Tools & Installers >> EnterpriseDB: http://www.enterprisedb.com >> The Enterprise PostgreSQL Company >> >> Blog: http://pgsnake.blogspot.com >> Twitter: @pgsnake > > > > > -- > Thanks, > Navnath Gadakh > Software Engineer > EnterpriseDB Corporation > Mobile: +91 9975389878 > > -- Dave Page VP, Chief Architect, Tools & Installers EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company Blog: http://pgsnake.blogspot.com Twitter: @pgsnake -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers