1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-15 01:34:21 +02:00

feat: blob kms support (#1056)

* feat: blob kms support

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker
2019-07-12 10:10:22 -03:00
committed by GitHub
parent 00cba17696
commit 4541fd9f20
5 changed files with 73 additions and 41 deletions

View File

@ -4,6 +4,7 @@ import (
"io/ioutil"
"os"
"path/filepath"
"strings"
"testing"
"github.com/goreleaser/goreleaser/internal/artifact"
@ -219,7 +220,7 @@ func TestPipe_Publish(t *testing.T) {
setEnv(tt.env)
defer unsetEnv(tt.env)
if err := p.Publish(tt.args.ctx); (err != nil) != tt.wantErr {
if err.Error() != tt.wantErrString {
if !strings.HasPrefix(err.Error(), tt.wantErrString) {
t.Errorf("Pipe.Publish() error = %v, wantErr %v", err, tt.wantErrString)
}
}