Skip to content
Open
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
4447800
notify on fail orb
Oct 6, 2020
143c89a
Merge branch 'master' of github.com:singer-io/tap-postgres into master
Oct 13, 2020
83aec41
Merge branch 'master' of github.com:singer-io/tap-postgres into master
Nov 16, 2020
838eca6
Merge branch 'master' of github.com:singer-io/tap-postgres into master
Nov 16, 2020
22ccdc5
Merge branch 'master' of github.com:singer-io/tap-postgres into master
Jan 20, 2021
4cc518f
Merge branch 'master' of github.com:singer-io/tap-postgres
Feb 16, 2021
70b79d1
Merge branch 'master' of github.com:singer-io/tap-postgres
Mar 15, 2021
7790299
Merge branch 'master' of github.com:singer-io/tap-postgres
Mar 17, 2021
092ef2c
Merge branch 'master' of github.com:singer-io/tap-postgres
Mar 23, 2021
067258d
incremental test changes; set time/datetime expectations to handle ds…
Mar 29, 2021
e377bf6
upgrade the full table replication test to include various inserts, u…
Mar 29, 2021
d39d4e7
pylint fixes
Mar 29, 2021
581a0f9
cleanup unnecessary comments
Mar 29, 2021
7953843
Note known bug in discovery, add auto fields test
Mar 30, 2021
b2ac733
Merge branch 'master' of github.com:singer-io/tap-postgres
Mar 30, 2021
75a41a2
Merge branch 'master' into testing/automatic-fields
Mar 30, 2021
0d0de66
fix existing issue in logical_replication_multiple_dbs_test
Mar 30, 2021
c512335
parametrize automatic fields test for different replication methods
Mar 30, 2021
d945704
pylint fixes for auto fields test
Mar 30, 2021
b365d85
address knonw bug with incremental
Mar 30, 2021
385988c
discovery and db_utils cleanup
Apr 2, 2021
cdc8638
datatypes test
Apr 2, 2021
0454483
wip datatypes test case additions
Apr 2, 2021
a26a1d5
added test case all utf-8 encodable unicode characters
Apr 5, 2021
032a766
fix setuptools in circle config
Apr 5, 2021
547188d
put psycopg2 back to 2.7.4
Apr 5, 2021
9530d95
Merge branch 'master' of github.com:singer-io/tap-postgres
Apr 5, 2021
067b0ab
finished test cases, cleanup
Apr 6, 2021
12a97a5
Merge branch 'master' of github.com:singer-io/tap-postgres
Apr 7, 2021
7ffc9fc
Merge branch 'master' into testing/datatypes
Apr 7, 2021
9a4f969
pin pip again
Apr 7, 2021
09d5a7c
pylint fixes and cleanup
Apr 7, 2021
1dcd2bd
test datatype against logical replication
Apr 7, 2021
5d50be3
test datatype against incremental replication
Apr 7, 2021
873c3fb
cleanup, test docstring
Apr 7, 2021
b3639d8
clarify negative test for logical views with 'invalid' in table name
Apr 7, 2021
b8ac0cb
update comments
Apr 9, 2021
9067ab3
bug 2 rewritten, addressed PR feedback
Apr 12, 2021
852470d
mark bug for missing datatypes
Apr 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions tests/db_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ def ensure_fresh_table(conn, conn_cursor, schema_name, table_name):
conn_cursor2.execute(""" SELECT installed_version FROM pg_available_extensions WHERE name = 'hstore' """)
if conn_cursor2.fetchone()[0] is None:
conn_cursor2.execute(""" CREATE EXTENSION hstore; """)
conn_cursor2.execute(""" CREATE EXTENSION IF NOT EXISTS citext WITH SCHEMA public;""")
conn_cursor2.execute(""" DROP TYPE IF EXISTS ALIGNMENT CASCADE """)
conn_cursor2.execute(""" CREATE TYPE ALIGNMENT AS ENUM ('good', 'bad', 'ugly') """)

conn_cursor2.execute(""" CREATE EXTENSION IF NOT EXISTS citext WITH SCHEMA public;""")
conn_cursor2.execute(""" DROP TYPE IF EXISTS ALIGNMENT CASCADE """)
conn_cursor2.execute(""" CREATE TYPE ALIGNMENT AS ENUM ('good', 'GOOD', 'bad', 'ugly', 'u g l y') """)

return conn_cursor2

Expand Down Expand Up @@ -121,3 +122,7 @@ def delete_record(conn_cursor, ctable_name, primary_key):
# cur.execute("DELETE FROM {} WHERE id = 3".format(canonicalized_table_name(test_schema_name, test_table_name, cur)))

conn_cursor.execute("DELETE FROM {} WHERE id = {}".format(ctable_name, primary_key))

def set_db_time_zone(conn_cursor, tz: str = "GMT"):
# set time zone 'America/New_York';
conn_cursor.execute("SET TIME ZONE '{}'".format(tz))
Loading