Skip to content

Commit 2664fae

Browse files
authored
Merge pull request #51 from open-mpic/birgelee-key-auth-hash
key auth hash change
2 parents 4c4b484 + 16cf85a commit 2664fae

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The above sample must be run from the root directory of a deployed Open MPIC aws
4343

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

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

4848
## Development
4949
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.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ classifiers = [
2626
"Programming Language :: Python :: Implementation :: PyPy",
2727
]
2828
dependencies = [
29-
# "open-mpic-core @ git+https://github.com/open-mpic/open-mpic-core-python.git@birgelee-dcv-caa-perspective-code-response",
29+
# "open-mpic-core @ git+https://github.com/open-mpic/open-mpic-core-python.git@birgelee-key-auth-hash",
3030
"pyyaml==6.0.1",
3131
"requests>=2.32.3",
3232
"dnspython==2.6.1",
3333
"pydantic==2.8.2",
3434
"aiohttp==3.11.11",
3535
"aws-lambda-powertools[parser]==3.2.0",
36-
"open-mpic-core==5.1.0",
36+
"open-mpic-core==5.2.0",
3737
"aioboto3~=13.3.0",
3838
"black==24.8.0",
3939
]
@@ -56,7 +56,7 @@ Source = "https://github.com/open-mpic/aws-lambda-python"
5656
#virtual = ".hatch"
5757

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

6262
[tool.hatch]

tests/integration/test_deployed_mpic_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def api_should_return_200_given_valid_dns_01_validation(self, api_client, domain
179179
domain_or_ip_target=domain_or_ip_target,
180180
orchestration_parameters=MpicRequestOrchestrationParameters(perspective_count=3, quorum_count=2),
181181
dcv_check_parameters=DcvAcmeDns01ValidationParameters(
182-
key_authorization="7FwkJPsKf-TH54wu4eiIFA3nhzYaevsL7953ihy-tpo"
182+
key_authorization_hash="7FwkJPsKf-TH54wu4eiIFA3nhzYaevsL7953ihy-tpo"
183183
),
184184
)
185185

@@ -205,7 +205,7 @@ def api_should_return_200_is_valid_false_given_invalid_dns_01_validation(
205205
domain_or_ip_target=domain_or_ip_target,
206206
orchestration_parameters=MpicRequestOrchestrationParameters(perspective_count=3, quorum_count=2),
207207
dcv_check_parameters=DcvAcmeDns01ValidationParameters(
208-
key_authorization="7FwkJPsKf-TH54wu4eiIFA3nhzYaevsL7953ihy-tpo"
208+
key_authorization_hash="7FwkJPsKf-TH54wu4eiIFA3nhzYaevsL7953ihy-tpo"
209209
),
210210
)
211211

@@ -244,15 +244,15 @@ def api_should_return_200_given_valid_http_01_validation(
244244
('integration-testing.open-mpic.org', 'Failed 302 http-01 test', "evaGxfADs6pSRb2LAv9IZf17Dt3juxGJ-PCt92wr-oB", "evaGxfADs6pSRb2LAv9IZf17Dt3juxGJ-PCt92wr-oA.NzbLsXh8uDCcd-6MNwXF4W_7noWXFZAfHkxZsRGC9Xa")
245245
])
246246
# fmt: on
247-
def api_should_return_200_given_invalid_http_01_validation(
247+
def api_should_return_200_given_invalid_dns_01_validation(
248248
self, api_client, domain_or_ip_target, purpose_of_test, token, key_authorization
249249
):
250250
print(f"Running test for {domain_or_ip_target} ({purpose_of_test})")
251251
request = MpicDcvRequest(
252252
domain_or_ip_target=domain_or_ip_target,
253253
orchestration_parameters=MpicRequestOrchestrationParameters(perspective_count=3, quorum_count=2),
254254
dcv_check_parameters=DcvAcmeDns01ValidationParameters(
255-
key_authorization="7FwkJPsKf-TH54wu4eiIFA3nhzYaevsL7953ihy-tpo"
255+
key_authorization_hash="7FwkJPsKf-TH54wu4eiIFA3nhzYaevsL7953ihy-tpo"
256256
),
257257
)
258258

0 commit comments

Comments
 (0)