Skip to content

Commit f64fd84

Browse files
authored
Merge pull request #144 from DevoInc/feature/PAR-13586
Feature/par 13586
2 parents d602f0e + 06eed9b commit f64fd84

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## [3.6.2] - 2022-05-19
7+
## [3.6.3] - 2022-07-12
88
### Fixed
99
* Dependencies updated for `click` and `PyYAML`
1010
* Some small fixes in documentation
11+
* `urllib3` dependencies forced for [CVE-2021-33503](https://nvd.nist.gov/vuln/detail/CVE-2021-33503)
12+
* Query in REST API test to be configurable by environment variable
1113

1214

13-
## [3.6.1] - 2022-05-19
15+
## [3.6.2] - 2022-05-30
1416
### Fixed
1517
* Some events are not sent completely due to the use of `socket.send()` instead of `socket.sendall()` [#141]
1618

environment.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ DEVO_SENDER_KEY=/opt/devo-python-sdk/certs/client.key
1111
DEVO_SENDER_CERT=/opt/devo-python-sdk/certs/client.crt
1212
DEVO_SENDER_CHAIN=/opt/devo-python-sdk/certs/ca.crt
1313
DEVO_TEST_TCP=True
14-
14+
DEVO_API_QUERY=from web.all.access select * limit 1

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ PyYAML==6.0
33
requests==2.27.1
44
pem==21.2.0
55
pyopenssl==22.0.0
6+
urllib3>=1.26.5

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"Topic :: Software Development :: Libraries :: Python Modules",
2828
]
2929
INSTALL_REQUIRES = ['requests==2.27.1', 'click==8.1.3', 'PyYAML==6.0',
30-
'pem==21.2.0', 'pyopenssl==22.0.0']
30+
'pem==21.2.0', 'pyopenssl==22.0.0', 'urllib3>=1.26.5']
3131
CLI = ['devo-sender=devo.sender.scripts.sender_cli:cli',
3232
'devo-api=devo.api.scripts.client_cli:cli']
3333

tests/api/query.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
class TestApi(unittest.TestCase):
1313
def setUp(self):
14-
self.query = 'from demo.ecommerce.data select * limit 1'
14+
self.query = os.getenv('DEVO_API_QUERY',
15+
'from demo.ecommerce.data select * limit 1')
1516
self.query_no_results = \
1617
'from demo.ecommerce.data where method = "TEST" select * limit 1'
1718
self.app_name = "testing-app_name"
@@ -26,9 +27,10 @@ def setUp(self):
2627

2728
def test_from_dict(self):
2829
api = Client(config=
29-
{'key': self.key, 'secret': self.secret, 'address': self.uri,
30-
'user': self.user, 'app_name': self.app_name}
31-
)
30+
{'key': self.key, 'secret': self.secret,
31+
'address': self.uri,
32+
'user': self.user, 'app_name': self.app_name}
33+
)
3234

3335
self.assertTrue(isinstance(api, Client))
3436

0 commit comments

Comments
 (0)