Skip to content

Commit 5b722e7

Browse files
Fix acceptance/bundle/resources/model_serving_endpoints/running-endpoint test (#3927)
The test was failing because not all cloud environments have a version "1" available for the model. Expanding the regex check to all integers should fix the failure. Failure diff: ``` acceptance_test.go:807: Diff: --- bundle/resources/model_serving_endpoints/running-endpoint/output.txt +++ /tmp/TestAcceptbundleresourcesmodel_serving_endpointsrunning-endp4294099973/001/output.txt @@ -16,7 +16,7 @@ "served_entities": [ { "entity_name": "system.ai.llama_v3_2_1b_instruct", - "entity_version": "[VERSION]", + "entity_version": "2", "name": "llama", "scale_to_zero_enabled": true, "workload_size": "Small" ``` Co-authored-by: Denis Bilenko <[email protected]>
1 parent 1e978fd commit 5b722e7

File tree

1 file changed

+1
-1
lines changed
  • acceptance/bundle/resources/model_serving_endpoints/running-endpoint

1 file changed

+1
-1
lines changed

acceptance/bundle/resources/model_serving_endpoints/running-endpoint/test.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ Response.Body = '''
1717
'''
1818

1919
[[Repls]]
20-
Old = '"entity_version": "1",'
20+
Old = '"entity_version": "\d+",'
2121
New = '"entity_version": "[VERSION]",'

0 commit comments

Comments
 (0)