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 @@ -45,7 +45,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).

There is [documentation based on the API specification used in this version](https://open-mpic.org/documentation.html?commit=150a21d8c8e1c4758494f75d4e6811a1c6d05058).
There is [documentation based on the API specification used in this version](https://open-mpic.org/documentation.html?commit=d19a6217becc22c528194923b66fd420105f5740).

## 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
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies = [
"pydantic==2.11.7",
"aiohttp==3.12.14",
"aws-lambda-powertools[parser]==3.15.1",
"open-mpic-core==6.1.0",
"open-mpic-core==6.2.0",
"aioboto3~=14.3.0",
"black==25.1.0",
]
Expand All @@ -56,7 +56,7 @@ Source = "https://github.com/open-mpic/aws-lambda-python"
#virtual = ".hatch"

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

[tool.hatch]
Expand Down
2 changes: 1 addition & 1 deletion src/aws_lambda_mpic/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.5.0"
__version__ = "1.6.0"
18 changes: 18 additions & 0 deletions tests/integration/test_deployed_mpic_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,24 @@ def api_should_return_200_and_failed_corroboration_given_failed_dcv_check(self,
response_body = json.loads(response.text)
print("\nResponse:\n", json.dumps(response_body, indent=4)) # pretty print response body

# this test will only pass if 4+ perspectives are configured in the deployed MPIC service
def api_should_accept_specific_cohort_number_if_enough_perspective_cohorts_are_accommodated(self, api_client):
request = MpicCaaRequest(
domain_or_ip_target="example.com",
orchestration_parameters=MpicRequestOrchestrationParameters(
perspective_count=2, quorum_count=2, cohort_for_single_attempt=2 # use the second cohort of two
),
caa_check_parameters=CaaCheckParameters(
certificate_type=CertificateType.TLS_SERVER, caa_domains=["mozilla.com"]
),
)

response = api_client.post(MPIC_REQUEST_PATH, json.dumps(request.model_dump()))
mpic_response = self.mpic_response_adapter.validate_json(response.text)
assert response.status_code == 200
assert mpic_response.is_valid is True
assert len(mpic_response.perspectives) == 2

def api_should_return_400_given_invalid_orchestration_parameters_in_request(self, api_client):
request = MpicCaaRequest(
domain_or_ip_target="example.com",
Expand Down