Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: lugi0 <[email protected]>
  • Loading branch information
lugi0 committed Jan 13, 2025
1 parent 4d55545 commit 29ce376
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/model_registry/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ def generate_register_model_command(endpoint: str, token: str) -> str:
# + endpoint
# + ModelRegistryEndpoints.REGISTERED_MODELS
# )
cmd = f'curl -k {HTTPRequest.AUTH_HEADER.format(token=token)} {HTTPRequest.CONTENT_JSON} -d \'{"name": "model-name", "description": "test-model", "owner": "opendatahub-tests-client", "externalId": "1", "state": "LIVE"}\' {Protocols.HTTPS}://{endpoint}{ModelRegistryEndpoints.REGISTERED_MODELS}'
cmd = f'curl -k {HTTPRequest.AUTH_HEADER.format(token=token)} {HTTPRequest.CONTENT_JSON} -d \'{{"name": "model-name", "description": "test-model", "owner": "opendatahub-tests-client", "externalId": "1", "state": "LIVE"}}\' {Protocols.HTTPS}://{endpoint}{ModelRegistryEndpoints.REGISTERED_MODELS}'
return cmd
4 changes: 2 additions & 2 deletions utilities/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ class HTTPRequest:
# Use string formatting to set the token value when using this constant
AUTH_HEADER: str = "-H 'Authorization: Bearer {token}'"
CONTENT_JSON: str = "-H 'Content-Type: application/json'"
TCP_PROTOCOLS: set[str] = {HTTP, HTTPS}
ALL_SUPPORTED_PROTOCOLS: set[str] = TCP_PROTOCOLS.union({GRPC})
TCP_PROTOCOLS: set[str] = {"HTTP", "HTTPS"}
ALL_SUPPORTED_PROTOCOLS: set[str] = TCP_PROTOCOLS.union({"GRPC"})


class AcceleratorType:
Expand Down

0 comments on commit 29ce376

Please sign in to comment.