Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The above sample must be run from the root directory of a deployed Open MPIC aws

The API is compliant with the [Open MPIC Specification](https://github.com/open-mpic/open-mpic-specification).

Documentation based on the API specification used in this version can be viewed [here](https://open-mpic.org/documentation.html?commit=9c1e2e9a73f63e2c9156909e949e0a724aeccb6a).
Documentation based on the API specification used in this version can be viewed [here](https://open-mpic.org/documentation.html?commit=44c941d395430b022063b2e5353526ba07034771).

## Development
Code changes can easily be deployed by editing the .py files and then rezipping the project via `./zip-all.sh` and `./2-package.sh` in the `layer` directory. Then, running `tofu apply` run from the open-tofu directory will update only on the required resources and leave the others unchanged. If any `.tf.template` files are changed or `config.yaml` is edited, `hatch run ./configure.py` must be rerun followed by `tofu apply` in the open-tofu directory.
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ classifiers = [
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
# "open-mpic-core @ git+https://github.com/open-mpic/open-mpic-core-python.git@birgelee-dcv-caa-perspective-code-response",
# "open-mpic-core @ git+https://github.com/open-mpic/open-mpic-core-python.git@birgelee-key-auth-hash",
"pyyaml==6.0.1",
"requests>=2.32.3",
"dnspython==2.6.1",
"pydantic==2.8.2",
"aiohttp==3.11.11",
"aws-lambda-powertools[parser]==3.2.0",
"open-mpic-core==5.1.0",
"open-mpic-core==5.2.0",
"aioboto3~=13.3.0",
"black==24.8.0",
]
Expand All @@ -56,7 +56,7 @@ Source = "https://github.com/open-mpic/aws-lambda-python"
#virtual = ".hatch"

[tool.api]
spec_version = "3.0.0"
spec_version = "3.1.0"
spec_repository = "https://github.com/open-mpic/open-mpic-specification"

[tool.hatch]
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/test_deployed_mpic_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def api_should_return_200_given_valid_dns_01_validation(self, api_client, domain
domain_or_ip_target=domain_or_ip_target,
orchestration_parameters=MpicRequestOrchestrationParameters(perspective_count=3, quorum_count=2),
dcv_check_parameters=DcvAcmeDns01ValidationParameters(
key_authorization="7FwkJPsKf-TH54wu4eiIFA3nhzYaevsL7953ihy-tpo"
key_authorization_hash="7FwkJPsKf-TH54wu4eiIFA3nhzYaevsL7953ihy-tpo"
),
)

Expand All @@ -205,7 +205,7 @@ def api_should_return_200_is_valid_false_given_invalid_dns_01_validation(
domain_or_ip_target=domain_or_ip_target,
orchestration_parameters=MpicRequestOrchestrationParameters(perspective_count=3, quorum_count=2),
dcv_check_parameters=DcvAcmeDns01ValidationParameters(
key_authorization="7FwkJPsKf-TH54wu4eiIFA3nhzYaevsL7953ihy-tpo"
key_authorization_hash="7FwkJPsKf-TH54wu4eiIFA3nhzYaevsL7953ihy-tpo"
),
)

Expand Down Expand Up @@ -244,15 +244,15 @@ def api_should_return_200_given_valid_http_01_validation(
('integration-testing.open-mpic.org', 'Failed 302 http-01 test', "evaGxfADs6pSRb2LAv9IZf17Dt3juxGJ-PCt92wr-oB", "evaGxfADs6pSRb2LAv9IZf17Dt3juxGJ-PCt92wr-oA.NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xa")
])
# fmt: on
def api_should_return_200_given_invalid_http_01_validation(
def api_should_return_200_given_invalid_dns_01_validation(
self, api_client, domain_or_ip_target, purpose_of_test, token, key_authorization
):
print(f"Running test for {domain_or_ip_target} ({purpose_of_test})")
request = MpicDcvRequest(
domain_or_ip_target=domain_or_ip_target,
orchestration_parameters=MpicRequestOrchestrationParameters(perspective_count=3, quorum_count=2),
dcv_check_parameters=DcvAcmeDns01ValidationParameters(
key_authorization="7FwkJPsKf-TH54wu4eiIFA3nhzYaevsL7953ihy-tpo"
key_authorization_hash="7FwkJPsKf-TH54wu4eiIFA3nhzYaevsL7953ihy-tpo"
),
)

Expand Down