-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restrict captures to prefix when mapping *FromOwned (#295)
* converter: simplify MapName Signed-off-by: Isabella do Amaral <[email protected]> * converter: restrict captures to prefix when mapping *FromOwned Fixes: #255 Signed-off-by: Isabella do Amaral <[email protected]> * py: make: fix build-mr tagging Signed-off-by: Isabella do Amaral <[email protected]> * py: tests: introduce regression testing Signed-off-by: Isabella do Amaral <[email protected]> * py: make: expose IMG_* env vars Signed-off-by: Isabella do Amaral <[email protected]> --------- Signed-off-by: Isabella do Amaral <[email protected]>
- Loading branch information
Showing
6 changed files
with
54 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import pytest | ||
|
||
from model_registry import ModelRegistry | ||
|
||
|
||
@pytest.mark.e2e | ||
def test_create_tagged_version(client: ModelRegistry): | ||
"""Test regression for creating tagged versions. | ||
Reported on: https://github.com/kubeflow/model-registry/issues/255 | ||
""" | ||
name = "test_model" | ||
version = "model:latest" | ||
rm = client.register_model( | ||
name, | ||
"s3", | ||
model_format_name="test_format", | ||
model_format_version="test_version", | ||
version=version, | ||
) | ||
assert rm.id | ||
mv = client.get_model_version(name, version) | ||
assert mv | ||
assert mv.id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters