Skip to content

Commit dc52058

Browse files
committed
Merge branch 'refs/heads/main' into basic-example
2 parents 569adf9 + 4c40e2e commit dc52058

File tree

14 files changed

+56
-455
lines changed

14 files changed

+56
-455
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## 3.9.1 ##
2-
* Relaxed requirements for pyjwt version from exactly 2.8.0 to >= 2.0
2+
yanked bad api release
33

44
## 3.9.0 ##
5-
* Supported nebius jwt credentials, added requirements for pyjwt==2.8.0
5+
yanked bad api release
66

77
## 3.8.1 ##
88
* Fixed to handle deadline on topic stream in async driver.

examples/topic/basic_example.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,16 @@ async def main():
5050
)
5151
parser.add_argument("-d", "--database", default="/local", help="Name of the database to use")
5252
parser.add_argument("-e", "--endpoint", default="grpc://localhost:2136", help="Endpoint url to use")
53-
parser.add_argument("-p", "--path", default="test-topic", help="Topic name")
53+
parser.add_argument("-p", "--path", default="test-topic", help="Topic name")
5454
parser.add_argument("-c", "--consumer", default="consumer", help="Consumer name")
5555
parser.add_argument("-v", "--verbose", default=False, action="store_true")
56-
parser.add_argument("-s", "--skip-drop-and-create-topic", default=False, action="store_true", help="Use existed topic, skip remove it and re-create")
56+
parser.add_argument(
57+
"-s",
58+
"--skip-drop-and-create-topic",
59+
default=False,
60+
action="store_true",
61+
help="Use existed topic, skip remove it and re-create",
62+
)
5763

5864
args = parser.parse_args()
5965

@@ -72,5 +78,5 @@ async def main():
7278
)
7379

7480

75-
if __name__ == '__main__':
76-
asyncio.run(main())
81+
if __name__ == "__main__":
82+
asyncio.run(main())

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ grpcio>=1.42.0
22
packaging
33
protobuf>=3.13.0,<5.0.0
44
aiohttp<4
5-
pyjwt>=2.0.0

test-requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ pytest-asyncio==0.21.0
3030
pytest-docker-compose==3.2.1
3131
python-dotenv==0.18.0
3232
PyYAML==5.3.1
33-
pyjwt==2.0.0
3433
requests==2.31.0
3534
texttable==1.6.4
3635
toml==0.10.2
@@ -47,5 +46,4 @@ pylint-protobuf
4746
cython
4847
freezegun==1.2.2
4948
pytest-cov
50-
yandexcloud
5149
-e .

tests/aio/test_credentials.py

Lines changed: 0 additions & 58 deletions
This file was deleted.

tests/auth/__init__.py

Whitespace-only changes.

tests/auth/test_credentials.py

Lines changed: 0 additions & 149 deletions
This file was deleted.

tests/table/test_tx.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ def test_tx_begin(driver_sync, database):
3838
tx.rollback()
3939

4040

41+
def test_credentials():
42+
credentials = ydb.iam.MetadataUrlCredentials()
43+
raised = False
44+
try:
45+
credentials.auth_metadata()
46+
except Exception:
47+
raised = True
48+
49+
assert raised
50+
51+
4152
def test_tx_snapshot_ro(driver_sync, database):
4253
session = driver_sync.table_client.session().create()
4354
description = (

0 commit comments

Comments
 (0)