1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 12:45:21 +01:00

Recreated mocks for newest AWS SDK, fixed yaml import

This commit is contained in:
Adrian Utrilla
2016-10-27 19:13:01 +02:00
parent 8e933ab7c9
commit 271753eabd
4 changed files with 399 additions and 251 deletions

View File

@@ -5,13 +5,14 @@ import (
"fmt"
"github.com/aws/aws-sdk-go/service/kms"
"github.com/stretchr/testify/mock"
"go.mozilla.org/sops/kms/mocks"
"testing"
"testing/quick"
)
func TestKMS(t *testing.T) {
// TODO: make this not terrible and mock KMS with a reverseable operation on the key, or something. Good luck running the tests on a machine that's not mine!
mockKMS := &MockKMSAPI{}
mockKMS := &mocks.KMSAPI{}
defer mockKMS.AssertExpectations(t)
kmsSvc = mockKMS
encryptOutput := &kms.EncryptOutput{}

File diff suppressed because it is too large Load Diff

View File

@@ -7,7 +7,7 @@ import (
"path"
"regexp"
"github.com/mozilla-services/yaml.v2"
"github.com/mozilla-services/yaml"
)
type fileSystem interface {

View File

@@ -2,7 +2,7 @@ package yaml
import (
"fmt"
"github.com/mozilla-services/yaml.v2"
"github.com/mozilla-services/yaml"
"go.mozilla.org/sops"
"go.mozilla.org/sops/kms"
"go.mozilla.org/sops/pgp"