mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 02:25:56 +00:00
Fix false self-container update reports
This commit is contained in:
@@ -73,6 +73,8 @@ type ImageUpdateResult struct {
|
||||
func isPulseManagedImageReference(image string) bool {
|
||||
normalized := strings.ToLower(strings.TrimSpace(image))
|
||||
for _, repository := range []string{
|
||||
"rcourtman/pulse",
|
||||
"docker.io/rcourtman/pulse",
|
||||
"license.pulserelay.pro/pulse-pro",
|
||||
"registry.pulserelay.pro/pulse/pulse-pro",
|
||||
} {
|
||||
|
||||
@@ -36,9 +36,12 @@ func TestRegistryChecker_CheckImageUpdate_Behavior(t *testing.T) {
|
||||
}
|
||||
})
|
||||
|
||||
t.Run("Pulse private image uses the product update service", func(t *testing.T) {
|
||||
t.Run("Pulse images use the product update service", func(t *testing.T) {
|
||||
checker := NewRegistryChecker(logger)
|
||||
for _, image := range []string{
|
||||
"rcourtman/pulse:latest",
|
||||
"docker.io/rcourtman/pulse:6.3.1",
|
||||
"rcourtman/pulse@sha256:abc123",
|
||||
"license.pulserelay.pro/pulse-pro:6.2.0-rc.4",
|
||||
"license.pulserelay.pro/pulse-pro@sha256:abc123",
|
||||
"registry.pulserelay.pro/pulse/pulse-pro:v6.0.5",
|
||||
|
||||
Reference in New Issue
Block a user