test: invented artists, albums and MusicBrainz ids in place of real ones
release / web (push) Failing after 1m16s
release / go (push) Successful in 1m48s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m0s
release / android (push) Successful in 4m34s
release / Build signed APK (push) Successful in 5m9s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
release / web (push) Failing after 1m16s
release / go (push) Successful in 1m48s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m0s
release / android (push) Successful in 4m34s
release / Build signed APK (push) Successful in 5m9s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Test data and example comments named real artists, records and songs, and carried real MusicBrainz ids. One mapping swaps them for invented ones throughout (Fields of Ontario, Plastic Apes, Marlo Davies, ...), keeping what each case tests: sort order, index letter, escaping, title keys, artist-prefix stripping. A test username is no longer the operator's name. The cover-art and Last.fm connection checks still query real releases; they reach live services and need something that exists there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -388,7 +388,7 @@ func TestScanner_ReleaseGroupMBID_Integration(t *testing.T) {
|
||||
}
|
||||
|
||||
// Two albums of one name by one artist, in different release groups, are two
|
||||
// albums, as Weezer's self-titled albums are. A
|
||||
// albums, as Glasshouse's self-titled albums are. A
|
||||
// track of the same group joins its album, and a track filed under the other
|
||||
// album's row by the old lookup moves to its own on the tagReadVersion re-read.
|
||||
func TestScanner_SameTitledAlbumsOfTwoGroupsAreTwoAlbums_Integration(t *testing.T) {
|
||||
@@ -421,14 +421,14 @@ func TestScanner_SameTitledAlbumsOfTwoGroupsAreTwoAlbums_Integration(t *testing.
|
||||
tagged := func(rel, title, group string) string {
|
||||
p := filepath.Join(root, rel)
|
||||
writeTestMP3(t, p, map[string]string{
|
||||
"TIT2": title, "TPE1": "Weezer", "TALB": "Weezer",
|
||||
"TIT2": title, "TPE1": "Glasshouse", "TALB": "Glasshouse",
|
||||
"TXXX": "MusicBrainz Release Group Id\x00" + group,
|
||||
})
|
||||
return p
|
||||
}
|
||||
tagged("Weezer (1994)/01.mp3", "My Name Is Jonas", blue)
|
||||
tagged("Weezer (1994)/02.mp3", "No One Else", blue)
|
||||
greenPath := tagged("Weezer (2001)/01.mp3", "Don't Let Go", green)
|
||||
tagged("Glasshouse (1994)/01.mp3", "My Name Is Tobias", blue)
|
||||
tagged("Glasshouse (1994)/02.mp3", "No One Near", blue)
|
||||
greenPath := tagged("Glasshouse (2001)/01.mp3", "Don't Look Down", green)
|
||||
|
||||
scanner := New(pool, logger, []string{root}, nil)
|
||||
if _, err := scanner.Scan(ctx, nil); err != nil {
|
||||
@@ -437,7 +437,7 @@ func TestScanner_SameTitledAlbumsOfTwoGroupsAreTwoAlbums_Integration(t *testing.
|
||||
albumsByGroup := func() map[string]int {
|
||||
t.Helper()
|
||||
rows, err := pool.Query(ctx, `SELECT a.release_group_mbid, count(t.id) FROM albums a
|
||||
JOIN tracks t ON t.album_id = a.id WHERE a.title = 'Weezer' GROUP BY a.id, a.release_group_mbid`)
|
||||
JOIN tracks t ON t.album_id = a.id WHERE a.title = 'Glasshouse' GROUP BY a.id, a.release_group_mbid`)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -462,8 +462,8 @@ func TestScanner_SameTitledAlbumsOfTwoGroupsAreTwoAlbums_Integration(t *testing.
|
||||
|
||||
// A bonus track tagged with no release group joins the album its folder
|
||||
// holds, whichever row is older.
|
||||
writeTestMP3(t, filepath.Join(root, "Weezer (2001)/02.mp3"), map[string]string{
|
||||
"TIT2": "Photograph (live)", "TPE1": "Weezer", "TALB": "Weezer",
|
||||
writeTestMP3(t, filepath.Join(root, "Glasshouse (2001)/02.mp3"), map[string]string{
|
||||
"TIT2": "Polaroid (live)", "TPE1": "Glasshouse", "TALB": "Glasshouse",
|
||||
})
|
||||
if _, err := scanner.Scan(ctx, nil); err != nil {
|
||||
t.Fatalf("scan the bonus track: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user