Dcicutils

Latest version: v8.11.0

Safety actively analyzes 638346 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 18 of 25

2.4.1

=====

* No functional change. Cosmetic edits to various files in order to
make certain file comparisons tidier.

2.4.0

=====

* This change rearranges files to remove some bootstrapping issues caused by circular dependencies.
This change is not supposed to affect the visible behavior, but the nature of the change creates
a risk of change because things moved from file to file.
An attempt was made to retain support for importable functions and variables in a way that would be non-disruptive.

* New module ``ff_mocks`` containing some test facilities that can be used by other repos to test FF and CGAP stuff.

* Class ``MockBoto4DNLegacyElasticBeanstalkClient``.

* Context manager ``mocked_s3utils`` for mocking many typical situations.

2.3.2

=====

* Support Central European Time for testing.

2.3.1

=====

* In ``s3_utils``, fix `C4-706 <https://hms-dbmi.atlassian.net/browse/C4-706>`_,
where short names of environments were not accepted as env arguments to s3Utils in legacy CGAP.

2.3.0

=====

* In ``qa_utils`` add some support for testing new functionality:

* In ``MockBoto3``, create a different way to register client classes.

* In ``MockBotoS3Client``:

* Add minimal support for ``head_bucket``.
* Add minimal support for ``list_objects_v2``.
* Make ``list_objects`` and ``list_objects_v2``, return a ``KeyCount`` in the result.

* New class ``MockBotoElasticBeanstalkClient`` for mocking beanstalk behavior.

* New subclasses ``MockBoto4DNLegacyElasticBeanstalkClient`` and ``MockBotoFooBarElasticBeanstalkClient``
that mock behavior of our standard legacy setup and a setup with just a ``fourfront-foo`` and ``fourfront-bar``,
respectively.

* In ``s3_utils``:

* Add a class ``HealthPageKey`` that holds names of keys expected in health page json.
This was ported from ``cgap-portal``, which can now start importing from here.
Also:

* Add ``HealthPageKey.TIBANNA_CWLS_BUCKET``.

* In ``s3Utils``:

* Add ``TIBANNA_CWLS_BUCKET_SUFFIX``.

* Add an ``EnvManager`` object to manage obtaining and parsing contents of the data in global env bucket.
Specific capabilities include:

* Static methods ``.verify_and_get_env_config()`` and ``.fetch_health_page_json()`` moved from ``s3Utils``.
(Trampoline functions have been left behind on that class for compatibility.)

* Static method ``.global_env_bucket_name()`` to get the current global env bucket environment variable.

* Static method (and context manager) ``.global_env_bucket_named(name=...)`` to bind the name of the current
global env bucket using Python's ``with``.

* Virtual attributes ``.portal_url``, ``.es_url``, and ``env_name`` for accessing the contents of the dictionary
obtained from the global env bucket.

* This class also creates suitable abstraction to allow for a future in which the contents of this dictionary
might include keys ``portal_url``, ``es_url``, and ``env_name`` in lieu of what are now
``fourfront``, ``es``, and ``ff_env``, respectively.

* When an ``env`` argument is given in creation of ``s3Utils``, an ``EnvManager`` object will be placed in
the ``.env_manager`` property of the resulting ``s3Utils`` instance. (If no ``env`` argument is given, no
such object can usefully be created since there is insufficient information.)

* In ``deployment_utils``:

* Support ``ENCODED_TIBANNA_CWLS_BUCKET`` and a ``--tibanna-cwls-bucket`` command line argument that get merged
into ``TIBANNA_CWLS_BUCKET`` for use in ``.ini`` templates. These default similarly to how the
Tibanna output bucket does.

2.2.1

=====

* In ``env_utils``:

* Add ``fourfront-cgap`` to the table of ``CGAP_PUBLIC_URLS``.

Page 18 of 25

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.