Skip to content

Commit

Permalink
chore(deps): bump github.com/ViBiOh/mailer from 1.16.8 to 1.16.9
Browse files Browse the repository at this point in the history
Bumps [github.com/ViBiOh/mailer](https://github.com/ViBiOh/mailer) from 1.16.8 to 1.16.9.
- [Release notes](https://github.com/ViBiOh/mailer/releases)
- [Commits](ViBiOh/mailer@v1.16.8...v1.16.9)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Vincent Boutour <bob@vibioh.fr>
  • Loading branch information
dependabot[bot] authored and ViBiOh committed May 9, 2021
1 parent b6724e6 commit f7abdf0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/DATA-DOG/go-sqlmock v1.5.0
github.com/ViBiOh/auth/v2 v2.7.0
github.com/ViBiOh/httputils/v4 v4.8.0
github.com/ViBiOh/mailer v1.16.8
github.com/ViBiOh/mailer v1.16.9
github.com/lib/pq v1.10.1
github.com/prometheus/client_golang v1.10.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ github.com/ViBiOh/auth/v2 v2.7.0 h1:hR7D7hGt9UEiIuqZBaWRoIv+9uCjcAgxj97il9WWxGE=
github.com/ViBiOh/auth/v2 v2.7.0/go.mod h1:ai96/8BXLiV7t748W7AVDANbmrM0QTNDsPOVZKPLYvk=
github.com/ViBiOh/httputils/v4 v4.8.0 h1:fs2fjkBnmElYyPbM5vqDz00SyJsomUmKQIwTxSLw+kM=
github.com/ViBiOh/httputils/v4 v4.8.0/go.mod h1:1hyt/nMC1kLiB9sm+qfHaQY9TIxS7gcUQZTV0DZ/nwc=
github.com/ViBiOh/mailer v1.16.8 h1:rh8aCCwO5mx6ktLeEwsrsPwF2eJeq8FATCqQst4FNIk=
github.com/ViBiOh/mailer v1.16.8/go.mod h1:cSP0mW1oTyvYIHH+FS1C7ip419BGEnkN7xOmoQ7HHvs=
github.com/ViBiOh/mailer v1.16.9 h1:7Bjl7Zp0FOsT3W8PeR6zQTsSqFf+101jr/Dv3lLUzRA=
github.com/ViBiOh/mailer v1.16.9/go.mod h1:cSP0mW1oTyvYIHH+FS1C7ip419BGEnkN7xOmoQ7HHvs=
github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g=
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c=
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
Expand Down
22 changes: 15 additions & 7 deletions pkg/notifier/releases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"reflect"
"sort"
"strings"
"testing"

Expand Down Expand Up @@ -113,6 +114,11 @@ func TestGetNewGithubReleases(t *testing.T) {
}

func TestGetNewHelmReleases(t *testing.T) {
appRepo := model.NewHelmRepository(1, "https://charts.vibioh.fr", "app").AddVersion(model.DefaultPattern, "1.0.0").AddVersion("1.0", "1.0.0").AddVersion("~1.0", "a.b.c")
cronRepo := model.NewHelmRepository(2, "https://charts.vibioh.fr", "cron").AddVersion(model.DefaultPattern, "1.0.0")
fluxRepo := model.NewHelmRepository(3, "https://charts.vibioh.fr", "flux").AddVersion(model.DefaultPattern, "1.0.0")
postgresRepo := model.NewHelmRepository(4, "https://charts.helm.sh/stable", "postgreql").AddVersion(model.DefaultPattern, "3.0.0")

type args struct {
content string
}
Expand Down Expand Up @@ -173,10 +179,10 @@ func TestGetNewHelmReleases(t *testing.T) {
"helm",
app{
repositoryService: repositorytest.New().SetListByKind([]model.Repository{
model.NewHelmRepository(1, "https://charts.vibioh.fr", "app").AddVersion(model.DefaultPattern, "1.0.0").AddVersion("1.0", "1.0.0").AddVersion("~1.0", "a.b.c"),
model.NewHelmRepository(1, "https://charts.vibioh.fr", "cron").AddVersion(model.DefaultPattern, "1.0.0"),
model.NewHelmRepository(1, "https://charts.vibioh.fr", "flux").AddVersion(model.DefaultPattern, "1.0.0"),
model.NewHelmRepository(1, "https://charts.helm.sh/stable", "postgreql").AddVersion(model.DefaultPattern, "3.0.0"),
appRepo,
cronRepo,
fluxRepo,
postgresRepo,
}, 0, nil),
helmApp: helmtest.New().SetFetchIndex(map[string]map[string]semver.Version{
"app": {
Expand All @@ -197,9 +203,9 @@ func TestGetNewHelmReleases(t *testing.T) {
content: "test",
},
[]model.Release{
model.NewRelease(model.NewHelmRepository(1, "https://charts.vibioh.fr", "app").AddVersion(model.DefaultPattern, "1.0.0").AddVersion("1.0", "1.0.0").AddVersion("~1.0", "a.b.c"), model.DefaultPattern, safeParse("1.1.0")),
model.NewRelease(model.NewHelmRepository(1, "https://charts.vibioh.fr", "cron").AddVersion(model.DefaultPattern, "1.0.0"), model.DefaultPattern, safeParse("2.0.0")),
model.NewRelease(model.NewHelmRepository(1, "https://charts.helm.sh/stable", "postgreql").AddVersion(model.DefaultPattern, "3.0.0"), model.DefaultPattern, safeParse("3.1.0")),
model.NewRelease(appRepo, model.DefaultPattern, safeParse("1.1.0")),
model.NewRelease(cronRepo, model.DefaultPattern, safeParse("2.0.0")),
model.NewRelease(postgresRepo, model.DefaultPattern, safeParse("3.1.0")),
},
4,
nil,
Expand All @@ -212,6 +218,8 @@ func TestGetNewHelmReleases(t *testing.T) {

failed := false

sort.Sort(model.ReleaseByRepositoryID(got))

if tc.wantErr == nil && gotErr != nil {
failed = true
} else if tc.wantErr != nil && gotErr == nil {
Expand Down

0 comments on commit f7abdf0

Please sign in to comment.