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] <[email protected]>
Signed-off-by: Vincent Boutour <[email protected]>
  • 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.