mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-06 16:25:21 -04:00
versionsapi: replace shortname pkg
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
f17b40b44a
commit
66f2c446a4
6 changed files with 27 additions and 168 deletions
|
@ -373,7 +373,7 @@ func TestVersionListPathURL(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func TestVersionArtifactPath(t *testing.T) {
|
||||
func TestVersionArtifactPathURL(t *testing.T) {
|
||||
testCases := map[string]struct {
|
||||
ver Version
|
||||
wantPath string
|
||||
|
@ -413,6 +413,8 @@ func TestVersionArtifactPath(t *testing.T) {
|
|||
|
||||
path := tc.ver.ArtifactPath()
|
||||
assert.Equal(tc.wantPath, path)
|
||||
url := tc.ver.ArtifactURL()
|
||||
assert.Equal(constants.CDNRepositoryURL+"/"+tc.wantPath, url)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue