Skip to content

Commit

Permalink
releng - june 2024 dep upgrades (cloud-custodian#9550)
Browse files Browse the repository at this point in the history
  • Loading branch information
kapilt authored Jun 4, 2024
1 parent c4e7a4a commit d4a411f
Show file tree
Hide file tree
Showing 18 changed files with 505 additions and 680 deletions.
237 changes: 113 additions & 124 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ referencing = "==0.31.1"

[tool.poetry.group.dev.dependencies]
ruff = "~0.3"
docker = "^6.0.1"
docker = {extras = ["websockets"], version = "^7.1.0"}
black = ">=23.1,<25.0"
pytest = "^7.1.2"
coverage = "^7"
Expand All @@ -58,7 +58,7 @@ pytest-sugar = "^0.9.2"
click = "^8.0"
freezegun = "^1.2.2"
pytest-recording = "^0.12.1"
moto = "^4.2"
moto = "^5.0"
openapi-spec-validator = "^0.7.1"

[tool.black]
Expand Down
27 changes: 13 additions & 14 deletions tests/test_org.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

@pytest.fixture(scope="function")
def org_tree(request):
with moto.mock_organizations():
with moto.mock_aws():
client = boto3.client("organizations")
org = client.create_organization(FeatureSet="ALL")["Organization"]
root = client.list_roots()["Roots"][0]
Expand Down Expand Up @@ -74,17 +74,16 @@ def org_tree(request):
SourceParentId=root["Id"],
DestinationParentId=group_c["Id"],
)
with moto.mock_resourcegroupstaggingapi():
yield dict(
org=org,
dept_a=dept_a,
dept_b=dept_b,
group_c=group_c,
account_a=account_a,
account_b=account_b,
account_c=account_c,
root=root,
)
yield dict(
org=org,
dept_a=dept_a,
dept_b=dept_b,
group_c=group_c,
account_a=account_a,
account_b=account_b,
account_c=account_c,
root=root,
)


@pytest.fixture
Expand Down Expand Up @@ -372,7 +371,7 @@ def test_org_account_moto(test, org_tree):
assert len(resources) == 1


@moto.mock_cloudformation
@moto.mock_aws
def test_org_account_filter_cfn_absent(test):
p = test.load_policy(
{
Expand Down Expand Up @@ -409,7 +408,7 @@ def test_org_account_filter_cfn_process(account_session, test):
assert result == [{"Id": "123", "Name": "test-account", "c7n:cfn-stack": {"us-east-1": True}}]


@moto.mock_cloudformation
@moto.mock_aws
def test_org_account_filter_cfn_present(test):
p = test.load_policy(
{
Expand Down
39 changes: 13 additions & 26 deletions tools/c7n_awscc/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d4a411f

Please sign in to comment.