Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hlsvZ-0000YD-Lz for pgadmin-hackers@arkaria.postgresql.org; Fri, 12 Jul 2019 10:37:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hlsvY-0004Fv-Es for pgadmin-hackers@arkaria.postgresql.org; Fri, 12 Jul 2019 10:37:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hlsvY-0004Fn-0m for pgadmin-hackers@lists.postgresql.org; Fri, 12 Jul 2019 10:37:20 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hlsvR-0005FC-77 for pgadmin-hackers@postgresql.org; Fri, 12 Jul 2019 10:37:18 +0000 Received: by mail-wr1-x441.google.com with SMTP id p17so9418508wrf.11 for ; Fri, 12 Jul 2019 03:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=20/1D4ATyOPe4kQnHP3nh9aM9PjOj4amP8m88oR5jwg=; b=bAQVvWSu/Rb8jVbr5uJp5kMBr9qSrrzxi32rGw9vc6vXb4R6KHSZ1O67rnoNj2G2V2 MV8XTtiuLqaEqA8PG9fw9C3TeLAwX/y9P+wYrE/SWGMqReQeeZ4EL/19Mu62Ww6laz1j eAqw9AKLt531pTihH5e035s6Je8WTk3rnIZandP9Okj+NhQp8M1yTSGBxgqFuXM8qdvO SvwHoK+Iinteyx3VsnuM9y3Qg51E18xLCBkTTSNZ9SgsIoQTajpFEGTAjtwpahiRo2Zw L0M0zjt85xSBYKQ6hRJgMFKAln8SbcAh2A7N2EqxB58Ko06+JIaaA/ki4Pb6jb6KLTeF vnHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=20/1D4ATyOPe4kQnHP3nh9aM9PjOj4amP8m88oR5jwg=; b=A1emn9czWq1uyGmJ2ihAbu7+Iu9oo3uTaIG1GX5osu9SSansS4hNJ8TS/mY6NOtaXS RjWV6RoPTMPzIktma4verVslvlgIcJSor+baqhiqsHbolCViyMZluT38G+MtT1UnpiTz 78JqiIEybJliTCeJH1f7ElqEKhKabmXxJMeDd1wPvBLCVz3C0oi8kC2FDqkWlrP8KcXh A56JEm8RPYEcNOdCXKsl8pzbDVv+y7IS4Z1uCXTdhe3kJuwN7AfD/yPLJnEdU1VYpz/K HQDslmR5lyhhiTr5D2+X/nk3SlkpNUBdzIzcWvK6bJ3gmOx+PuEe6d0N9tCzcU893cyn nS9w== X-Gm-Message-State: APjAAAUno4OLrJCymBVaDxENgvnxBIcPxOXvIRdHbtjr6EsNztWTUKRW 2YQD1eT+hGQnNYbxdyUJpvI9RXW9UTTe8hvLDSI6MQ== X-Google-Smtp-Source: APXvYqzt5D/d5ItxjbloxPmU0faddineulntMVhwnWgkYYCyY7cIbVZCQ3+Zuc4WSWIHyF6sLbNbDIZ+s6l5ypu3Ges= X-Received: by 2002:adf:e4c6:: with SMTP id v6mr10616883wrm.315.1562927831535; Fri, 12 Jul 2019 03:37:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dave Page Date: Fri, 12 Jul 2019 11:36:59 +0100 Message-ID: Subject: Re: [pgAdmin4][Patch] : RE-SQL tests for Collation node To: Khushboo Vashi Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000356348058d797e88" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000356348058d797e88 Content-Type: text/plain; charset="UTF-8" Hi On Fri, Jul 12, 2019 at 10:46 AM Khushboo Vashi < khushboo.vashi@enterprisedb.com> wrote: > Hi, > > Please find the attached patch for the RE-SQL tests for collation node. > This patch also includes the *modified SQL tests* as well as fixes for > the RE-SQL in the collation node which I found while implementing this. > > To add the modified SQL tests, 2 optional parameters are introduced in the > JSON file, i.e. > *msql_endpoint* and *expected_msql_file.* > These parameters need to be included in the Alter scenarios. > > I have modified the RE-SQL framework to support modified SQL. > This fails on EPAS 9.4: ... 2019-07-12 11:35:09,672: ERROR flask.app: Failed to execute query (execute_scalar) for the server #5 - DB:test_db_18bdb (Query-id: 9091709): Error Message:ERROR: role "postgres" does not exist Create Collation... FAIL Traceback (most recent call last): File "/Users/dpage/git/pgadmin4/web/regression/re_sql/tests/test_resql.py", line 205, in execute_test_case self.assertEquals(response.status_code, 200) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 1338, in deprecated_func return original_func(*args, **kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 839, in assertEqual assertion_func(first, second, msg=msg) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittest/case.py", line 832, in _baseAssertEqual raise self.failureException(msg) AssertionError: 500 != 200 ERROR I guess we need to create a role first? Also, please keep your error messages consistent with the others, e.g. "... FAIL" instead of " ..................FAIL". Thanks! -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company --000000000000356348058d797e88 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

On Fri, Jul 12, 2019 at 10:46 AM Khushb= oo Vashi <khushboo.va= shi@enterprisedb.com> wrote:
Hi,

Please find the= attached patch for the RE-SQL tests for collation node.
This pat= ch also includes the modified SQL tests as well as fixes for the RE-= SQL in the collation node which I found while implementing this.
=
To add the modified SQL tests, 2 optional parameters are int= roduced in the JSON file, i.e.
msql_endpoint and expected_msql_file.
These parameters need to be inclu= ded in the Alter scenarios.

I have modified the RE= -SQL framework to support modified SQL.

This fails on EPAS 9.4:

=C2=A0... 2019-07= -12 11:35:09,672: ERROR flask.app: Failed to execute query (execute_scalar)= for the server #5 - DB:test_db_18bdb (Query-id: 9091709):
Error Message= :ERROR: =C2=A0role "postgres" does not exist

Create Collat= ion... FAIL
Traceback (most recent call last):
=C2=A0 File "/Use= rs/dpage/git/pgadmin4/web/regression/re_sql/tests/test_resql.py", line= 205, in execute_test_case
=C2=A0 =C2=A0 self.assertEquals(response.stat= us_code, 200)
=C2=A0 File "/opt/local/Library/Frameworks/Python.fra= mework/Versions/3.7/lib/python3.7/unittest/case.py", line 1338, in dep= recated_func
=C2=A0 =C2=A0 return original_func(*args, **kwargs)
=C2= =A0 File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/= lib/python3.7/unittest/case.py", line 839, in assertEqual
=C2=A0 = =C2=A0 assertion_func(first, second, msg=3Dmsg)
=C2=A0 File "/opt/l= ocal/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/unittes= t/case.py", line 832, in _baseAssertEqual
=C2=A0 =C2=A0 raise self.= failureException(msg)
AssertionError: 500 !=3D 200
ERROR

I guess we need to create a role first?

Also, please keep your error messages consistent with the others, e.= g. "... FAIL" instead of " ..................FAIL".

Thanks!
=C2=A0
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twi= tter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise Pos= tgreSQL Company
--000000000000356348058d797e88--