-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
edit wizard, skip aws as default for other plugins
- move aws config init to aws plugin configuration - create/update secrets locally without aws - new method set_required_secure_text_values() - upsert_secret method allow refactor operations - exclude iambic_managed when it is undefined for okta, azure and google ws - refactor: configuration_wizard_google_workspace_add, configuration_wizard_azure_ad_organization_add, configuration_wizard_okta_organization_add run() - fix: not update okta user status when it is deleted (or it is going to be deleted) - add coverage report to pyproject
- Loading branch information
1 parent
9494c3e
commit 2815335
Showing
10 changed files
with
461 additions
and
304 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,91 @@ | ||
[build-system] | ||
requires = [ "poetry-core",] | ||
build-backend = "poetry.core.masonry.api" | ||
requires = ["poetry-core"] | ||
|
||
[tool.poetry] | ||
authors = ["Noq Software <hello@noq.dev>"] | ||
description = "The python package used to generate, parse, and execute noqform yaml templates." | ||
exclude = ["build_util/*"] | ||
include = ["iambic/output/templates/*"] | ||
license = "Apache-2.0" | ||
name = "iambic-core" | ||
packages = [ | ||
{ include="iambic", from="." }, | ||
{include = "iambic", from = "."}, | ||
] | ||
version = "0.3.10" | ||
license = "Apache-2.0" | ||
description = "The python package used to generate, parse, and execute noqform yaml templates." | ||
authors = ["Noq Software <hello@noq.dev>"] | ||
readme = "README.md" | ||
exclude = ["build_util/*"] | ||
include = ["iambic/output/templates/*"] | ||
version = "0.3.10" | ||
|
||
[tool.isort] | ||
profile = "black" | ||
add_imports = "from __future__ import annotations" | ||
profile = "black" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
boto3 = "^1.26.95" | ||
click = "^8.1.3" | ||
"ruamel.yaml" = "^0.17.21" | ||
asgiref = "^3.6.0" | ||
structlog = "^22.3.0" | ||
pydantic = "^1.10.6" | ||
deepdiff = "^6.3.0" | ||
Jinja2 = "^3.1.2" | ||
black = "^23.1.0" | ||
isort = "^5.12.0" | ||
flake8 = "^6.0.0" | ||
pytest = "^7.2.2" | ||
pytest-asyncio = "^0.21.0" | ||
pytest-cov = "^4.0.0" | ||
pytest-xdist = "^3.2.1" | ||
pytest-rerunfailures = "^11.1.2" | ||
pre-commit = "^3.2.0" | ||
ujson = "^5.7.0" | ||
aiofiles = "^23.1.0" | ||
xxhash = "^3.2.0" | ||
slack-bolt = "^1.16.4" | ||
google-api-python-client = "^2.81.0" | ||
google-auth = "^2.16.2" | ||
jsonschema2md2 = "^0.6.0" | ||
GitPython = "^3.1.31" | ||
GitPython = "^3.1.31" | ||
Jinja2 = "^3.1.2" | ||
PyGithub = "==1.57" # Since 1.58, PyGithub does not work with Lambda. See https://github.com/PyGithub/PyGithub/issues/2430 | ||
pydantic-factories = "^1.17.2" | ||
okta = "^2.9.2" | ||
asyncache = "^0.3.1" | ||
dateparser = "^1.1.7" | ||
pytest-mock = "^3.10.0" | ||
questionary = "^1.10.0" | ||
types-dateparser = "^1.1.4.5" | ||
cryptography = "^39.0.1" | ||
aws-error-utils = "^2.7.0" | ||
types-mock = "^5.0.0.5" | ||
rich = "^13.3.2" | ||
dictdiffer = "^0.9.0" | ||
msal = "^1.21.0" | ||
aiohttp = "^3.8.4" | ||
pyopenssl = "^23.0.0" | ||
aiofiles = "^23.1.0" | ||
aiohttp = "^3.8.4" | ||
asgiref = "^3.6.0" | ||
asyncache = "^0.3.1" | ||
aws-error-utils = "^2.7.0" | ||
black = "^23.1.0" | ||
boto3 = "^1.26.95" | ||
click = "^8.1.3" | ||
cryptography = "^39.0.1" | ||
dateparser = "^1.1.7" | ||
deepdiff = "^6.3.0" | ||
dictdiffer = "^0.9.0" | ||
flake8 = "^6.0.0" | ||
google-api-python-client = "^2.81.0" | ||
google-auth = "^2.16.2" | ||
isort = "^5.12.0" | ||
jsonschema2md2 = "^0.6.0" | ||
msal = "^1.21.0" | ||
okta = "^2.9.2" | ||
pre-commit = "^3.2.0" | ||
pydantic = "^1.10.6" | ||
pydantic-factories = "^1.17.2" | ||
pyopenssl = "^23.0.0" | ||
pytest = "^7.2.2" | ||
pytest-asyncio = "^0.21.0" | ||
pytest-cov = "^4.0.0" | ||
pytest-mock = "^3.10.0" | ||
pytest-rerunfailures = "^11.1.2" | ||
pytest-xdist = "^3.2.1" | ||
python = "^3.9" | ||
questionary = "^1.10.0" | ||
rich = "^13.3.2" | ||
"ruamel.yaml" = "^0.17.21" | ||
slack-bolt = "^1.16.4" | ||
structlog = "^22.3.0" | ||
types-dateparser = "^1.1.4.5" | ||
types-mock = "^5.0.0.5" | ||
ujson = "^5.7.0" | ||
xxhash = "^3.2.0" | ||
|
||
[tool.poetry.scripts] | ||
iambic = "iambic.main:cli" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
dateparser = "^1.1.7" | ||
mock = "^5.0.1" | ||
moto = {extras = ["all"], version = "^4.1.5"} | ||
pycryptodome = "^3.17" | ||
pytest-mock-generator = "^1.2.0" | ||
types-aiofiles = "^23.1.0.0" | ||
types-cachetools = "^5.3.0.4" | ||
types-pyyaml = "^6.0.12.8" | ||
types-aiofiles = "^23.1.0.0" | ||
types-ujson = "^5.7.0.1" | ||
mock = "^5.0.1" | ||
pytest-mock-generator = "^1.2.0" | ||
pycryptodome = "^3.17" | ||
moto = {extras = ["all"], version = "^4.1.5"} | ||
dateparser = "^1.1.7" | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
"pragma: no cover", | ||
"def __repr__", | ||
"if self.debug:", | ||
"if settings.DEBUG", | ||
"raise AssertionError", | ||
"raise NotImplementedError", | ||
"if 0:", | ||
"if __name__ == .__main__.:", | ||
"if TYPE_CHECKING:", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from pydantic import SecretStr | ||
import pytest | ||
|
||
from iambic.core.iambic_enum import IambicManaged | ||
from iambic.plugins.v0_1_0.azure_ad.models import AzureADOrganization | ||
|
||
|
||
@pytest.mark.parametrize("exclude", [None, {"other"}]) | ||
def test_organization_to_dict(exclude): | ||
organization = AzureADOrganization( | ||
idp_name="idp_name", | ||
tenant_id="tenant_id", | ||
client_id="client_id", | ||
client_secret=SecretStr("client_secret"), | ||
) # type: ignore | ||
|
||
assert organization.dict(exclude=exclude) == dict( | ||
idp_name="idp_name", | ||
tenant_id="tenant_id", | ||
client_id="client_id", | ||
client_secret=SecretStr("client_secret"), | ||
request_timeout=60, | ||
iambic_managed=IambicManaged.UNDEFINED, | ||
require_user_mfa_on_create=False, | ||
) # type: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters