@@ -587,32 +587,6 @@ func TestIntegration_TagModel(t *testing.T) {
587587 })
588588 }
589589
590- // Final verification: List the model and verify all tags are present
591- t .Run ("verify all tags in model inspect" , func (t * testing.T ) {
592- inspectedModel , err := env .client .Inspect (modelID , false )
593- require .NoError (t , err , "Failed to inspect model by ID" )
594-
595- t .Logf ("Model has %d tags: %v" , len (inspectedModel .Tags ), inspectedModel .Tags )
596-
597- // The model should have at least the original tag plus all created tags
598- require .GreaterOrEqual (t , len (inspectedModel .Tags ), len (createdTags )+ 1 ,
599- "Model should have at least %d tags (original + created)" , len (createdTags )+ 1 )
600-
601- // Verify each created tag is in the model's tag list
602- for expectedTag := range createdTags {
603- found := false
604- for _ , actualTag := range inspectedModel .Tags {
605- if actualTag == expectedTag || actualTag == fmt .Sprintf ("%s:latest" , expectedTag ) { // Handle implicit latest tag
606- found = true
607- break
608- }
609- }
610- require .True (t , found , "Expected tag %s not found in model's tag list" , expectedTag )
611- }
612-
613- t .Logf ("✓ All %d created tags verified in model's tag list" , len (createdTags ))
614- })
615-
616590 // Test error case: tagging non-existent model
617591 t .Run ("error on non-existent model" , func (t * testing.T ) {
618592 err := tagModel (newTagCmd (), env .client , "non-existent-model:v1" , "ai/should-fail:latest" )
0 commit comments