Skip to content

Commit

Permalink
Ensuring the model registry can accept requests before registering a …
Browse files Browse the repository at this point in the history
…model

Signed-off-by: tonyxrmdavidson <[email protected]>
  • Loading branch information
tonyxrmdavidson committed Nov 5, 2024
1 parent 0242242 commit af8ec0d
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Deploy Model Registry
... control-plane=model-registry-operator
Component Should Be Enabled modelregistry
Apply Db Config Samples namespace=${NAMESPACE_MODEL_REGISTRY} samples=${MODEL_REGISTRY_DB_SAMPLES}
Wait Until Keyword Succeeds 10 s 2 s Verify Model Registry Can Accept Requests

Registering A Model In The Registry
[Documentation] Registers a model in the model registry
Expand Down Expand Up @@ -88,6 +89,17 @@ Run Curl Command And Verify Response
Should Contain ${result.stdout} model-name
Should Not Contain ${result.stdout} error

Verify Model Registry Can Accept Requests
[Documentation] Runs a curl command to verify response from server
${result}= Run Process curl -H Authorization: Bearer ${TOKEN}
... ${URL} stdout=stdout stderr=stderr
Log ${result.stderr}
Log ${result.stdout}
Should Contain ${result.stdout} items
Should Contain ${result.stdout} nextPageToken
Should Contain ${result.stdout} pageSize
Should Not Contain ${result.stdout} error

Register A Model
[Documentation] Registers a test model in the model-registry
[Arguments] ${URL}
Expand Down

0 comments on commit af8ec0d

Please sign in to comment.