Skip to content

Commit

Permalink
fix!: wrong access method type (http -> https)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Oct 17, 2023
1 parent 3390508 commit 6c7ca27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chord_drs/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def build_blob_json(drs_blob: DrsBlob, inside_container: bool = False) -> DRSObj
# out-of-band method, or the object's contents are public. This
# will depend on how the service is deployed.
},
"type": "http",
"type": "https",
}

access_methods: list[DRSAccessMethodDict] = [default_access_method]
Expand Down
4 changes: 2 additions & 2 deletions tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def validate_object_fields(data, existing_id=None, with_internal_path=False):
assert "size" in data
assert "self_uri" in data

method_types = [method['type'] for method in data["access_methods"]]
assert "http" in method_types
method_types = [method["type"] for method in data["access_methods"]]
assert "https" in method_types
if is_minio:
assert "s3" in method_types
elif is_local and with_internal_path:
Expand Down

0 comments on commit 6c7ca27

Please sign in to comment.