Skip to content

Commit

Permalink
Merge utils 7.10.0 from master.
Browse files Browse the repository at this point in the history
  • Loading branch information
netsettler committed Sep 7, 2023
2 parents 630720f + b079275 commit 5a07b69
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ Change Log
* New arguments ``portal_env=`` and ``portal_vapp`` to ``get_schema``
for function ``get_schema`` and ``get_schemas``.

* In ``s3_utils``:

* Fix a failing test (caused by an environmental change, no functional change).

* In ``license_utils``:

* Allow C4 infrastructure to use the ``chardet`` library.


7.9.0
=====
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dcicutils"
version = "7.10.0.1b6" # to become "7.11.0"
version = "7.10.0.1b7" # to become "7.11.0"
description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources"
authors = ["4DN-DCIC Team <support@4dnucleome.org>"]
license = "MIT"
Expand Down
5 changes: 4 additions & 1 deletion test/test_s3_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,14 +402,17 @@ def test_s3utils_get_higlass_key(portal_env):
# assert key[dict_key]


_GOOGLE_FOURFRONT_PROJECT_ID = "fourfront-396315"


@pytest.mark.integrated
@using_fresh_ff_state_for_testing()
def test_s3utils_get_google_key():
s3u = s3Utils(env='staging')
keys = s3u.get_google_key()
assert isinstance(keys, dict)
assert keys['type'] == 'service_account'
assert keys["project_id"] == "fourfront-396315" # yes, this is a magic constant
assert keys["project_id"] == _GOOGLE_FOURFRONT_PROJECT_ID
for dict_key in ['private_key_id', 'private_key', 'client_email', 'client_id', 'auth_uri', 'client_x509_cert_url']:
assert keys[dict_key]

Expand Down

0 comments on commit 5a07b69

Please sign in to comment.