From cdf2ee86cac3210e536f3b7bc5c5477f4b630ff8 Mon Sep 17 00:00:00 2001 From: theborch Date: Thu, 20 Feb 2025 08:48:14 -0600 Subject: [PATCH 1/3] chore:explicity colored version dependency --- pyproject.toml | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f80e04a..c0c38d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ requires-python = ">= 3.9" dependencies = [ "britive~=4.0", "click>=8.1.7", - "colored", + "colored>=2.2.5", "cryptography", "jmespath", "merge-args", diff --git a/requirements.txt b/requirements.txt index ee9965e..aa50120 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ britive~=4.0 certifi charset-normalizer click>=8.1.7 -colored +colored>=2.2.5 cryptography google-cloud-compute jmespath From 4e0402efa79b2a9ef83a6df54388615c1d2e0910 Mon Sep 17 00:00:00 2001 From: theborch Date: Mon, 24 Feb 2025 10:12:17 -0600 Subject: [PATCH 2/3] refactor:docs/tests updates to align with sdk --- docs/index.md | 10 +++++----- src/pybritive/commands/api.py | 8 ++++---- tests/test_0500_api.py | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/index.md b/docs/index.md index 7dc764a..193f126 100644 --- a/docs/index.md +++ b/docs/index.md @@ -180,7 +180,7 @@ Below is the list of application types in which a 2 part format is acceptable. The list can be generated (assuming the caller has the required permissions) on demand with the following command. ```sh -pybritive api applications.catalog \ +pybritive api application_management.applications.catalog \ --query '[*].{"application type": name,"2 part format allowed":requiresHierarchicalModel}' \ --format table ``` @@ -403,16 +403,16 @@ Usage examples of: (`pybritive api method --parameter1 value1 --parameter2 value ```sh # list all users in the britive tenant -pybritive api users.list +pybritive api identity_management.users.list # create a tag -pybritive api tags.create --name testtag --description "test tag" +pybritive api identity_management.tags.create --name testtag --description "test tag" # list all users and output just the email address of each user via jmespath query -pybritive api users.list --query '[].email' +pybritive api identity_management.users.list --query '[].email' # create a profile -pybritive api profiles.create --application-id --name testprofile +pybritive api application_management.profiles.create --application-id --name testprofile # create a secret pybritive api secrets_manager.secrets.create --name test --vault-id --value '{"Note": {"secret1": "abc"}}' diff --git a/src/pybritive/commands/api.py b/src/pybritive/commands/api.py index ba1c402..836590e 100644 --- a/src/pybritive/commands/api.py +++ b/src/pybritive/commands/api.py @@ -33,13 +33,13 @@ def api(ctx, query, output_format, tenant, token, silent, passphrase, federation * generic: pybritive api method --parameter1 value1 --parameter2 value2 [--parameterX valueX] - * pybritive api users.list + * pybritive api identity_management.users.list - * pybritive api tags.create --name testtag --description "test tag" + * pybritive api identity_management.tags.create --name testtag --description "test tag" - * pybritive api users.list --query '[].email' + * pybritive api identity_management.users.list --query '[].email' - * pybritive api profiles.create --application-id --name testprofile + * pybritive api application_management.profiles.create --application-id --name testprofile """ parameters = {ctx.args[i][2:]: ctx.args[i + 1] for i in range(0, len(ctx.args), 2)} diff --git a/tests/test_0500_api.py b/tests/test_0500_api.py index 5db7d01..b3af4e6 100644 --- a/tests/test_0500_api.py +++ b/tests/test_0500_api.py @@ -7,5 +7,5 @@ def common_asserts(result, substring=None, exit_code=0): def test_api(runner, cli): - result = runner.invoke(cli, 'api users.list'.split(' ')) + result = runner.invoke(cli, 'api identity_management.users.list'.split(' ')) common_asserts(result, ['userId', 'status', 'email', 'identityProvider']) From be935d599ec04af39b2512bb48161b10859a76cf Mon Sep 17 00:00:00 2001 From: theborch Date: Mon, 24 Feb 2025 10:19:20 -0600 Subject: [PATCH 3/3] v2.1.0-rc.1 --- CHANGELOG.md | 22 ++++++++++++++++++++++ src/pybritive/__init__.py | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e10547..de18261 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,28 @@ > As of v1.4.0, release candidates will be published in an effort to get new features out faster while still allowing > time for full QA testing before moving the release candidate to a full release. +## v2.1.0-rc.1 [2025-02-24] + +__What's New:__ + +* None + +__Enhancements:__ + +* None + +__Bug Fixes:__ + +* None + +__Dependencies:__ + +* `colored>=2.2.5` + +__Other:__ + +* Tests and Documentation updates for SDK alignment. + ## v2.1.0-rc.0 [2025-01-27] __What's New:__ diff --git a/src/pybritive/__init__.py b/src/pybritive/__init__.py index 325ce53..dc62e33 100644 --- a/src/pybritive/__init__.py +++ b/src/pybritive/__init__.py @@ -1 +1 @@ -__version__ = '2.1.0-rc.0' +__version__ = '2.1.0-rc.1'