Skip to content

Commit

Permalink
Prefer SSL connection to Mongo sources
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-pie committed Jun 19, 2024
1 parent 24577e9 commit 7662b68
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/connectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.8, 3.9]

steps:
- name: Checking out repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9"]
python-version: ["3.8", "3.9"]

steps:
- name: Checking out repo
Expand Down
1 change: 0 additions & 1 deletion dev-project/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
### Primary container with PipelineWise CLI
pipelinewise:
Expand Down
2 changes: 0 additions & 2 deletions dev-project/mongo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# FROM mongo:4.2-bionic
# FROM mongo:5.0.22-focal
FROM mongo:5.0.26-focal

COPY --chown=mongodb:root --chmod=400 rootCA.pem /etc/ssl/rootCA.pem
Expand Down
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
LONG_DESCRIPTION = f.read()

setup(name='pipelinewise',
python_requires='>=3.7,<3.10',
version='0.60.2b1',
python_requires='>=3.8,<3.10',
version='0.61.0',
description='PipelineWise',
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
Expand All @@ -16,7 +16,6 @@
classifiers=[
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
Expand All @@ -33,7 +32,7 @@
'google-cloud-bigquery==3.11.1',
'pipelinewise-singer-python==1.*',
'python-pidfile==3.0.0',
'pymongo==3.13.0',
'pymongo==4.7.*',
'tzlocal>=2.0,<4.1',
'slackclient==2.9.4',
'sqlparse==0.4.4',
Expand Down
2 changes: 1 addition & 1 deletion singer-connectors/tap-mongodb/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pipelinewise-tap-mongodb==1.4.0
pipelinewise-tap-mongodb==1.5.0
5 changes: 4 additions & 1 deletion tests/end_to_end/helpers/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,5 +313,8 @@ def get_mongodb_connection(
Returns: Database instance with established connection
"""
connection_string = f"mongodb://{user}:{password}@{host}:{port}/{database}?authSource={auth_database}&tls=true&tlsAllowInvalidCertificates=true&directConnection=true"
connection_string = (
f'mongodb://{user}:{password}@{host}:{port}/{database}?authSource={auth_database}'
'&tls=true&tlsAllowInvalidCertificates=true&directConnection=true'
)
return pymongo.MongoClient(connection_string)[database]

0 comments on commit 7662b68

Please sign in to comment.