Skip to content

Commit

Permalink
chore: update deps, fixes broken unit tests (#24)
Browse files Browse the repository at this point in the history

---------

Co-authored-by: Ran Isenberg <[email protected]>
  • Loading branch information
ran-isenberg and Ran Isenberg authored Jun 29, 2024
1 parent 8ef2e11 commit 47cef9d
Show file tree
Hide file tree
Showing 8 changed files with 444 additions and 477 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
exclude: "^(?!helpers/)"
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.5
rev: v0.5.0
hooks:
# Run the Ruff linter.
- id: ruff
Expand Down
25 changes: 25 additions & 0 deletions cdk/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "service-cdk"
version = "1.0"
description = "CDK service code"
authors = [
{ name = "Ran Isenberg", email = "[email protected]" }
]
classifiers = [
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3.12"
]
requires-python = ">=3.12"
dependencies = []

[tool.setuptools.packages.find]
where = ["."]
exclude = ["contrib", "docs", "tests"]

[tool.setuptools.package-data]
"*" = ["*.json"]
25 changes: 0 additions & 25 deletions cdk/setup.py

This file was deleted.

8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"aws-cdk": "2.143.0"
"aws-cdk": "2.147.2"
}
}
855 changes: 409 additions & 446 deletions poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions tests/integration/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def create_product_body(request_type: str, stack_id: str, resource_properties: d
'StackId': stack_id,
'RequestId': 'cc5ad960-e179-4f71-8fdc-3513cdc604a8',
'LogicalResourceId': 'PlatformGovernanceCustomResource',
'PhysicalResourceId': 'unique-physical-resource-id',
'ResourceType': 'Custom::PlatformEngGovernanceEnabler',
'ResourceProperties': resource_properties,
}
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/test_cf_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def test_product_create_event_model_valid():
'RequestId': 'unique-request-id',
'LogicalResourceId': 'PlatformGovernanceCustomResource',
'ResourceType': 'Custom::PlatformEngGovernanceEnabler',
'PhysicalResourceId': 'unique-physical-resource-id',
'ResourceProperties': {
'product_name': 'TestProduct',
'product_version': '1.0',
Expand Down Expand Up @@ -144,6 +145,7 @@ def test_product_delete_event_model_valid():
'RequestId': 'unique-request-id',
'LogicalResourceId': 'PlatformGovernanceCustomResource',
'ResourceType': 'Custom::PlatformEngGovernanceEnabler',
'PhysicalResourceId': 'unique-physical-resource-id',
'ResourceProperties': {
'product_name': 'TestProduct',
'product_version': '1.0',
Expand All @@ -170,6 +172,7 @@ def test_product_update_event_model_valid():
'StackId': 'arn:aws:cloudformation:region:account-id:stack/stack-name/guid',
'RequestId': 'unique-request-id',
'LogicalResourceId': 'PlatformGovernanceCustomResource',
'PhysicalResourceId': 'unique-physical-resource-id',
'ResourceType': 'Custom::PlatformEngGovernanceEnabler',
'ResourceProperties': {
'product_name': 'TestProduct',
Expand Down

0 comments on commit 47cef9d

Please sign in to comment.