artmigrator/repository/nexus/nexus_test.go

14 lines
No EOL
307 B
Go

package nexus
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestGetArtifacts(t *testing.T) {
client := NewClient("https://nexus.example.com", "user", "pass")
artifacts, err := client.GetArtifacts("test-repo")
assert.NoError(t, err)
assert.NotEmpty(t, artifacts)
}